Formula help

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I'm sure this is a no brainer but I would like to add the Indirect function
to this
formula. If someone could help I would be greatfull

Thanks Mike

=SUMIF('#02'!A6:F20,Sheet4!A6,'#02'!E6:E20)
 
=SUMIF('#02'!A6:F20,Sheet4!A6,'#02'!E6:E20)

Presuming you meant to do this:
=SUMIF('#02'!A6:A20,Sheet4!A6,'#02'!E6:E20)

(SUMIF doesn't work for multi-col ranges, albeit Excel seems to accept it)

One example, assuming you have inputs

In C1: #02
In C2: A6:A20

Then in C3, you could use this expression:
=SUMIF(INDIRECT("'"&C$1&"'!"&C$2),Sheet4!A6,OFFSET(INDIRECT("'"&C$1&"'!"&C$2),,4))

C3 returns the same result as:
=SUMIF('#02'!A6:A20,Sheet4!A6,'#02'!E6:E20)

As-is, C3 could be copied down to return the SUMIFs correspondingly for
other values in Sheet4!A7, Sheet4!A8, etc

---
 

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