Count unique dates with criteria - Excel 365

DK27

New Member
Joined
Feb 13, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi,

Hoping someoone can help with a formula I have been struggling to work out.

I have a dataset that contains all hours worked per week per technician. I have created a pivot table to sum the total hours worked. On a seperate tab I have a vlook up to pull the totals though into the format that our payroll system will ingest. The last piece is counting the number of unique dates per technician from the original data in the first tab. This will give me the number of days the technician has worked i.i. days paid. (coulmn F, tab 3)

Could someone please help develop a formula that can count the individual dates per technician.

Much appreciated.

I am trying to get xl2bb working but our IT are working on it, as it isn't working for me. Picture attached.

Cheers
 

Attachments

  • Untitled.png
    Untitled.png
    170.1 KB · Views: 18

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Do you mean something like:

Excel Formula:
=SUM(--(ISNUMBER(UNIQUE(FILTER($C$2:$C$30,$A$2:$A$30=B2)))))

where $C$2:$C$30 stands for "Timesheet Work Date", $A$2:$A$30 stands for Username and B2 stands for Employee ID?

P. S. I am not sure what is the purpose of Pay Rate ID but you could always incorporate another condition...
 
Upvote 0
Adapt the last row of data. Try:
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER('Data Dump'!$C$2:$C$30,'Data Dump'!$A$2:$A$30=B2))),0)
 
Upvote 0
Do you mean something like:

Excel Formula:
=SUM(--(ISNUMBER(UNIQUE(FILTER($C$2:$C$30,$A$2:$A$30=B2)))))

where $C$2:$C$30 stands for "Timesheet Work Date", $A$2:$A$30 stands for Username and B2 stands for Employee ID?

P. S. I am not sure what is the purpose of Pay Rate ID but you could always incorporate another condition...
This worked perfectly. Thank you!!
 
Upvote 0

Forum statistics

Threads
1,223,863
Messages
6,175,049
Members
452,606
Latest member
jkondrat14

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