Is there a better way to do this function?
=-IF(OR(NOW()>DATE(YEAR(NOW()),9,17),(getDataFromCreditCards($A13,$B56,$C56)>-('2012'!AE13))),getDataFromCreditCards($A13,$B56,$C56),-('2012'!AE13))
Here’s what it is doing.
1. Checking todays date.
2. If the date is 9/17 or greater then it gets data to fill the cell
3. The data comes from “CreditCards” data base, using A23 (credit card name), B56 (starting date) and C56 (ending date).
4. If the date is before 9/17 it checks last year’s input on sheet “2012” to the current data in the “CreditCards” data base and inputs the larger of the two.
5. Also all inputs are a negative number.
I’ve used this for over 10 years and it works but there are two annoying problems.
1. Every year when adding a new sheet all occurrences of this need changing to the sheet it is looking at.
2. it’s slow! With five credit cards and twelve months, that’s 60 of these checks to go through after every input.
Bookmarks