Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default sum quarters to years; predefined shift of ranges

Hi all,

Hopefully someone can help me solve this issue:
Suppose I have quarterly data for several years in a single row.
Then it is simple to sum the quarters of the first year to get a year's
result.

If I then copy this cell one position to the right, the result is Q2 + Q3 +
Q4 + Q1 of the next year.

Question: how do I copy a cell one position to the right, but at the same
time move 4 positions in the source row?
And the next cell: position + another 4, and again, and again, to get full
year's results.
Can this be done?

Cheers, Goose

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,081
Default sum quarters to years; predefined shift of ranges

You'll need to use the Offset() function
If your first SUM is in col A, and the first 4 Qrtrs are in A-D, next 4 in
E-H, etc, then use this formula in col A and copy it to the right:

=SUM(OFFSET($A$1,0,4*(COLUMN(A1)-1),1,4))

if your data starts in a different column, adjust the $A$1 reference to
reflect the left-most cell. NO NOT change the Column(A1) reference


"Goose" wrote:

Hi all,

Hopefully someone can help me solve this issue:
Suppose I have quarterly data for several years in a single row.
Then it is simple to sum the quarters of the first year to get a year's
result.

If I then copy this cell one position to the right, the result is Q2 + Q3 +
Q4 + Q1 of the next year.

Question: how do I copy a cell one position to the right, but at the same
time move 4 positions in the source row?
And the next cell: position + another 4, and again, and again, to get full
year's results.
Can this be done?

Cheers, Goose

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default sum quarters to years; predefined shift of ranges

=SUM(OFFSET($A1,0,4*(COLUMN()-COLUMN($A5)),1,4))
replacing $A1 by the reference to your first Q2 cell, and $A5 by the
reference to the cell where you are putting the formula for your first
year's total.
That should copy to the right appropriately.
--
David Biddulph

"Goose" wrote in message
...
Hi all,

Hopefully someone can help me solve this issue:
Suppose I have quarterly data for several years in a single row.
Then it is simple to sum the quarters of the first year to get a year's
result.

If I then copy this cell one position to the right, the result is Q2 + Q3
+
Q4 + Q1 of the next year.

Question: how do I copy a cell one position to the right, but at the same
time move 4 positions in the source row?
And the next cell: position + another 4, and again, and again, to get full
year's results.
Can this be done?

Cheers, Goose



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default sum quarters to years; predefined shift of ranges

Great Duke,

Thanks a lot, this saves me a lot of work and potential errors.

Cheers, Goose



"Duke Carey" wrote:

You'll need to use the Offset() function
If your first SUM is in col A, and the first 4 Qrtrs are in A-D, next 4 in
E-H, etc, then use this formula in col A and copy it to the right:

=SUM(OFFSET($A$1,0,4*(COLUMN(A1)-1),1,4))

if your data starts in a different column, adjust the $A$1 reference to
reflect the left-most cell. NO NOT change the Column(A1) reference


"Goose" wrote:

Hi all,

Hopefully someone can help me solve this issue:
Suppose I have quarterly data for several years in a single row.
Then it is simple to sum the quarters of the first year to get a year's
result.

If I then copy this cell one position to the right, the result is Q2 + Q3 +
Q4 + Q1 of the next year.

Question: how do I copy a cell one position to the right, but at the same
time move 4 positions in the source row?
And the next cell: position + another 4, and again, and again, to get full
year's results.
Can this be done?

Cheers, Goose

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default sum quarters to years; predefined shift of ranges

Thanks David for your help. Greatly appreciated. Goose

"David Biddulph" wrote:

=SUM(OFFSET($A1,0,4*(COLUMN()-COLUMN($A5)),1,4))
replacing $A1 by the reference to your first Q2 cell, and $A5 by the
reference to the cell where you are putting the formula for your first
year's total.
That should copy to the right appropriately.
--
David Biddulph

"Goose" wrote in message
...
Hi all,

Hopefully someone can help me solve this issue:
Suppose I have quarterly data for several years in a single row.
Then it is simple to sum the quarters of the first year to get a year's
result.

If I then copy this cell one position to the right, the result is Q2 + Q3
+
Q4 + Q1 of the next year.

Question: how do I copy a cell one position to the right, but at the same
time move 4 positions in the source row?
And the next cell: position + another 4, and again, and again, to get full
year's results.
Can this be done?

Cheers, Goose




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
Fiscal quarters for two years... Ted McCastlain Excel Worksheet Functions 2 September 20th 06 02:08 PM
Overlay 4 years of data as a line on 4 years of columns for several x category labels eMTee Charts and Charting in Excel 1 December 5th 05 12:32 PM
[Shift] + [Arrow] key usage with chart ranges David Excel Worksheet Functions 0 June 8th 05 09:49 AM
designing and saving predefined pivot table formats? Surfstiling Excel Worksheet Functions 1 March 25th 05 03:21 AM
Show quarters and years on x axis of a chart Kacee Charts and Charting in Excel 3 March 19th 05 03:42 AM


All times are GMT +1. The time now is 08:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"