3D Referencing

Tikey

Board Regular
Joined
Jan 30, 2014
Messages
148
Office Version
  1. 2021
Platform
  1. Windows
I am using Office Pro 2021

I have what I guess is a fairly straight forward formula to count the number of unique dates in a range, for a particular month, in this example for August. The range of cells do not necessarily always all contain values.

=COUNT(UNIQUE($E$16:$E$20000/(MONTH($E$16:$E$20000)=8)))

That works fine, but I wish to use 3D referencing and apply this across a number of sheets

=COUNT(UNIQUE('AB1:AB5'!$E$16:$E$20000/(MONTH('AB1:AB5'!$E$16:$E$20000)=8)))

Now it just returns 0. I’m sure I have used the correct sheet range name notation ( 'AB1:AB5'! ) and have tried searching for an answer without success.

Can anyone offer a solution.

Thank you
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Try . . .

Excel Formula:
=SUM(IF(MONTH(UNIQUE(FILTERXML("<root><item>"&SUBSTITUTE(TEXTJOIN(",",TRUE,'AB1:AB5'!E16:E20000),",","</item><item>")&"</item></root>","//item")))=8,1))

Hope this helps!
 
Upvote 0
Thanks for your reply. Unfortunately I don't understand what root and item are, do I have to substitute them for some value ??
 
Upvote 0
Roughly how many rows of data do you have on those sheets & is it 5 sheets?
 
Upvote 0
There are 5 sheets and I want the answer from this formula on a summary sheet. There can be up to 20000 rows
 
Upvote 0
Thanks for your reply. Unfortunately I don't understand what root and item are, do I have to substitute them for some value ??
No, there's no need to do any substitution. It's simply used to format the string in XML format.
 
Upvote 0
I'm showing my lack of knowledge, I still don't understand
 
Upvote 0
There can be up to 20000 rows
In that case you won't be able to use Domenic's idea, as it cannot handle that many cells. I think you will have to do each sheet separately.
 
Upvote 0
I guess you are saying that COUNT, UNIQUE will not work across sheets. Is there another formula that would be better to use and would work ?
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,581
Members
449,089
Latest member
Motoracer88

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