Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Adding 4 cells next to eachother and then adding the following fourcells

Hi,

I have two worksheets: 1 and 2. In worksheet 1, I have all my raw
data. In worksheet 2, I want to only display the sum of some of the
cells in worksheet 1

e.g. Worksheet 1

A B C D E F G H
1 10 12 25 36 87 21 36 32
2 25 55 88 63 54 74 25 33

Worksheet 2

A B
1 (sum of cols A1:D1) (sum of cols E1:H1)


Now, I can easily do a =SUM('Worksheet1'!A1:D1) and place the total
value in cell A1 of worksheet 2. What I then need is something which
will sum up the next four values in Worksheet 1 i.e. Cells E1:H1 and
place that total in Wroksheet 2's cell B1.

Highlighting and dragging the formula in worksheet 2 sums up B1:E1,
when I actually need it to sum up E1:H1. Does anyone know how I can do
this? I'm happy to use macros if you are able to guide me in the right
direction :)

Thanks,

Nadia
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Adding 4 cells next to eachother and then adding the following four cells

Maybe I'm missing something, but just write the formula in B1 to sum E1:H1
of sheet1 and drag that formula down. HTH Otto
wrote in message
...
Hi,

I have two worksheets: 1 and 2. In worksheet 1, I have all my raw
data. In worksheet 2, I want to only display the sum of some of the
cells in worksheet 1

e.g. Worksheet 1

A B C D E F G H
1 10 12 25 36 87 21 36 32
2 25 55 88 63 54 74 25 33

Worksheet 2

A B
1 (sum of cols A1:D1) (sum of cols E1:H1)


Now, I can easily do a =SUM('Worksheet1'!A1:D1) and place the total
value in cell A1 of worksheet 2. What I then need is something which
will sum up the next four values in Worksheet 1 i.e. Cells E1:H1 and
place that total in Wroksheet 2's cell B1.

Highlighting and dragging the formula in worksheet 2 sums up B1:E1,
when I actually need it to sum up E1:H1. Does anyone know how I can do
this? I'm happy to use macros if you are able to guide me in the right
direction :)

Thanks,

Nadia



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default Adding 4 cells next to eachother and then adding the following fou

After you drag the formula just hit F2 and change the B to an E and the E to
an H.
Then just copy both the formula in Col A and the formula in Col B down and
you're all set.

" wrote:

Hi,

I have two worksheets: 1 and 2. In worksheet 1, I have all my raw
data. In worksheet 2, I want to only display the sum of some of the
cells in worksheet 1

e.g. Worksheet 1

A B C D E F G H
1 10 12 25 36 87 21 36 32
2 25 55 88 63 54 74 25 33

Worksheet 2

A B
1 (sum of cols A1:D1) (sum of cols E1:H1)


Now, I can easily do a =SUM('Worksheet1'!A1:D1) and place the total
value in cell A1 of worksheet 2. What I then need is something which
will sum up the next four values in Worksheet 1 i.e. Cells E1:H1 and
place that total in Wroksheet 2's cell B1.

Highlighting and dragging the formula in worksheet 2 sums up B1:E1,
when I actually need it to sum up E1:H1. Does anyone know how I can do
this? I'm happy to use macros if you are able to guide me in the right
direction :)

Thanks,

Nadia

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Adding 4 cells next to eachother and then adding the followingfou

Hi Mike and Otto,

Thanks for your help. I was hoping there was an easier way than having
ot go into every cells and changing the cell reference but I guess
not :)

Nadia
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
Adding the value of cells than 4.5 Mellybean New Users to Excel 3 January 17th 08 07:01 PM
adding cells msiz Excel Discussion (Misc queries) 8 July 3rd 07 03:26 PM
Sum not adding cells. carrera Excel Discussion (Misc queries) 3 June 12th 07 10:27 PM
adding more than one value to cells chiliman Excel Worksheet Functions 2 May 18th 06 11:01 PM
Adding Cells Kyle Sweeney Excel Worksheet Functions 4 September 15th 05 10:36 AM


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