Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Sum of row and column entries (database)

Hi newsgroup,

I was wondering whether anyone knows a formula that does the
following:

I have a number of values in a column and row of a large database that
i want to sum automatically, as in the following example:

x1 x2 x3 x4 x5
y1 (x1+y1) (x2+y1) (x3+y1) (x4+y1) (x5+y1)
y2 (x1+y2) (x2+y2) (x3+y2) (x4+y2) (x5+y2)
y3 (x1+y3) (x2+y3) (x3+y3) (x4+y3) (x5+y3)
y4 (x1+y4) (x2+y4) (x3+y4) (x4+y4) (x5+y4)
y5 (x1+y5) (x2+y5) (x3+y5) (x4+y5) (x5+y5)

I think I might solve this with a Pivot table, but I have very little
knowledge of pivots...

Thanks a lot and best regards,

Chris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Sum of row and column entries (database)

If you've got your X values in row 1 in B1 to F1, and your Y values in
column A in A2 to A6, then in cell B2 insert the formula =B1+A2. Then copy
that cell to the other cells down and across your range.
--
David Biddulph

wrote in message
...
Hi newsgroup,

I was wondering whether anyone knows a formula that does the
following:

I have a number of values in a column and row of a large database that
i want to sum automatically, as in the following example:

x1 x2 x3 x4 x5
y1 (x1+y1) (x2+y1) (x3+y1) (x4+y1) (x5+y1)
y2 (x1+y2) (x2+y2) (x3+y2) (x4+y2) (x5+y2)
y3 (x1+y3) (x2+y3) (x3+y3) (x4+y3) (x5+y3)
y4 (x1+y4) (x2+y4) (x3+y4) (x4+y4) (x5+y4)
y5 (x1+y5) (x2+y5) (x3+y5) (x4+y5) (x5+y5)

I think I might solve this with a Pivot table, but I have very little
knowledge of pivots...

Thanks a lot and best regards,

Chris



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Sum of row and column entries (database)

Hi David,

If you've got your X values in row 1 in B1 to F1, and your Y values in
column A in A2 to A6, then in cell B2 insert the formula =B1+A2. Then copy
that cell to the other cells down and across your range.


Thanks, but this doesn't really do it, as the copying across the sheet
results in Excel changing the cell references accordingly. I could do
it for each column by using the F4 command (fixing cells like $A$1),
but even this is quite lengthy, as I have more than 200 columns and
rows to fill...

Regards,

Chris
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Sum of row and column entries (database)

Sorry, yes, you are absolutely right. I was half asleep.
What I should have said was not =B1+A2 but =B$1+$A2
That will fix the row 1 and column A references accordingly, and allow the
rest to update.
--
David Biddulph

wrote in message
...
Hi David,

If you've got your X values in row 1 in B1 to F1, and your Y values in
column A in A2 to A6, then in cell B2 insert the formula =B1+A2. Then
copy
that cell to the other cells down and across your range.


Thanks, but this doesn't really do it, as the copying across the sheet
results in Excel changing the cell references accordingly. I could do
it for each column by using the F4 command (fixing cells like $A$1),
but even this is quite lengthy, as I have more than 200 columns and
rows to fill...

Regards,

Chris



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Sum of row and column entries (database)

Hi David,

Sorry, yes, you are absolutely right. I was half asleep.
What I should have said was not =B1+A2 but =B$1+$A2
That will fix the row 1 and column A references accordingly, and allow the
rest to update.


Amazing, it's that easy :)

Thanks a lot, this has saved me hours of manually adjusting it - it
never crossed my mind that it's so straight to adjust the "fixing $"
though ;)

Thanks again,

Chris
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
How do I create a database with a maximum of 20 entries FCPCEO Excel Discussion (Misc queries) 1 February 6th 09 04:10 AM
How do I stop duplicate entries in excel database eg. company nam JillyB Excel Discussion (Misc queries) 2 October 24th 08 05:09 PM
automate entries into document from a excel database Designer Lady New Users to Excel 3 March 23rd 06 09:43 PM
how do i remove multiple entries in an excel database? Chi Excel Discussion (Misc queries) 1 December 2nd 05 01:02 AM
Can I plot in excel the last entries of database automatically???? tiw Charts and Charting in Excel 4 April 2nd 05 04:35 AM


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