Strip time from date time value

P

Prem Chandiramani

Hi,

I've got data that's being read in from a DB in which a timestamp
field returns entries with Date Time value (dd-mmm-yyyy hh:mi:ss).

In my spreadsheet, user enters search date (dd-mmm-yyyy). I need to
obtain a count of the number of entries obtained from the DB that
equal to the date specified by the user, however as theres a time
value in the data that's coming in from the DB, the comparison fails.

How do i strip the time data from the db imported data.

Thanks in advance
Prem
 
J

JohnI in Brisbane

Prem,

Another alternative is to test between two values e.g.

=IF(AND(A2>=DATEVALUE("17-Sep-2003"),A2<DATEVALUE("18-Sep-2003")),"Found","N
ot Found")

Note the first test is >= & the second < to ensure it falls within the
period.

regards,

JohnI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top