Range adding and multiplication in Excel - excel

At the moment I have 2 sheets, Sheet1 has some values and Sheet2 has some other values. Then I have Sheet 3 where I wish to do some calculations in.
To give you an idea, at the moment I am doing the following:-
=((Sheet1!B2*Sheet2!B15)+(Sheet1!C2*Sheet2!C15)+(Sheet1!D2*Sheet2!D15)),
which is working correctly.
However, I have 36 cells I need to do the same exact thing. So I was wondering if there was some formula or range in Excel which can make my life easier.
Any ideas which might help me pls?
Thanks for your help and time!

Perhaps:
=SUMPRODUCT(Sheet1!$B$2:$AK$2,Sheet2!$B$15:$AK$15)

Related

Why is this Countifs function not working?

Can someone please tell me why this formula is not working?
=Sum(Countifs($B$8:$B$26,{"Sgt";"Cpl";"Gnr";"2*"},$D$8:$D$26,72,$D$6,{"MON","TUE","WED","THU","FRI"}))
From all the testing I've done it seems to be the range of cells. I've checked online already and from everything I've read it should work!
Thank you in advance
COUNTIFS requires the range to be of the same dimension. $B$8:$B$26 and $D$8:$D$26 is 19 rows across, but $D$6 is a single cell. So counting cannot be done.

Excel Summing Multiple Cells Based Off Row & Column Indicators

So, what I have is an excel sheet that is automatically generated by a program, so reformat is not an option:
Example Worksheet
General format of this excel will stay the same, with some additional rows depending on the day.
I’m trying to create a formula that I will use from another worksheet (I can handle linking from another workbook) that will give the total number of Boxes for that day.
For example, the correct answer for this day would be 85.
I have tried a few formulas but they have not worked for me.. I am most likely missing something. I tried getting all numbers relative to the “Totals:” cells, and just distinguishing the “* Box” columns with SUMIF but that didn’t work either.
Ideally: Have the formula look at cells in the same row as the “Totals:” rows(blue), but only in the Box Columns(orange) to pinpoint all the (green) cells and add them all up for a grand total.
Colors were just added for visual reference.
Any help is appreciated.
Try this. There may be a way to make it more compact, but I have tested and this works if your columns do not change
=SUMIF(A:A,"Totals:",I:I)+SUMIF(A:A,"Totals:",K:K)+SUMIF(A:A,"Totals:",M:M)+SUMIF(A:A,"Totals:",O:O)+SUMIF(A:A,"Totals:",Q:Q)+SUMIF(A:A,"Totals:",S:S)
After a quick test something this might work (as an array formula):

Re: Count value of cells in one column that are within a specific date range in another

Hope you guys can help me please :)
I am trying to create a profit/loss sheet that automatically counts the values in all cells in AH that are within a specific month...
What is the best way to go about this please? Any ideas?
I thing the following formula might work for you:
=SUMPRODUCT((MONTH(A1:A60)=2)*C1:C60)
Where A is the date and C is the value that needs to be counted.

Indirect call of a column from different sheet

I know how to use the indirect formula in a sheet itself.
=INDIRECT(CHAR(ROW(A5))&ROW(A5))
However, I am having hard time manipulating this to find a formula from different sheet called 'sheet1'
I am trying to retrieve value in B3 of Sheet1 using indirect formula. Any help is appreciated.
Please note, going forward (I plan to drag this formula down) I plan to manipulate rows and columns so I do want both of them (rows and columns) as variable values.
Eg: NOT indirect('Sheet1'!B3) but rather something like indirect('Sheet1!'&char(row(a5))...etc) which is not working for me.
Thanks for the help!
=INDIRECT(CHAR(ROW(A5))&ROW(A5)) just returns #REF
do not use something like CHAR() to build a "A1" address. Better use R1C1:
=INDIRECT("'Sheet1'!R3C2",0)
to make the row dragable:
=INDIRECT("'Sheet1'!R"&ROW()&"C2",0)
or to fit the columns:
=INDIRECT("'Sheet1'!R3C"&COLUMN(),0)
or for both:
=INDIRECT("'Sheet1'!R"&ROW()&"C"&COLUMN(),0)

Excel sum range & next set of range numbers

Trying to do something which I think is quite easy but I cant figure it out.
I have a row of about 1000 items. I want to sum for items (A1:H1) and then (I1:Q1) and so on until I get to the end. When I try to do (A1:H1) and drag the formula button across it then gives me (B1:I1). Im trying to avoid this.
Thanks!
Slightly convoluted but the below should work for you. You will need to add in the names of your sheet instead of "Sheet1", it essentially works off of the column reference of the cell the formula is placed into, I had it starting in column A.
=SUM(INDIRECT("'Sheet1'!"&ADDRESS(1,(((COLUMN()-1)*8)+1))&":"&ADDRESS(1,(COLUMN()*8),1,1)))

Resources