Re: Apply names to relative references

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Jim Russell <JimRuss...@xxxxxxxxxxxxxxxxxxxxxxxxx> 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)

.



Relevant Pages

  • Re: Popup menu callback error
    ... "Cell contents reference from a non-cell array object" ... referring to the line: cb(handles.graphchoice_popup, ...
    (comp.soft-sys.matlab)
  • Re: Adding cell labels to multiple single cells
    ... I am not referring to filling the cells themselves with text. ... to the cell label reference, ie. cell a2 contains $32.32 and is labelled ... I am trying to format a cell with a different colour text if the reference ... I am needing to add a cell label to approx 700 cells but they will be ...
    (microsoft.public.excel.misc)
  • RE: Maintaining cell reference after sorting
    ... A link is referring to the cell and not to the content. ... sorting does NOT change the reference. ... > identify the row number of a specific cell after sorting. ...
    (microsoft.public.excel.misc)
  • reference to Comments
    ... How can I create a reference (in cell A1) to comments I inserted in ... Or asking the question in a different way: Can I display the ... comments from cell A2 in cell A1 by referring to the comments of cell ...
    (microsoft.public.excel.programming)
  • RE: Lookup Data in two seperate Spreadsheets
    ... 'Cell Formula using the OFFSET worksheet formula with multiple criteria to ... Just as VLOOKUP will give you the FIRST value it finds that meets it's ... 'Returns a reference to a range that is a specified number of rows and columns ...
    (microsoft.public.excel.worksheet.functions)