L
Legacy 116183
Guest
I am trying to use an If function with dates but can't seem to crack it.
What I want is: If today's date is later than 28/3/2022, then divide by 31. If it is before 31/3/2022, then divide by the number of days in the month which have elapsed.
I'm trying something like
=(B17/IF(TODAY()<DATE(2022,3,31),31,(2022,3,31)-today())) but not having any success
Any thoughts please?
What I want is: If today's date is later than 28/3/2022, then divide by 31. If it is before 31/3/2022, then divide by the number of days in the month which have elapsed.
I'm trying something like
=(B17/IF(TODAY()<DATE(2022,3,31),31,(2022,3,31)-today())) but not having any success
Any thoughts please?