PC Review


Reply
Thread Tools Rate Thread

Number of items per day in chart.

 
 
Web master
Guest
Posts: n/a
 
      26th Jan 2006
Hello all, I have a list of dates and times ( listed as 1/18/2006 1:30:10
AM in cell) that indicate a sale that took place. What I am trying to do is
create a chart from this list that indicate the number of sales per day. I
would like the chart to have the days of the month accross the bottom and a
bar indicating how many sales per that day. Can anybody help me with this?
Whenever i try and use the bar chart it shows me a cumulative total
(includes the previous sales from previous days).

Also, I am using Excel 2003.

Any help would be appreciated,

Ian


 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      26th Jan 2006
Let's assume you data in A1:500 in the form 1/18/2006 1:30:10

In B1 enter 1/Jan/2006 and in B2 2/Jan/2006 (I am using dates like this to
avoid problems with US v European dates, but you could use 1/1/2006 and
1/2/2006)
Select these two cells and drag the fill handle of B2 (little black square
in lower right corner) down to B31 to give a date for each day of January
(continue down if you have more moths)

In C1 enter the formula =SUMPRODUCT(--(INT($A$1:$A$500)=B1)) This will count
how many cells in A have 1/Jan as date.

Copy this down the C column

Make chart using B1:C31. You can format the axis to suit you needs; I would
make major tick marks every 2 days

best wishes


--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Web master" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello all, I have a list of dates and times ( listed as 1/18/2006 1:30:10
> AM in cell) that indicate a sale that took place. What I am trying to do
> is create a chart from this list that indicate the number of sales per
> day. I would like the chart to have the days of the month accross the
> bottom and a bar indicating how many sales per that day. Can anybody help
> me with this? Whenever i try and use the bar chart it shows me a
> cumulative total (includes the previous sales from previous days).
>
> Also, I am using Excel 2003.
>
> Any help would be appreciated,
>
> Ian
>



 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      27th Jan 2006
In addition to Bernard's formula approach, you could set up a pivot chart.
For this simple example a pivot table is probably overkill, but it's worth
learning how pivot tables work.

Select the column of dates, and choose Pivot Table and Pivot Chart Reports
from the Data Menu. Go through the dialog, selecting all of the defaults.
You will be faced with a blank pivot table on a new sheet. Drag the Time
field from the Field List to the Row Fields area, then drag it again from
the Field List, this time to the Data Items area. Big deal, a list like you
started with, but with a column of 1's next to it.

Right click on the Time field button in the pivot table. In the pop up menu,
choose Group and Show Detail, then select Group. In the list box, unselect
Months and select Days. Now the pivot table changes to a list of dates and
number of sales for each date. You can make a pivot chart by selecting a
cell in the pivot table and clicking on the Chart Wizard icon. You can also
make a regular chart by selecting a blank cell away from the pivot table and
running the chart wizard; in step one select the chart type, in step two
click on the Series tab, then click on Add, and enter the appropriate
information in the Name, Values, and Category Labels boxes.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

"Bernard Liengme" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Let's assume you data in A1:500 in the form 1/18/2006 1:30:10
>
> In B1 enter 1/Jan/2006 and in B2 2/Jan/2006 (I am using dates like this to
> avoid problems with US v European dates, but you could use 1/1/2006 and
> 1/2/2006)
> Select these two cells and drag the fill handle of B2 (little black square
> in lower right corner) down to B31 to give a date for each day of January
> (continue down if you have more moths)
>
> In C1 enter the formula =SUMPRODUCT(--(INT($A$1:$A$500)=B1)) This will
> count how many cells in A have 1/Jan as date.
>
> Copy this down the C column
>
> Make chart using B1:C31. You can format the axis to suit you needs; I
> would make major tick marks every 2 days
>
> best wishes
>
>
> --
> Bernard V Liengme
> www.stfx.ca/people/bliengme
> remove caps from email
>
> "Web master" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hello all, I have a list of dates and times ( listed as 1/18/2006
>> 1:30:10 AM in cell) that indicate a sale that took place. What I am
>> trying to do is create a chart from this list that indicate the number of
>> sales per day. I would like the chart to have the days of the month
>> accross the bottom and a bar indicating how many sales per that day. Can
>> anybody help me with this? Whenever i try and use the bar chart it shows
>> me a cumulative total (includes the previous sales from previous days).
>>
>> Also, I am using Excel 2003.
>>
>> Any help would be appreciated,
>>
>> Ian
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Contacts (total number of items) vs items found in the Search box is different jean.minasian@gmail.com Microsoft Outlook Discussion 0 30th Aug 2007 08:35 PM
Deleted Items \ clean out items older than xx number of days =?Utf-8?B?UEwz?= Microsoft Outlook Discussion 3 21st Feb 2007 05:31 PM
Pie Chart report based off count of items less than a number and greater than a number NeoFax99@gmail.com Microsoft Access 2 5th Dec 2006 01:14 PM
properties number of items vs number or unread items =?Utf-8?B?bWRhbmwyMDAw?= Microsoft Outlook Discussion 0 22nd Dec 2004 09:11 AM
show total number of items in Inbox and Sent Items margot Microsoft Outlook 0 2nd Dec 2003 06:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 PM.