Timberwolf
New Member
- Joined
- Feb 20, 2018
- Messages
- 26
Good morning All
I recently bought a new laptop. I have a excel sheet that checks for a companies name in a table then checks the date to see if the date is in the range I'm looking for eg. 2019. When I opened my table on my new computer my formulas all returned "0" instead of the values they should have. After messing around for awhile I gave up. In the middle of the night I had a ah ha moment and realized it was the new comps windows date format messing things up (old format was 31/01/2019, mm/dd/yyyy new date format was 01-31-2019, dd-mm-yyyy) because of this it was changing the date in my table to that format while the formulas were still looking for the old format.
Ok so I changed the windows date format and everything works great again WOOHOO. Then my boss opens the file on his comp and his windows date format is 01/31/2019 dd/mm/yyyy and it breaks again....
There has to be a work around or a different way to type my formula so it works on all date formats (not everyone uses 1 date format)
Please help, here is my formula.
=COUNTIFS('All Years Table'!E$2:E$100103,[@[Vendor Names]],'All Years Table'!G$2:G$100103,">=01/01/2019",'All Years Table'!G$2:G$100103,"<=13/12/2019")
I recently bought a new laptop. I have a excel sheet that checks for a companies name in a table then checks the date to see if the date is in the range I'm looking for eg. 2019. When I opened my table on my new computer my formulas all returned "0" instead of the values they should have. After messing around for awhile I gave up. In the middle of the night I had a ah ha moment and realized it was the new comps windows date format messing things up (old format was 31/01/2019, mm/dd/yyyy new date format was 01-31-2019, dd-mm-yyyy) because of this it was changing the date in my table to that format while the formulas were still looking for the old format.
Ok so I changed the windows date format and everything works great again WOOHOO. Then my boss opens the file on his comp and his windows date format is 01/31/2019 dd/mm/yyyy and it breaks again....
There has to be a work around or a different way to type my formula so it works on all date formats (not everyone uses 1 date format)
Please help, here is my formula.
=COUNTIFS('All Years Table'!E$2:E$100103,[@[Vendor Names]],'All Years Table'!G$2:G$100103,">=01/01/2019",'All Years Table'!G$2:G$100103,"<=13/12/2019")