Condensing Formula

  • Thread starter Thread starter phil2006
  • Start date Start date
P

phil2006

Is it possible to condense the following formula as it is too long.
=SUM(IF(sheet1!$A$3=B11,sheet1!B$3)+IF(sheet1!$A$4=B11,sheet1!B$4)+IF(sheet1!$A$5=B11,sheet1!B$5))...etc
The problem is that I have around 160 rows on sheet 1 which need addin
in.


Thanks

Phi
 
i assume they all need to equal b11 and if so then add them up
try this

where a1:a26 is your sum range

=SUMIF(A1:A26,B11,A1:A26
 
use = SUMIF(sheet1!A3:A160,B11,sheet1!B3:B160)

( assuming that you have 160 rows.)
 
This is a little different, but I think will return the result you
seek..........

=IF(ISNA(VLOOKUP(B11,Sheet1!A:A,1,FALSE)),"Not
Listed",VLOOKUP(B11,Sheet1!A:A,1,FALSE))

Vaya con Dios,
Chuck, CABGx3
 
Sorry, I misread your post. Didn't see the + signs, thought they were just
the regular things my eyes see this time of a morning <g>

Vaya con Dios,
Chuck, CABGx3
 
Hi Phil,

=SUMPRODUCT(--(sheet1!A3:A162=B11),sheet1!B3:B162)

You will need SUMPRODUCT if you ever introduce more than one sumif
criterion...

HTH,
Bernd
 

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

Back
Top