Date calculation not working in Excel due to Windows date format
Posted: Fri Jan 26, 2024 11:13 pm
I have below query:
I am fetching date using SUBNM in an Excel sheet.
Cell A2 = 26-01-2024
This date is in format DD-MM-YYYY.
There is further excel calculation.
For example, Cell B2 = A2+3
When the windows date format is the same, Cell B2 is calculating fine.
However, when the windows format changes to YYYY-MM-DD, Cell B2 is giving #VALUE error.
Client has to manually change the windows date format everytime he uses this report. Is there any way in TM1 Excel or VBA where we can make this work?
Thank You in advance.
I am fetching date using SUBNM in an Excel sheet.
Cell A2 = 26-01-2024
This date is in format DD-MM-YYYY.
There is further excel calculation.
For example, Cell B2 = A2+3
When the windows date format is the same, Cell B2 is calculating fine.
However, when the windows format changes to YYYY-MM-DD, Cell B2 is giving #VALUE error.
Client has to manually change the windows date format everytime he uses this report. Is there any way in TM1 Excel or VBA where we can make this work?
Thank You in advance.