Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Outraged
 
Posts: n/a
Default Using a range of dates to add data in a different column?


I need to sum a range in a column based on the date in another column:
A B
1 Date Hours
2 05--Dec-26 7.2
3 05--Dec-29 6.8
4 06--Jan-01 2.1
5 06--Jan-12 3.3

essentially, i want to say "if the date in A is in Dec 05, add the
hours in B that correspond to Dec 05". so, in another cell, in another
sheet, i would get:

A B
1 Dec 05 14.0
2 Jan 06 5.4

B1 of the second sheet obviously where my formula would be.
Thanks.
-Carl Eubanks


--
Outraged
------------------------------------------------------------------------
Outraged's Profile: http://www.excelforum.com/member.php...o&userid=31491
View this thread: http://www.excelforum.com/showthread...hreadid=511701

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rocket0612
 
Posts: n/a
Default Using a range of dates to add data in a different column?


=SUMPRODUCT(--($A$1:$A$500=DATE),$B$1:$B$500)

I think it would be somthing along these lines, sum column A that
equals to the date (you will need to reference a cell with that date
(eg put dec05 in c1) and then it will add all in column B that meet
this


--
rocket0612
------------------------------------------------------------------------
rocket0612's Profile: http://www.excelforum.com/member.php...o&userid=19492
View this thread: http://www.excelforum.com/showthread...hreadid=511701

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Outraged
 
Posts: n/a
Default Using a range of dates to add data in a different column?


maybe i am using the DATE in the wrong manner, but this doesnt seem to
be working. even if i use and exact date [to include the day, just to
see if i get any results].

I was hoping i could do this without adding another cell [i.e. a
reference cell] that has only the month and year. Would some sort of
IF statement work when referencing a column header? i.e. IF "Date" =
Jan 06, then add the cells in column "Hours" where "Date" = Jan 06.

[the format of Date is yy--mmm-dd and the actual data is 1/1/2006]

I hope I am explaining myself how I want to. :)

-Carl Eubanks


--
Outraged
------------------------------------------------------------------------
Outraged's Profile: http://www.excelforum.com/member.php...o&userid=31491
View this thread: http://www.excelforum.com/showthread...hreadid=511701

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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Applying data range to column width Splash Charts and Charting in Excel 2 November 25th 05 02:53 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM


All times are GMT +1. The time now is 03:13 AM.

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"