COUNTIF cells are blank in row, but column header date is not in the future

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
594
Office Version
  1. 365
Hi all

I need a COUNTIF formula that will count the number of blank cells in a row, providing the date in that column is not in the future.

COUNT27 Jan28 Jan29 Jan30 Jan
2222dds
0
3ndfkjhkj867jkbk
189nd9
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
=COUNTIFS($B$1:$E$1,"<="&TODAY(),B2:E2,"")

Book1
ABCDE
1COUNT27-Jan28-Jan29-Jan30-Jan
20222ddsaabb
33
40ndfkjhkj867jkbk
5289nd9fff
Sheet1
Cell Formulas
RangeFormula
A2:A5A2=COUNTIFS($B$1:$E$1,"<="&TODAY(),B2:E2,"")
 
Upvote 0
Thank you for this.. Just as an addition.. The date columns are merged across the two cells below (so B1 and C1 would have the date of 27 Jan as a merged column), but B2 and C2 would have two different values in. If either or both are blank, I would need a count.. (Apologies, this is an additional issue from the original!)

COUNT27 Jan27 Jan28 Jan28 Jan29 Jan29 Jan
1122
03sdsasds
2
 
Upvote 0
Sorry, I'm not sure how to do with merged cells - always an issue when merged cells are used
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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