Counting the number of unique dates across multiple tabs

Beagle263

New Member
Joined
Jun 18, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I am trying to calculate the number of unique dates across multiple tabs, excluding any duplicate numbers.

I have tried =SUMPRODUCT(1/COUNTIF(Range,Range) which is works when applying this to only one of the tabs. However when I am trying to combine all the sheets I comes up as an Error.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Which column contains the dates & are the sheets all consecutive?
 
Upvote 0
There are roughly 3 sheets similar to the one below but just refers to different tests.

I need to calculate the number of days a technician has attended site from the tests done

Testing Location
Test No.Date TestedPlotGrid Square
130/11/20233L84
230/11/20233L85
330/11/20233M85
430/11/20233M84
501/12/20233M84
601/12/20233M85
701/12/20233N84
801/12/20233N85
905/12/20232W47
1005/12/20232X46
1105/12/20232W47
1205/12/20232X46
1305/12/20232J86
1405/12/20233L85
1505/12/20233L84
1605/12/20232X48
1705/12/20232X46
1805/12/20233N85
1905/12/20233M84
2011/12/20233L86
2111/12/20233L85
2211/12/20233L85
2311/12/20233L85
2411/12/20233L86
2511/12/20233L86
2612/12/20233M86
2712/12/20233M86
2818/12/20233L86
2918/12/20233K86
3018/12/20233K85
3118/12/20233G89
3218/12/20233H85
3318/12/20233H86
3418/12/20233K85
3518/12/20233K86
3609/01/20242X43
3709/01/20242X44
3809/01/20242X43
3909/01/20242X44
4009/01/20242X44
4109/01/20232X43
4210/01/20242X44
4310/01/20242X43
4410/01/20242X44
4510/01/20242X43
4610/01/20242X43
4710/01/20242X44
4810/01/20242X44
4910/01/20242X43
5011/01/20242X42
5111/01/20242X43
5211/01/20242X43
5311/01/20242X44
5411/01/20242X43
5511/01/20242X44
5611/01/20242Y42
5711/01/20242X43
5811/01/20242X43
5911/01/20242Y42
6012/01/20242Y42
6112/01/20242X43
6212/01/20242Y42
6312/01/20242X43
6412/01/20242X44
6512/01/20242X43
6612/01/20242Y45
6712/01/20242X44
6815/01/20242Y42
6915/01/20242Y43
7015/01/20242Y42
7116/01/20242Y43
7216/01/20242Y42
7316/01/20242X44
7416/01/20242X44
7516/01/20242Y42
7616/01/20242Y41
7716/01/20242Y43
7816/01/20242Y42
7916/01/20242Y41
8016/01/20242Y41
8117/01/20242Y42
8217/01/20242Y41
8317/01/20242Y43
8417/01/20242Y42
8517/01/20242Y43
 
Upvote 0
Thanks for that, unfortunately it doesn't answer my questions, but try something like
Excel Formula:
=LET(v,VSTACK(Sheet1!B2:B100,Sheet2!B2:B100,Sheet3!B2:B100),ROWS(UNIQUE(FILTER(v,v<>""))))
or if they are consecutive
Excel Formula:
=LET(v,VSTACK(Sheet1:Sheet3!B2:B100),ROWS(UNIQUE(FILTER(v,v<>""))))
 
Upvote 0
Could you try something like this? Put all your ranges in a VSTACK formula and then wrap in UNIQUE and COUNT function:

S7_BuiltinFunctions.xlsm
Q
38
Sheet1
Cell Formulas
RangeFormula
Q3Q3=COUNT(UNIQUE(VSTACK(B4:B53,G4:G53,L4:L53)))
 
Upvote 0
S7_BuiltinFunctions.xlsm
ABCDEFGHIJKLMNOPQ
1Testing LocationTesting LocationTesting Location
2Unique Count of Three Ranges
3Test No.Date TestedPlotGrid SquareTest No.Date TestedPlotGrid SquareTest No.Date TestedPlotGrid Square8
4130/11/20233L84130/11/20233L84130/11/20233L84
5230/11/20233L85230/11/20233L85230/11/20233L85
6330/11/20233M85330/11/20233M85330/11/20233M85
7430/11/20233M84430/11/20233M84430/11/20233M84
851/12/20233M8451/12/20233M845#######3M84
961/12/20233M8561/12/20233M856#######3M85
1071/12/20233N8471/12/20233N847#######3N84
1181/12/20233N8581/12/20233N858#######3N85
1295/12/20232W4795/12/20232W479#######2W47
13105/12/20232X46105/12/20232X4610#######2X46
14115/12/20232W47115/12/20232W4711#######2W47
15125/12/20232X46125/12/20232X4612#######2X46
16135/12/20232J86135/12/20232J8613#######2J86
17145/12/20233L85145/12/20233L8514#######3L85
18155/12/20233L84155/12/20233L8415#######3L84
19165/12/20232X48165/12/20232X4816#######2X48
20175/12/20232X46175/12/20232X4617#######2X46
21185/12/20233N85185/12/20233N8518#######3N85
22195/12/20233M84195/12/20233M8419#######3M84
232011/12/20233L862011/12/20233L8620#######3L86
242111/12/20233L852111/12/20233L8521#######3L85
252211/12/20233L852211/12/20233L8522#######3L85
262311/12/20233L852311/12/20233L8523#######3L85
272411/12/20233L862411/12/20233L8624#######3L86
282511/12/20233L862511/12/20233L8625#######3L86
292612/12/20233M862612/12/20233M8626#######3M86
302712/12/20233M862712/12/20233M8627#######3M86
312818/12/20233L862818/12/20233L862818/12/20233L86
322918/12/20233K862918/12/20233K862918/12/20233K86
333018/12/20233K853018/12/20233K853018/12/20233K85
343118/12/20233G893118/12/20233G893118/12/20233G89
353218/12/20233H853218/12/20233H853218/12/20233H85
363318/12/20233H863318/12/20233H863318/12/20233H86
373418/12/20233K853418/12/20233K853418/12/20233K85
383518/12/20233K863518/12/20233K863518/12/20233K86
39369/1/20242X43369/1/20242X43369/1/20242X43
40379/1/20242X44379/1/20242X44379/1/20242X44
41389/1/20242X43389/1/20242X43389/1/20242X43
42399/1/20242X44399/1/20242X44399/1/20242X44
43409/1/20242X44409/1/20242X44409/1/20242X44
44419/1/20232X43419/1/20232X43419/1/20232X43
454210/1/20242X444210/1/20242X4442#######2X44
464310/1/20242X434310/1/20242X4343#######2X43
474410/1/20242X444410/1/20242X4444#######2X44
484510/1/20242X434510/1/20242X4345#######2X43
494610/1/20242X434610/1/20242X4346#######2X43
504710/1/20242X444710/1/20242X4447#######2X44
514810/1/20242X444810/1/20242X4448#######2X44
524910/1/20242X434910/1/20242X4349#######2X43
535011/1/20242X425011/1/20242X4250#######2X42
Sheet1
Cell Formulas
RangeFormula
Q3Q3=COUNT(UNIQUE(VSTACK(B4:B53,G4:G53,L4:L53)))
 
Upvote 0
S7_BuiltinFunctions.xlsm
ABCDEFGHIJKLMNOPQ
1Testing LocationTesting LocationTesting Location
2Unique Count of Three Ranges
3Test No.Date TestedPlotGrid SquareTest No.Date TestedPlotGrid SquareTest No.Date TestedPlotGrid Square8
4130/11/20233L84130/11/20233L84130/11/20233L84
5230/11/20233L85230/11/20233L85230/11/20233L85
6330/11/20233M85330/11/20233M85330/11/20233M85
7430/11/20233M84430/11/20233M84430/11/20233M84
851/12/20233M8451/12/20233M845#######3M84
961/12/20233M8561/12/20233M856#######3M85
1071/12/20233N8471/12/20233N847#######3N84
1181/12/20233N8581/12/20233N858#######3N85
1295/12/20232W4795/12/20232W479#######2W47
13105/12/20232X46105/12/20232X4610#######2X46
14115/12/20232W47115/12/20232W4711#######2W47
15125/12/20232X46125/12/20232X4612#######2X46
16135/12/20232J86135/12/20232J8613#######2J86
17145/12/20233L85145/12/20233L8514#######3L85
18155/12/20233L84155/12/20233L8415#######3L84
19165/12/20232X48165/12/20232X4816#######2X48
20175/12/20232X46175/12/20232X4617#######2X46
21185/12/20233N85185/12/20233N8518#######3N85
22195/12/20233M84195/12/20233M8419#######3M84
232011/12/20233L862011/12/20233L8620#######3L86
242111/12/20233L852111/12/20233L8521#######3L85
252211/12/20233L852211/12/20233L8522#######3L85
262311/12/20233L852311/12/20233L8523#######3L85
272411/12/20233L862411/12/20233L8624#######3L86
282511/12/20233L862511/12/20233L8625#######3L86
292612/12/20233M862612/12/20233M8626#######3M86
302712/12/20233M862712/12/20233M8627#######3M86
312818/12/20233L862818/12/20233L862818/12/20233L86
322918/12/20233K862918/12/20233K862918/12/20233K86
333018/12/20233K853018/12/20233K853018/12/20233K85
343118/12/20233G893118/12/20233G893118/12/20233G89
353218/12/20233H853218/12/20233H853218/12/20233H85
363318/12/20233H863318/12/20233H863318/12/20233H86
373418/12/20233K853418/12/20233K853418/12/20233K85
383518/12/20233K863518/12/20233K863518/12/20233K86
39369/1/20242X43369/1/20242X43369/1/20242X43
40379/1/20242X44379/1/20242X44379/1/20242X44
41389/1/20242X43389/1/20242X43389/1/20242X43
42399/1/20242X44399/1/20242X44399/1/20242X44
43409/1/20242X44409/1/20242X44409/1/20242X44
44419/1/20232X43419/1/20232X43419/1/20232X43
454210/1/20242X444210/1/20242X4442#######2X44
464310/1/20242X434310/1/20242X4343#######2X43
474410/1/20242X444410/1/20242X4444#######2X44
484510/1/20242X434510/1/20242X4345#######2X43
494610/1/20242X434610/1/20242X4346#######2X43
504710/1/20242X444710/1/20242X4447#######2X44
514810/1/20242X444810/1/20242X4448#######2X44
524910/1/20242X434910/1/20242X4349#######2X43
535011/1/20242X425011/1/20242X4250#######2X42
Sheet1
Cell Formulas
RangeFormula
Q3Q3=COUNT(UNIQUE(VSTACK(B4:B53,G4:G53,L4:L53)))

Thank you, I ended up using =COUNT(UNIQUE(TOCOL(v:v))))

I also want to see if I can then apply this to only count the dates from a given period, e.g from March 2024
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,106
Members
453,021
Latest member
Justyna P

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