CountIFs text before today

flyyboy84

New Member
Joined
Feb 27, 2015
Messages
3
I do not have permissions to post attachments so I will try to explain as best I can.

I have dates in Row 1 that go to the end of the year (some dates are before today and some are after)

In rows 2-5 I have names workers that randomly work shifts on those dates.

I have a column of all the names listed and would like to count the number of shifts each person has worked UP TO today.

I have a cell with today's date , =Today()

This is what I have come up with, but there is a formatting error.

=COUNTIFS(B2:F5,H2,B1:F1,"<="J2)

B2:F5 is the range of names who are working the shifts under each column date
B1:F1 is the dates in order, some are before today and some are after
H2:H6 are the list of worker names (I would like the total shifts prior to today to be displayed in I2:I6 next to corresponding name
J2 is =Today()

Please help if you can!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try this.

=COUNTIFS(B2:F5,H2,B1:F1,"<=" & J2)
 
Upvote 0
Thanks, but that's the exact formula I have (forgot to add that to my original post), but it comes up with a #VALUE ! error (I think due to formatting).
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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