Mar 05 2021 07:51 PM
I have a formula this is pulling from a SQL query as 1 datasource and Excel as the other.
=COUNT(IF(F$20=tbl[EntryDate],IF(tbl[InitRvwMetYN]="Yes",1)))
I should be getting data so I dig a little deeper and see this:
My question is HOW is Excel creating the .25 after the date and HOW can I get rid of it? My formula is never going to work if I can't match up the dates.
I am running out of ideas on a Friday night. Any help would be much appreciated.
-Jennifer
Mar 05 2021 08:22 PM - edited Mar 05 2021 08:25 PM
It appears the values are date/time (time being the decimal portion). Perhaps try using INT to separate only the date. Maybe the data source is a date/time field and uses 6:00 am as a default value for the time?
=COUNT(IF(F$20=INT(tbl[EntryDate]),IF(tbl[InitRvwMetYN]="Yes",1)))
Mar 05 2021 11:16 PM
Mar 06 2021 01:21 AM
In addition, changing the format doesn't change the value kept in the cell. It only shows it to you this or that way.
Mar 06 2021 07:54 AM