Lab › Dates & Times › Days to Expiry
Days to Expiry: Excel Lab
Lab 33 · IntermediateDate subtraction$ absolute referenceNested IF
The task: Stock with expiry dates. As on 1 Oct 2026, find the days left and mark Expired, Soon (30 days or less) or OK.
1 Watch how it is done
Step 1: Days left = Expiry − As On
=B4-$F$4- Click C4.
- Type =B4-$F$4 and press Enter. $F$4 is the As On date; the $ keeps it fixed.
- Drag the fill handle down.
Step 2: Expired, Soon or OK
=IF(C4<0,"Expired",IF(C4<=30,"Soon","OK"))- Click D4.
- Type =IF(C4<0,"Expired",IF(C4<=30,"Soon","OK")) and press Enter.
- Drag the fill handle down.
2 Your turn
Download the practice file. It has new numbers. Open it in Excel (or Google Sheets) and do the same steps.
3 Check your answers
Stuck? Download the solution file and compare it with yours.
Next lab: Fix #DIV/0! with IFERROR →
Want the theory? Read the Dates & Times lessons →
← More Dates & Times labs · All lab categories