A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hello Lachie88
Welcome to Microsoft Community.
After observing your description, I made a corresponding table in Excel for this, as follows:
Please note that I have changed the Las Order Date, this is to better match the date of the day and to highlight the different colours, e.g. today is 2/10/2023. If your condition is 01/02/2023, the last colour will only be in red.
| To accomplish this, you can create a formula in a separate column (let's say Column E) to calculate the reorder date for each product based on the "Last Order Date," "Re-order Frequency (days)," and "Lead Time(days)". The formula for each row would be as follows:<br>For Product #1 in Row 2: =B2+C2-D2For Product #2 in Row 3: =B3+C3-D3For Product #3 in Row 4: =B4+C4-D4 |
|---|
| Next, create a formula in a separate column (let's say Column F) to get the yellow, then type the following formula:<br><br><br><br>=IF(TODAY()-E2<-2, "Red", IF(TODAY()-E2<=1, "Yellow", "Green"))<br><br><br><br>Place the cursor in the bottom right corner of cell F2 -> drop down the batch application -> this will generate the corresponding colour for the different days gap <br><br> <br><ul><li><p data-prewrap="true">For Red, where E2 shows 2/20/2023, this is clearly beyond the 2/10/2023 period, which equates to 2 days late in being reordered, to avoid overflowing cells I have changed the condition to show red for all days greater than 2 </p><p data-prewrap="true"></p></li><li><p data-prewrap="true">For Yellow, where E3 shows 2/11/2023, which is obviously one day before 2/10/2023, which is the same as 1 day before needing to be reordered </p><p data-prewrap="true"></p></li><li><p data-prewrap="true">For Green, where E4 shows 2/1/2023, which is obviously nine days away from today 2/10/23, the same principle as before.</p></li></ul> |
|---|
I hope this helps, I have sent the sample file in your private message, please view it here:
Best Regards,
Chandy |Microsoft Community Support Specialist