Indirect to pull a value of a tab

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,341
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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,215,353
Messages
6,124,462
Members
449,163
Latest member
kshealy

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