I did the following in excel to get the MTD day of current month - i.e. if today is 31 march 2020, I should get 30 as number of days in the MTD.
Im wondering whether this can be done in a single formula within the need of having =today() formula to get the current date first and separately use =day()-1 to get the MTD days? - this case would be 2 separate formulas.
=DAY(TODAY())-1
. – EnigmativityEOMONTH(Today(),-1)
will give you previous months last date. SoToday()-EOMONTH(Today(),-1)-1
is what you are looking for – Naresh