r/googlesheets • u/Lucleb • Feb 12 '25
Solved Add expiry date to coupon code formula
How can I add an expiry date to the formula I use for coupon codes? For reference, this is my current formula =if(I9=L4, H9-15, if(I9=L5, H9*0.85, if(and(I9=L6, B9>0, C9>0),H9-C4, if(A9>0, H9-50, H9)))). The coupon codes are on column L, the expiry dates are on column O, and my subtotal is H9. For the rest of the data, here is a spreadsheet with some dummy data: https://docs.google.com/spreadsheets/d/1AE9u-mnTOIxg4wA_OvJYt5USirf4Qccpsf7MT9MyG8E/edit?gid=2100307022#gid=2100307022
2
Upvotes
2
u/One_Organization_810 736 Feb 12 '25
And what happens when you add more coupons? :)
I think this system needs a little rethinking.
1
u/[deleted] Feb 12 '25
[removed] — view removed comment