A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi there
Dealing with long nested IF formulas are tricky.
In this scenario is advisable to use VLOOKUP() formulas for approximate matches using TRUE as the last argument.
To that purpose please, try the following steps
- Anywhere on your workbook create a table similar to the one below
- And give it a Named Range per example: "FYLevies"
To get the expected results
- Use the following formulas
For the AMOUNT =VLOOKUP($A2,FYLevies,2,TRUE)
For the MESSAGE =VLOOKUP($A2,FYLevies,3,TRUE)
Table Structure Notes:
a) Dates most be sorted in ascending order
b) They represent the lower bound of the period (i.e the starting date for the period= included)
c) The date 01/01/1900 is the First Date in Excel, It represents all dates prior to 01-Sept-2020 in this table
d) I choose to change the message and to use formulas to make it dynamic.
So we could easily change the amount and dates in the table and the message will change accordingly.
e) The levy amount for 2023 onwards is fake, since data for that period was missing from the given details in the post.
You may download the file with this solution from the link below https://we.tl/t-TvpB7fjnkG
I hope this helps you and gives a solution to your problem
Do let me know if you need more help
Regards
Jeovany