Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel programming

,

I'm stuck with a problem.. I hope you will be able to help me.

I have an odbc connection to an sql database which stores data on calls
logged per a day. I want to run some sql queries which will identify
how many calls were logged on a certain day.

When I import the data in to my excel spreadsheet, the date appears
with the time next to it. The following is an example of what the cell
looks like:

8/01/2004 03:32:57 PM

Now, my problem is i'm trying to count how many times the date appears
in the page i can't match it up against anything. I am using this
formula:

=SUM(IF($E$4:$E$32=B39,1,0))

The b39 is for example 8/1/2004

How can i seperate the 8/01/2004 03:32:57 PM so that the date only
appears in the cell. I dont mind even copy the date in to an adjacent
cell.. I just need the date split away from the time.

Any help you can provide will be appreciated.

Regards,

sean


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Excel programming

If A1 contains your date, then try the following formula in B1:
=INT(A1)


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"seang " wrote in message
...
,

I'm stuck with a problem.. I hope you will be able to help me.

I have an odbc connection to an sql database which stores data on calls
logged per a day. I want to run some sql queries which will identify
how many calls were logged on a certain day.

When I import the data in to my excel spreadsheet, the date appears
with the time next to it. The following is an example of what the cell
looks like:

8/01/2004 03:32:57 PM

Now, my problem is i'm trying to count how many times the date appears
in the page i can't match it up against anything. I am using this
formula:

=SUM(IF($E$4:$E$32=B39,1,0))

The b39 is for example 8/1/2004

How can i seperate the 8/01/2004 03:32:57 PM so that the date only
appears in the cell. I dont mind even copy the date in to an adjacent
cell.. I just need the date split away from the time.

Any help you can provide will be appreciated.

Regards,

sean


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO programming in Excel-VBA CLamar Excel Discussion (Misc queries) 1 May 31st 06 02:45 PM
Excel/VBA programming Carlos A Excel Discussion (Misc queries) 2 July 24th 05 10:21 PM
Excel Programming aly1cat[_2_] Excel Programming 3 January 7th 04 03:56 PM
Excel Programming Aravind[_2_] Excel Programming 0 September 10th 03 08:05 AM
Excel Programming. Aravind[_2_] Excel Programming 0 September 10th 03 07:39 AM


All times are GMT +1. The time now is 02:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"