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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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,216,110
Messages
6,128,896
Members
449,477
Latest member
panjongshing

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