+ Reply to Thread
Results 1 to 6 of 6

named range row offset

Hybrid View

  1. #1
    barbetta3141@yahoo.com
    Guest

    named range row offset

    I recently discovered naming entire rows -- it makes references super
    easy (when your columns line-up). For example, if I name row 2
    "MyRow", then in other cells I could just put "=MyRow" and it will
    reference the cell in MyRow (row 2) that is in the same column where I
    put the formula.

    For example, if I put "=MyRow" in cell C6 it returns C2, in D6 it
    returns D2, E6 --> E2, you get the idea.

    My question is whether there is an easy way to offset this by one
    column (so that putting "=MyRow" in cell C6 returns B2 instead of C2).
    Something like "=MyRow[-1]" would be great. Any ideas? Thanks.


  2. #2
    Biff
    Guest

    Re: named range row offset

    Hi!

    Try this:

    =INDEX(MyRow,COLUMN()-1)

    If you put this formula in column A it obviously can't refer to a column to
    the left of column A so the value in column A will be returned.

    Biff

    <barbetta3141@yahoo.com> wrote in message
    news:1152220714.294010.113130@75g2000cwc.googlegroups.com...
    >I recently discovered naming entire rows -- it makes references super
    > easy (when your columns line-up). For example, if I name row 2
    > "MyRow", then in other cells I could just put "=MyRow" and it will
    > reference the cell in MyRow (row 2) that is in the same column where I
    > put the formula.
    >
    > For example, if I put "=MyRow" in cell C6 it returns C2, in D6 it
    > returns D2, E6 --> E2, you get the idea.
    >
    > My question is whether there is an easy way to offset this by one
    > column (so that putting "=MyRow" in cell C6 returns B2 instead of C2).
    > Something like "=MyRow[-1]" would be great. Any ideas? Thanks.
    >




  3. #3
    Biff
    Guest

    Re: named range row offset

    P.S.

    Also, this will not be able to reference column IV (256). You could do that
    but then your simple reference method will turn out to be not so simple
    afterall!

    Biff

    "Biff" <biffinpitt@comcast.net> wrote in message
    news:uHjPzUUoGHA.680@TK2MSFTNGP03.phx.gbl...
    > Hi!
    >
    > Try this:
    >
    > =INDEX(MyRow,COLUMN()-1)
    >
    > If you put this formula in column A it obviously can't refer to a column
    > to the left of column A so the value in column A will be returned.
    >
    > Biff
    >
    > <barbetta3141@yahoo.com> wrote in message
    > news:1152220714.294010.113130@75g2000cwc.googlegroups.com...
    >>I recently discovered naming entire rows -- it makes references super
    >> easy (when your columns line-up). For example, if I name row 2
    >> "MyRow", then in other cells I could just put "=MyRow" and it will
    >> reference the cell in MyRow (row 2) that is in the same column where I
    >> put the formula.
    >>
    >> For example, if I put "=MyRow" in cell C6 it returns C2, in D6 it
    >> returns D2, E6 --> E2, you get the idea.
    >>
    >> My question is whether there is an easy way to offset this by one
    >> column (so that putting "=MyRow" in cell C6 returns B2 instead of C2).
    >> Something like "=MyRow[-1]" would be great. Any ideas? Thanks.
    >>

    >
    >




  4. #4
    Ragdyer
    Guest

    Re: named range row offset

    Why not use 'Named Formulas' instead?

    Try this:
    Click in *any* cell except in Column A.
    For demo purposes, say E4.

    Now, <Insert> <Name> <Define>
    In the "Names In Workbook" box, type in
    MyRow

    Then, in the "Refers To" box, enter
    =D$2
    Then <OK>

    NOW ... enter 100 in say G2.
    *Anywhere* in Column H enter
    =MyRow

    Is that good enough for you?

    A named formula with relative column reference (relative to the cell in
    focus during *creation*) and absolute row reference might be what you
    want/need.
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    <barbetta3141@yahoo.com> wrote in message
    news:1152220714.294010.113130@75g2000cwc.googlegroups.com...
    >I recently discovered naming entire rows -- it makes references super
    > easy (when your columns line-up). For example, if I name row 2
    > "MyRow", then in other cells I could just put "=MyRow" and it will
    > reference the cell in MyRow (row 2) that is in the same column where I
    > put the formula.
    >
    > For example, if I put "=MyRow" in cell C6 it returns C2, in D6 it
    > returns D2, E6 --> E2, you get the idea.
    >
    > My question is whether there is an easy way to offset this by one
    > column (so that putting "=MyRow" in cell C6 returns B2 instead of C2).
    > Something like "=MyRow[-1]" would be great. Any ideas? Thanks.
    >



  5. #5
    barbetta3141@yahoo.com
    Guest

    Re: named range row offset

    Wow, that's perfect! Thanks so much.


  6. #6
    Ragdyer
    Guest

    Re: named range row offset

    Appreciate the feed-back.
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    <barbetta3141@yahoo.com> wrote in message
    news:1152282411.094800.311540@75g2000cwc.googlegroups.com...
    > Wow, that's perfect! Thanks so much.
    >



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1