Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pomalley
 
Posts: n/a
Default how do I select unique dates from a database in Excel?

The spreadsheet contains dates which are associated with respective
incidents. I need to count daily the number of incidents for a specific
date. The daily numbers are rolled into a weekly report. I have been able
to slect unique dates by using Conditional Sum, but I would like to automate
the query. Conditional Sum only works for dates that exist in the
spreadsheet. Additionally, it seems I must create the Conditional Sum
function for each date and also cannot copy the function. Any help is
appreciated.
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

use the COUNTIF function
with the date you're interested in in cell M2
and the range of dates in column G
use the following formula

=COUNTIF(G:G,M2)

Cheers
JulieD

"pomalley" wrote in message
...
The spreadsheet contains dates which are associated with respective
incidents. I need to count daily the number of incidents for a specific
date. The daily numbers are rolled into a weekly report. I have been
able
to slect unique dates by using Conditional Sum, but I would like to
automate
the query. Conditional Sum only works for dates that exist in the
spreadsheet. Additionally, it seems I must create the Conditional Sum
function for each date and also cannot copy the function. Any help is
appreciated.



  #3   Report Post  
pomalley
 
Posts: n/a
Default

This worked great. If we could take it a step further. Each date is
associated with an incident which is rated by impact level and also the
duration of the incident. I also would like to sum the minutes of the
duration for the impact level for the specific date. Date looks like this:

Date Impact Minutes
1/4/05 Medium 40
1/5/05 High 60
1/28/05 Medium 20
1/28/05 Medium 10

I'm trying to say there is 1 medium impact on 1/4 for 40 minutes; 1 high on
1/5 for 60 minutes, 2 medium on 1/28 for a sum of 30 minutes. I plot these
numbers on a graph but am using verbiage here to describe the case. If you
need more info, please advise. Your help is greatly appreciated.


"JulieD" wrote:

Hi

use the COUNTIF function
with the date you're interested in in cell M2
and the range of dates in column G
use the following formula

=COUNTIF(G:G,M2)

Cheers
JulieD

"pomalley" wrote in message
...
The spreadsheet contains dates which are associated with respective
incidents. I need to count daily the number of incidents for a specific
date. The daily numbers are rolled into a weekly report. I have been
able
to slect unique dates by using Conditional Sum, but I would like to
automate
the query. Conditional Sum only works for dates that exist in the
spreadsheet. Additionally, it seems I must create the Conditional Sum
function for each date and also cannot copy the function. Any help is
appreciated.




  #4   Report Post  
JulieD
 
Posts: n/a
Default

Hi

i would use a pivot table for this, click inside your data and choose data /
pivot table and pivot chart report
then next
then check the range and next
then in a new worksheet and finish

now drag the "date" to where the word row appears, drag the "impact" to
where the word column appears and drag the "minutes" to where the word data
appears - this should give you what you want. then you can click on the
graph icon on the pivot table toolbar to turn it into a graph.

Cheers
JulieD

"pomalley" wrote in message
...
This worked great. If we could take it a step further. Each date is
associated with an incident which is rated by impact level and also the
duration of the incident. I also would like to sum the minutes of the
duration for the impact level for the specific date. Date looks like
this:

Date Impact Minutes
1/4/05 Medium 40
1/5/05 High 60
1/28/05 Medium 20
1/28/05 Medium 10

I'm trying to say there is 1 medium impact on 1/4 for 40 minutes; 1 high
on
1/5 for 60 minutes, 2 medium on 1/28 for a sum of 30 minutes. I plot
these
numbers on a graph but am using verbiage here to describe the case. If
you
need more info, please advise. Your help is greatly appreciated.


"JulieD" wrote:

Hi

use the COUNTIF function
with the date you're interested in in cell M2
and the range of dates in column G
use the following formula

=COUNTIF(G:G,M2)

Cheers
JulieD

"pomalley" wrote in message
...
The spreadsheet contains dates which are associated with respective
incidents. I need to count daily the number of incidents for a
specific
date. The daily numbers are rolled into a weekly report. I have been
able
to slect unique dates by using Conditional Sum, but I would like to
automate
the query. Conditional Sum only works for dates that exist in the
spreadsheet. Additionally, it seems I must create the Conditional Sum
function for each date and also cannot copy the function. Any help is
appreciated.






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
Dynamic Formulas with Dynamic Ranges Ralph Howarth Excel Worksheet Functions 5 January 21st 05 08:44 AM
due dates Niki New Users to Excel 4 January 10th 05 04:11 PM
I can I select cells in a template and link it to a database? group3 Excel Discussion (Misc queries) 1 December 31st 04 03:05 PM
select database rexmann Excel Discussion (Misc queries) 2 December 7th 04 09:55 AM
select unique to make list Spunky Excel Worksheet Functions 2 November 23rd 04 08:19 PM


All times are GMT +1. The time now is 01:02 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"