Indirect

Holger

New Member
Joined
Nov 22, 2017
Messages
19
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi guys,

any help would be greatly appreciated:

This works: =COUNTIFS(HeadcountFeed!$G$4:$G$600,">="&$B$8,HeadcountFeed!$G$4:$G$600,"<="&$B$9,HeadcountFeed!$F$4:$F$600,$A45)
This does not: =COUNTIFS(INDIRECT(B15,TRUE),">="&$B$8,INDIRECT(B15,TRUE),"<="&$B$9,INDIRECT(B15,TRUE),$A45) with B15 being: 'HeadcountFeed'!$G$4:$G$600

Any help would be awesome.

Cheers
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Either remove the apostrophies from B15 or add an extra one at the start. Both ways work at my end.

B15=

''HeadcountFeed'!$G$4:$G$600 <-- That's two apostrophies, not a quotation mark.
or
HeadcountFeed!$G$4:$G$600

Also in your first formula the range is
HeadcountFeed!$F$4:$F$600, is it meant to be F? Because in the second formula it is G.
 
Last edited:
Upvote 0
Either remove the apostrophies from B15 or add an extra one at the start. Both ways work at my end.

B15=

''HeadcountFeed'!$G$4:$G$600 <-- That's two apostrophies, not a quotation mark.
or
HeadcountFeed!$G$4:$G$600

Also in your first formula the range is
HeadcountFeed!$F$4:$F$600, is it meant to be F? Because in the second formula it is G.

Awesome and thank you so much!!! Re F referecne, that is correct as it relates to something else in my data. Thanks again mate!
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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