Cutoff flag per row: 3rd business day after service month end, but my dates are a mess
Our take
I’m a student in a small accounting internship and I got the classic “it’s easy, just do it in Excel” task: check cutoff on a monthly invoice dump. The export has Service Date (when the service happened) and Received Date (when AP actually got the invoice). The rule my manager wants is: if an invoice was recieved on or before the 3rd business day of the following month, it counts for the service month. If it’s received after that cutoff, flag it as Late for review. Business days are Mon to Fri, and we also have a simple holiday list on another tab (named range Holidays). I get the logic, but the file itself is giving me grey hair because the date columns are not consistent. Sometimes the export gives “2/5/2026”, sometimes “02/05/26”, and sometimes it’s literally “2026-02-05” as text. And of course some Received Dates are blank because they’re still waiting on the vendor. I can’t use Power Query on this laptop (IT locked it down), so it needs to be straight worksheet formulas.
Here’s a tiny sample of what the data looks like once it lands in the sheet (the real file is like 3k rows):
| Service Date | Received Date | Vendor |
| 1/29/2026 | 2/05/2026 | OfficeSupplyCo |
| 1/31/2026 | 2/06/2026 | Lab Rentals |
| 2/01/2026 | (blank) | Printing |
| 2/15/2026 | 2026-03-03 | Software |
What I want is two columns I can drag down: (1) the actual cutoff date for that service month, and (2) OK vs Late vs blank if there’s no Received Date. In my head it’s just EOMONTH + WORKDAY, but im getting a bunch of #VALUE and I can’t tell if it’s because some rows are text, or because Excel is “helpfully” treating 02/11/26 differently depending on my locale that day.
My current formual is basically:
=IF([@[Received Date]]<=WORKDAY(EOMONTH([@[Service Date]],0),3,Holidays),"OK","Late")
If I wrap DATEVALUE around the fields it fixes some rows and breaks others, and IFERROR just hides the chaos.
Is there a clean way to coerce both columns into real dates inside one formula (LET is fine), handle blanks gracefully, and still include the Holidays range? I’m trying to avoid adding 5 helper columns because this workbook is already turning into a monster and my manager wants it “simple”. Any best practice pattern for this kind of cutoff logic would save me.
[link] [comments]
Read on the original site
Open the publisher's page for the full experience
Related Articles
- Trying to make a 'Days Since' cell, that checks three other cells for dates (or any text), and outputs a number based on those cells.Hey Excel community! I have three dates on my sheet for each line: the date submitted, the date last actioned and a completion date if completed. https://preview.redd.it/y6q7vfz9l9ng1.png?width=743&format=png&auto=webp&s=78fa957ff21aee508103e3656369b8941ae6cfa1 I am trying to have a 'Days Since' column that outputs the number of workdays since the Last Action date. If there is no Last Action I want it to output the number of workdays since the Submitted date. BUT, if there is a date (or text) in the Completed column, I want it to be empty. I have gotten it to output 'days since' the Last Action date, =IF(ISNUMBER([@[Last Action]]), MAX(0, NETWORKDAYS([@[Last Action]] +1, TODAY() )), "") without including the Last Action date itself (the +1), and not being negative for stuff entered today (the MAX(0,). But my attempt to work from the Submit date, if there is no Last Action date haven't been as successful (mostly formula errors) or continuing to accrue days on stuff that has been completed, which I would prefer just be blank. I made some progress that I think is kind of doing what I want, but any line without a date returns a large number that it throwing off my conditional formatting, and I think it is just a messy way of doing what I want: =IF(AND([@[Last Action]]="", [@Completed]=""), MAX(0, NETWORKDAYS([@Submitted] +1, TODAY() )), IF(ISNUMBER([@[Last Action]]), MAX(0, NETWORKDAYS([@[Last Action]] +1, TODAY() )), "")) I was wondering how to make it be blank if there are no dates, and also if there is just a better way to do this..? submitted by /u/dead_pixel_design [link] [comments]
- Conditional formatting based on range of values in different column?https://preview.redd.it/l3guc8q9wfog1.png?width=1324&format=png&auto=webp&s=ec9fba2147eebc33af9e108241f82cb9163cf512 I've tried several different ways to do this but clearly I'm missing something. I have spreadsheet that shows the hours scheduled on all the machines at our facility. The dates in row 2 auto populate based on today's date. I want to make a rule that changes the formatting of rows 3 - 12 if any of the dates in row 2 are company holiday. For example, if B2 matches any of the dates in R3 through R12, I want B3 through B12 to fill in black with red text, so that way it shows that date is blacked out because we're closed, but if someone accidentally scheduled an order that day the machine hours will show in red so they know to reschedule it. On the original version of this spreadsheet I made a few years ago I had the same issue and end up just using =B$2=$R$3, so for each day I had to make 10 different rules for every holiday in column R. I knew that definitely was not the best way to do it but I was tired of messing with it and just needed it to work. I am updating this spreadsheet and it now shows the next 60 days instead of the next 14 days and I know there's got to be a better solution than creating 10 different rules for each day. I know =B$2=$R$3:$R$12 does NOT work and I think I'm starting to smell burnt toast. submitted by /u/BluestockingLife [link] [comments]