Indirect to pull a value of a tab

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,340
Office Version
  1. 365
Platform
  1. Windows
I am using an indirect to pull a value off a tab: INDIRECT($B8&"!$H$268")

$B$8 contains the name of the tab

I want to do the same kind of thing but instead of pulling the value fro $H$268 I want to do a SumIf formula.

=SUMIF($B8&"!C6:C37","10.01"&"*",$B8&"!F6:F37")



In B8 the value is 1.01.01.01 (which is the name of one of my tabs)
So a normal Sumif that wasn't using an Indirect would be:

SUMIF('1.01.01.01'!C6:C37,"10.01"&"*",'1.01.01.01'!F6:F37)
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Got it:

=SUMIF(INDIRECT($B8&"!$C$6:$C$37"),"10.01"&"*",INDIRECT($B8&"!$F$6:$F$37"))
 
Upvote 0
INDIRECT just resolves string to a range... so you need an indirect for each dynamic range referenced...

Code:
=[COLOR=#333333]SUMIF([/COLOR][COLOR=#333333]INDIRECT($B8&"[/COLOR][COLOR=#333333]!C6:C37"),"10.01"&"*",[/COLOR][COLOR=#333333]INDIRECT($B8&"[/COLOR][COLOR=#333333]!F6:F37")[/COLOR][COLOR=#333333])[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top