Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How to tally a set of values according to month?

Hi everyone,
I am currently working on a spreadsheet involving a list of dates, each with
an assigned value. My wish is to add together the values for EACH MONTH,
rather than the entire list, spanning a year. This needs to be some kind of
function as dates can be added at any point and values can be retrospectively
changed. Due to the nature of the spreadsheet I cannot reorder the rows in
ascending date order. A colleague suggested that the way forward may be a
PivotTable opened in a different sheet, this would be perfect but I can't
work out how to pick up data for each month separately! It sounds like there
might be a simple solution and I'm certainly hoping there is!
Thanks for any feedback
Jenni
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default How to tally a set of values according to month?

for a pivot table to work, the input data needs to be appropriate
I would put in two helper columns,
one with =Year(date) and the other = Month(date)
Depending on the format of your input data, You may actually need a helper
sheet
where you link to the value and date on your main sheet
put in the two helper columns and a pivot table should be easy to make

additionally you could use sum product
=sumproduct(--(Month(Date_Range)=month_of interest),--(Year(Date_range)=year
of interest),Value range)

"glitterjen" wrote:

Hi everyone,
I am currently working on a spreadsheet involving a list of dates, each with
an assigned value. My wish is to add together the values for EACH MONTH,
rather than the entire list, spanning a year. This needs to be some kind of
function as dates can be added at any point and values can be retrospectively
changed. Due to the nature of the spreadsheet I cannot reorder the rows in
ascending date order. A colleague suggested that the way forward may be a
PivotTable opened in a different sheet, this would be perfect but I can't
work out how to pick up data for each month separately! It sounds like there
might be a simple solution and I'm certainly hoping there is!
Thanks for any feedback
Jenni

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to tally a set of values according to month?

Hi,

I think you mean you have 2 columns

Date Value

You want to add the values for a given month.
If that's correct try:-

=SUMPRODUCT((MONTH($A$1:$A$100)=6)*(B1:B100))

Checks A1:A100 and if the month is June(6) add the value in column B.

Mike

"glitterjen" wrote:

Hi everyone,
I am currently working on a spreadsheet involving a list of dates, each with
an assigned value. My wish is to add together the values for EACH MONTH,
rather than the entire list, spanning a year. This needs to be some kind of
function as dates can be added at any point and values can be retrospectively
changed. Due to the nature of the spreadsheet I cannot reorder the rows in
ascending date order. A colleague suggested that the way forward may be a
PivotTable opened in a different sheet, this would be perfect but I can't
work out how to pick up data for each month separately! It sounds like there
might be a simple solution and I'm certainly hoping there is!
Thanks for any feedback
Jenni

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default How to tally a set of values according to month?

This works great except that if i have nothing in the Date column for a
particular row, but I do in the value row, it automatically adds that value
to the January total?

"Mike H" wrote:

Hi,

I think you mean you have 2 columns

Date Value

You want to add the values for a given month.
If that's correct try:-

=SUMPRODUCT((MONTH($A$1:$A$100)=6)*(B1:B100))

Checks A1:A100 and if the month is June(6) add the value in column B.

Mike

"glitterjen" wrote:

Hi everyone,
I am currently working on a spreadsheet involving a list of dates, each with
an assigned value. My wish is to add together the values for EACH MONTH,
rather than the entire list, spanning a year. This needs to be some kind of
function as dates can be added at any point and values can be retrospectively
changed. Due to the nature of the spreadsheet I cannot reorder the rows in
ascending date order. A colleague suggested that the way forward may be a
PivotTable opened in a different sheet, this would be perfect but I can't
work out how to pick up data for each month separately! It sounds like there
might be a simple solution and I'm certainly hoping there is!
Thanks for any feedback
Jenni

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
Sum values, by month, in another worksheet Carlee Excel Worksheet Functions 1 April 14th 07 02:44 AM
create tally sheet for positions- insert names and tally # tally sheets Excel Discussion (Misc queries) 0 April 11th 06 09:41 PM
Is there a way to tally 3 different values in one column? Anayray Excel Discussion (Misc queries) 4 February 28th 06 02:49 PM
Formatting month values Mo Excel Worksheet Functions 3 January 19th 06 06:35 PM
Sum values by month Edgar Thoemmes Excel Worksheet Functions 4 December 3rd 04 04:31 PM


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