Help creating a formula to count blank cells in row since last infraction

ceric5683

New Member
Joined
Sep 28, 2019
Messages
1
Hello! I require a bit of help creating a formula for my attendance spreadsheet. We implemented a policy that states "if you have too many infractions, you will go on probation for 30 days, AS LONG as you don't have any infractions during those 30 days. If you do, however, the count starts back at 0.
I don't want to sit and count, especially spanning over months. Can you help me with a formula? The spreadsheet looks like this:
MONTH OF SEPTEMBER


EMPLOYEE NAME12345
SMITHLL
JONESUEX
JOHNSONTL

<tbody>
</tbody>

SO I NEED A FORMULA TO SAY ITS BEEN 2 DAYS SINCE SMITH HAS HAD INFRACTIONS, 1 DAYS FOR JONES AND 0 DAYS FOR JOHNSON...HOW DO I DO IT?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I think I found 2 ways:

=6-LOOKUP(2,1/(B2:F2<>""),COLUMN(B2:F2))

and

=5-AGGREGATE(14,6,(COLUMN(B2:F2)-COLUMN(B2)+1)/(B2:F2<>""),1)
 
Upvote 0

Forum statistics

Threads
1,213,563
Messages
6,114,329
Members
448,564
Latest member
ED38

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