LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Apply names to relative references

Excellent suggestion! Create a name referencing a single cell using column
absolute but row relative references. That works well and will get inserted
by Insert/Name/Apply. This is one of those "Why didn't I think of that?"
insights that help turn on the light bulb. In hindsight, I should have
created the name to match the original cell reference in the initial formula
and saved all my grief.

Thanks very much to all who replied with such helpful insights.

"Harlan Grove" wrote:

Jim Russell wrote...
I have a formula that includes the expression "min(L2,M2)". I want
to be able to name columns L and M, and have those names used in
the expression. The row number is relative, so the formulas below are
"min(l3,M3)", etc. . . . How should I name the columns to be able to
apply them, and what should the formula look like when it is done?

....

If this isn't just a contrived, oversimplified example, so the two
columns in question really would be adjacent, the simplest, MOST
READABLE formula would be

=MIN($L2:$M2)

If you really, really have to use defined names, then in any cell in
the row in which you want the formula to reference L2:M2 define a name
like ColsLM referring to =$L2:$M2. Then use the formula

=MIN(ColsLM)

If you fill this formula down into the next row, in that row ColsLM
would refer to L3:M3 since ColLM is defined as column absolute but row
relative, so the row portion of the range reference changes as
formulas using the defined name are filled or copied into different
rows.

If you want two separate defined names, then in any cell in the row in
which uou want the formula to reference L2 and M2 define the names
ColL referring to =$L2 and ColM referring to =$M2. Then use the
formula

=MIN(ColL,ColM)




 
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
Relative references gcotterl Excel Worksheet Functions 4 June 17th 06 05:23 AM
Relative references GARY Excel Discussion (Misc queries) 7 June 16th 06 10:08 PM
Relative references GARY Excel Discussion (Misc queries) 1 June 16th 06 09:23 PM
How to rename references from range names to cell references Abbas Excel Discussion (Misc queries) 1 May 24th 06 06:18 PM
Selecting ALL names when using Insert/Names/Apply Mike Excel Worksheet Functions 3 April 23rd 05 05:20 PM


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