SUMIF formulas

C

Caroline

Hi there

I'm trying to get the following fomula to work.

=SUMIF('Actuals YTD'!$A$2:$A$630,"=5010111",'Actuals
YTD'!$C$2:$N$630)+SUMIF('Actuals YTD'!$A$2:$A$630,"=5010211",'Actuals
YTD'!$C$2:$N$630)+SUMIF('Actuals YTD'!$A$2:$A$630,"=5120111", 'Actuals
YTD'!$C$2:$N$630)+SUMIF('Actuals YTD'!$A$2:$A$630,"=5200111",'Actuals
YTD'!$C$2:$N$630)

It doesn't appear to be picking up the figures in any other column other
than "C", when it should be adding up from "C" to "N". A SUMPRODUCT doesn't
work due to the fact the data I'm searching on doesn't run in sequence.

Any help greatly appreciated!!

Thanks
Caroline
 
M

Max

Lightly tested ok, think you could try something like this:
=SUMPRODUCT(ISNUMBER(MATCH(A2:A10,{555,333,444},0))*B2:C10)
Adapt the ranges & the criteria ie the nums within the {...} bit, to suit

As for your obs on SUMIF, it works only for a single sum col, ie the
leftmost col C in your expression, albeit Excel seems to happily accept the
multi-col, thus giving you the false impression that it works that way. The
above sumproduct should provide you with a concise way to arrive at the
expected results. Success? hit the YES below
 
B

Brad

Just a thought, if you had another column that added up the information in
columns C-N and you could use your current formula and access the "new"
column of numbers...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sumproduct and Sumif formulas 2
sumproduct - <> 5
Replace 1
FAO Mike 10
Conditional Protection 1
Sumif does not work 2
Adjusting formula for month in vlookup? 3
Array formulae - problem 4

Top