LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Getting column value based on month

I have a spreadsheet containing
Column A: Date
Column B: Delta

E.g.,
A1: January 3rd 2006
B1: -100
A2: February 4th 2006
B2: 600
A3: February 12th 2006
B3: -200

What I would like is a monthly summary of the change

I have tried adding a sheet like this:
a1: Month Start:
a2: September 1 2005
a3: October 1 2005
a4: November 1 2005

And then:
=SUM(IF(AND(sheet1!a:a=A2,sheet1!a:a<A3),sheet1!b :b),0) (this is
supposed to get values between September 1 2005 and October 1 2005)

But it does not work.

It only gives a value for the first month, which matches the sum of the
whole column B, not just the values where column A is in the correct
month.

Any ideas how to make this work?

 
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
Conditional format based on data from another column Ellie Excel Discussion (Misc queries) 3 May 14th 08 05:23 PM
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Summing one column based on date in another column excel guru i'm not New Users to Excel 7 December 30th 05 08:39 PM
move contents of column C based on criteria related to column A Debra Excel Discussion (Misc queries) 2 December 27th 05 10:25 PM


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