Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2004

Tip: Looking for answers? Try searching our database.

Non-positional cell formulas?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Private Person - 14 Sep 2004 19:51 GMT
Ok, I have a spreadsheet with multiple columns, for example:

Date |       spanning header1     |        spanner header2     |
spanning header3      | Average   header      |
       |  subhead1a | subhead1b |  subhead2a | subhead2b |  subhead3a |
subhead3b |                                |
date  |  s1adata     |  s1bdata     |  s2adata     |  s2bdata     |
s3adata     |  s3bdata     | average s1a,s2a,s3a |

Now for every row, I need to calculate the subtotal data.

No problem with the formula (like in =AVERAGE(B3,D3,F3)). The next line's
formula would be =AVERAGE(B4,D4,F4).

The problem is that I don't want to have to enter the "hard-coded" reference
to each column unique to each line (since I potentially have a hundred rows
of data) I would like just duplicate the formula in each line and let Excel
figure out the relative columns.

I THINK variable names might be the solution, but is there a better way
and/or a built-in way to handle this seemingly simple problem?

Thanks,

Marc
Ken Wright - 14 Sep 2004 23:00 GMT
You don't need to.  Type the formula in one cell as you have done and then
select that cell and do Edit / Copy.  Now select the range you wish to fill with
the formula and do Edit / paste and it will all adjust automatically.

Shortcuts include just grabbing the little black cross at the bottom right of
the cell and dragging down, or just doubleclicking that same little black
square.

Signature

Regards
          Ken.......................    Microsoft MVP - Excel
             Sys Spec - Win XP Pro /  XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

> Ok, I have a spreadsheet with multiple columns, for example:
>
[quoted text clipped - 21 lines]
>
> Marc
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.