Using SUMIF with a drop down.

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Hi, I think I put tis in the wrong area before.

Is it possible to use a value from a pull down in a SUMIF statement?

=SUMIF(Forecast!B2:B218,Main!K11,Forecast!F2:F218)

I would like Forecast to be replaced by M6 on the "Main" tab, this would
give me the ability to do the calculations for all tabs.

Thanks

Steve
 
I'm assuming M6 will contain the name of a sheet?

=SUMIF(INDIRECT(Main!M6&"!B2:B218"),Main!K11,INDIRECT(M6&"!F2:F218"))
 
Hi,

Its not clear what you want but it sounds like Data, Validation.

Hi,

Here are the basic steps for applying Data Validation to a range:

1. Select M6 on the main tab
2. Choose Data, Validation and open the Allow drop-down
3. Select List and highlight a range where you list the name of each sheet
4. The modify your SUMIF formula something like this:

=SUMIF(INDIRECT(M6&"!B2:B218"),Main!K11,INDIRECT(M6&"!F2:F218"))

If the formula is not on the Main sheet then you will need to change the M6
reference to something like Main!M6 in the above formula.
 
Hi Luke

Worked a treat, many thanks

Steve

Luke M said:
I'm assuming M6 will contain the name of a sheet?

=SUMIF(INDIRECT(Main!M6&"!B2:B218"),Main!K11,INDIRECT(M6&"!F2:F218"))


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*
 

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

Sumif 2
SUMIF with criteria "<>" & "=" 4
IF function 3
SUMIFS with Trim 2
SUMIF with dates 2
Nesting SUMIF with Wildcard 3
SUMIF has slowed down the workbook 1
Sumif of Sumif perhaps? 2

Back
Top