dezibluenose
New Member
- Joined
- Oct 6, 2021
- Messages
- 12
- Office Version
- 365
- Platform
- Windows
I’ve a strange issue here – strange for Me anyway.
On one sheet of my excel file, dates aren’t registering as dates even though they are in date format?!? This particular sheet pulls data from an SQL server. From that I'm assuming my problem is most likely NOT an issue with my formula but an issue with how the data is pulled into my excel file.
To explain more, I’m doing a date count that references another sheet on my excel file. I’m checking a customer number and asking my formula to return how many issues we’ve had within a certain date window. This second sheet has information from the last 5 years so I use the following formula to check for issues in this financial year:-
=COUNTIFS(Sheet2!B:B, Sheet1!A:A, Sheet2!AT:AT,">=01/04/2024", Sheet2!AT:AT,"<=01/05/2025")
Sheet 1 is my main sheet with customer details. Column A has customer numbers
Sheet 2 is a report that gets pulled from an SQL Server. Column B has customer numbers and column AT has the dates I need to search.
Dates shown on Sheet 2 don’t seem to come through as dates when pulled from the SQL server. They look like dates on the columns, both format cells and the number format ribbon show the format for those columns as dates but until I copy them from the file, paste them into notepad then copy/paste them back in, my formula doesn’t work. Until I do the copy/paste, the formula doesn't register them as dates.
I've included a screen dump below of how they look on a filter before and after doing my copy and paste routine.
Data on Sheet 2 is pulled from an SQL server, and as I said earlier, I'm assuming the issue lies there and there's nothing I can do to my formula to fix this. That report comes from somewhere else and I guess unless there is a change there - and sadly I don't have access to change that report - I have to carry on doing my manual fix for my formula.
I'm hoping though that someone has a way to fix my formula so it registers dates regardless of format. I'm open to any suggestions for fixing this issue that my excel knowledge is lacking. Thanks in advance.
On one sheet of my excel file, dates aren’t registering as dates even though they are in date format?!? This particular sheet pulls data from an SQL server. From that I'm assuming my problem is most likely NOT an issue with my formula but an issue with how the data is pulled into my excel file.
To explain more, I’m doing a date count that references another sheet on my excel file. I’m checking a customer number and asking my formula to return how many issues we’ve had within a certain date window. This second sheet has information from the last 5 years so I use the following formula to check for issues in this financial year:-
=COUNTIFS(Sheet2!B:B, Sheet1!A:A, Sheet2!AT:AT,">=01/04/2024", Sheet2!AT:AT,"<=01/05/2025")
Sheet 1 is my main sheet with customer details. Column A has customer numbers
Sheet 2 is a report that gets pulled from an SQL Server. Column B has customer numbers and column AT has the dates I need to search.
Dates shown on Sheet 2 don’t seem to come through as dates when pulled from the SQL server. They look like dates on the columns, both format cells and the number format ribbon show the format for those columns as dates but until I copy them from the file, paste them into notepad then copy/paste them back in, my formula doesn’t work. Until I do the copy/paste, the formula doesn't register them as dates.
I've included a screen dump below of how they look on a filter before and after doing my copy and paste routine.
Data on Sheet 2 is pulled from an SQL server, and as I said earlier, I'm assuming the issue lies there and there's nothing I can do to my formula to fix this. That report comes from somewhere else and I guess unless there is a change there - and sadly I don't have access to change that report - I have to carry on doing my manual fix for my formula.
I'm hoping though that someone has a way to fix my formula so it registers dates regardless of format. I'm open to any suggestions for fixing this issue that my excel knowledge is lacking. Thanks in advance.