Hopefully someone can shed some light on what's the best way to approach this issue I am having.
Assumptions
-Column E contains dates
-Column G contains either "Exempt" or "Non-Exempt" in the cells downward
-Column C contains either "IFS", "Tax", "FAS" or "ASR"
The goal is to have the macro check the date in column E against 1 of 4 lists based on the following criteria. Due to limitations with the way the system exports the data, I need to have everything in the macro including the lists of dates. If the date is on the list its supposed to check, then "On-cycle" otherwise "Off-cycle". The criteria to choose a specific list would be:
1. If Column G contains "Non-Exempt" check list 1
2. If Column G contains "Exempt" and Column C contains "Tax" or "IFS" check list 2
3. If Column G contains "Exempt" and Column C contains "FAS" check list 3
4. If Column G contains "Exempt" and Column C contains "ASR" check list 4*
My original thought was to simply write out a very long nested IF formula and have the macro insert the formula, however I realize that this is not the most efficient way to do this, especially considering those lists of dates change on a yearly basis.
While I am not opposed to setting a yearly reminder to update these dates, I would like to try and streamline this. Looking for some help as I am fairly new to vba. I did some reading and think this might be an opportunity to use array's for the 4 lists of dates, but I have no clue how to set one up to check against the date based on the criteria.
Or otherwise, if it's possible to check that very same criteria against google sheet or even any other type of hosted spreadsheet.
Really appreciate any insight and help.
Thanks!
Bookmarks