+ Reply to Thread
Results 1 to 5 of 5

Making column reference in INDIRECT non-static

  1. #1
    Bob Tarburton
    Guest

    Making column reference in INDIRECT non-static

    In those rare instances where I need to use indirect I sometimes point the
    column reference to this, for example
    =IF(QUOTIENT(COLUMN($C$2)-1,26)=0,"",CHAR(QUOTIENT(COLUMN($C$2)-1,26)+96))&CHAR(IF(MOD(COLUMN($C$2),26)=0,26,MOD(COLUMN($C$2),26))+96)
    which will return C, but change to D if a column is inserted.
    Is there a shorter way to do this, some formula that will change back the 3
    result of =COLUMN($C$2) back into a C?
    (Forgive me for showing QUOTIENT(COLUMN($C$2)-1,26), I've already learned
    from seeing Bob Phillips posts that INT((COLUMN($C$2)-1)/26) requires less
    typing.)



  2. #2
    Roger Govier
    Guest

    Re: Making column reference in INDIRECT non-static

    Hi Bob

    =CHAR(COLUMN($C$2)+64) will return uppercase C which I would have
    thought would be preferable.
    =CHAR(COLUMN($C$2)+96) will return lowercase c

    But I was wondering what the formula is that would require you to do
    this, and, whether there might not be a simpler way altogether?

    --
    Regards

    Roger Govier


    "Bob Tarburton" <reply2bob@_removethis_intergate.com> wrote in message
    news:[email protected]...
    > In those rare instances where I need to use indirect I sometimes point
    > the column reference to this, for example
    > =IF(QUOTIENT(COLUMN($C$2)-1,26)=0,"",CHAR(QUOTIENT(COLUMN($C$2)-1,26)+96))&CHAR(IF(MOD(COLUMN($C$2),26)=0,26,MOD(COLUMN($C$2),26))+96)
    > which will return C, but change to D if a column is inserted.
    > Is there a shorter way to do this, some formula that will change back
    > the 3 result of =COLUMN($C$2) back into a C?
    > (Forgive me for showing QUOTIENT(COLUMN($C$2)-1,26), I've already
    > learned from seeing Bob Phillips posts that INT((COLUMN($C$2)-1)/26)
    > requires less typing.)
    >




  3. #3
    Pete
    Guest

    Re: Making column reference in INDIRECT non-static

    Yes, you also need the Analysis Tool Pack to get QUOTIENT( ) whereas
    INT( ) is a built-in function, readily available to everyone.

    Pete


  4. #4
    Bob Tarburton
    Guest

    Re: Making column reference in INDIRECT non-static

    Yes, I guess 64 is better than 96, however, I still need my big long formula
    columns AA and on.

    "Roger Govier" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Bob
    >
    > =CHAR(COLUMN($C$2)+64) will return uppercase C which I would have thought
    > would be preferable.
    > =CHAR(COLUMN($C$2)+96) will return lowercase c
    >
    > But I was wondering what the formula is that would require you to do this,
    > and, whether there might not be a simpler way altogether?
    >
    > --
    > Regards
    >
    > Roger Govier
    >
    >
    > "Bob Tarburton" <reply2bob@_removethis_intergate.com> wrote in message
    > news:[email protected]...
    >> In those rare instances where I need to use indirect I sometimes point
    >> the column reference to this, for example
    >> =IF(QUOTIENT(COLUMN($C$2)-1,26)=0,"",CHAR(QUOTIENT(COLUMN($C$2)-1,26)+96))&CHAR(IF(MOD(COLUMN($C$2),26)=0,26,MOD(COLUMN($C$2),26))+96)
    >> which will return C, but change to D if a column is inserted.
    >> Is there a shorter way to do this, some formula that will change back the
    >> 3 result of =COLUMN($C$2) back into a C?
    >> (Forgive me for showing QUOTIENT(COLUMN($C$2)-1,26), I've already learned
    >> from seeing Bob Phillips posts that INT((COLUMN($C$2)-1)/26) requires
    >> less typing.)
    >>

    >
    >




  5. #5
    Bob Tarburton
    Guest

    Re: Making column reference in INDIRECT non-static

    Thanks for pointing out the additional advantage.

    "Pete" <[email protected]> wrote in message
    news:[email protected]...
    > Yes, you also need the Analysis Tool Pack to get QUOTIENT( ) whereas
    > INT( ) is a built-in function, readily available to everyone.
    >
    > Pete
    >




+ 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