ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   removing/ignoring time in a date time field (https://www.excelbanter.com/excel-discussion-misc-queries/195434-removing-ignoring-time-date-time-field.html)

Jeff

removing/ignoring time in a date time field
 
I have data from a DB that I am working with. The transaction time is in
date, time format. when I want to run a function against this data

=sumproduct((date=x)*(issue=Y)*(status=z))

I would like to be able to query against a date (24 hour period)
unfortunately 7/17/2008 does not = 7/17/2008 01:00:54.

is there a way to ingnore the time stamp so that I can query the data and
pull all data on a specific date.

Thanks

Jeff

--
Jeff

John C[_2_]

removing/ignoring time in a date time field
 
Instead of date=x, you can try

=IF(TEXT(date,"mmmm-dd-yyyy")=TEXT(x,"mmmm-dd-yyyy"),1,0)
--
John C


"Jeff" wrote:

I have data from a DB that I am working with. The transaction time is in
date, time format. when I want to run a function against this data

=sumproduct((date=x)*(issue=Y)*(status=z))

I would like to be able to query against a date (24 hour period)
unfortunately 7/17/2008 does not = 7/17/2008 01:00:54.

is there a way to ingnore the time stamp so that I can query the data and
pull all data on a specific date.

Thanks

Jeff

--
Jeff


Jeff

removing/ignoring time in a date time field
 
So how would that apply to a named range?

I am looking through several hundred rows of data and trying to get a count
of issues on a certain date.

if the range name=Date how does that work into the formula below?

Thanks

Jeff
--
Jeff


"John C" wrote:

Instead of date=x, you can try

=IF(TEXT(date,"mmmm-dd-yyyy")=TEXT(x,"mmmm-dd-yyyy"),1,0)
--
John C


"Jeff" wrote:

I have data from a DB that I am working with. The transaction time is in
date, time format. when I want to run a function against this data

=sumproduct((date=x)*(issue=Y)*(status=z))

I would like to be able to query against a date (24 hour period)
unfortunately 7/17/2008 does not = 7/17/2008 01:00:54.

is there a way to ingnore the time stamp so that I can query the data and
pull all data on a specific date.

Thanks

Jeff

--
Jeffs



All times are GMT +1. The time now is 09:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com