Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vmagal1
 
Posts: n/a
Default Fill Sum of months by quarter

I have values for Jan - Dec and need to sum them by quarter on another sheet.
When I try to drag the formula across for Q2, Q3, and Q4, it won't grab the
corresponding months, instead it takes the consecutive numbers and sums them.
How can I fix this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Art
 
Posts: n/a
Default Fill Sum of months by quarter

The easiest solution is probably just to type the correct formula in the
cells for Q2 etc. Another solution is a follows:

Suppose your month data is in Cells A2:L2

Q1, in A4 is =SUM(A2:C2)
Copy A4 to D4. Then drag D4 to B4.

Art

"vmagal1" wrote:

I have values for Jan - Dec and need to sum them by quarter on another sheet.
When I try to drag the formula across for Q2, Q3, and Q4, it won't grab the
corresponding months, instead it takes the consecutive numbers and sums them.
How can I fix this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default Fill Sum of months by quarter

Assuming your source spreadsheet starts from A1 and is something like:

Month.....Value
Jan.........10
Feb.........18
Mar.........17
etc.

Also assuming your target starts from A1 and is something like:
Quarter.....TotalValue
Q1............45
Q2............etc.

Then, a formula that you can apply for Q1, and which can be dragged
down is:
=SUM(OFFSET('Sheet1'!$A$1,(RIGHT(A2,1)-1)*3+1,0,3,))

HTH
Kostis Vezerides

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
Why "datedif" function results sometimes negative numbers? Ambrosiy Excel Worksheet Functions 1 July 8th 05 11:29 AM
Formula for current month minus one = Quarter number in a macro. Pank Excel Discussion (Misc queries) 11 June 22nd 05 02:47 PM
Formula to fill inthe Quarter gls858 New Users to Excel 7 June 16th 05 05:53 PM
How to fill colour in Excel, it appers No fill in my computer? bede Excel Discussion (Misc queries) 1 June 11th 05 03:27 AM
Fill in missing months Charles P. \(Pat\) Upshaw Excel Discussion (Misc queries) 4 June 9th 05 04:11 AM


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