+ Reply to Thread
Results 1 to 4 of 4

Incrementing dynamic ranges beyond Column Z

  1. #1
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Incrementing dynamic ranges beyond Column Z

    Hello everyone!

    I commonly run into a brick wall when developing dynamic ranges that extend beyond the 26th column, especially in conjunction with INDIRECT.

    The voices in my head insist the solution involves the use of IF, MOD and QUOTIENT and the darned number 64 but I just can't quite finish it.
    There has to be some way to account for moving from Z1 to AA1.

    I get as far as =CHAR(IF(64+ROW(A1)>90,64+ROW(A1)-26,64+ROW(A1))) and that will repeat the alphabet at row 27+ but I'm not sure where to go from there.

    indirect column increment beyond Z.xlsx

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Incrementing dynamic ranges beyond Column Z

    I don't think you need a volatile formula (caused by the INDIRECT function) for what you want.
    Using your posted workbook...
    Try this regular formula, copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Is that something you can work with?
    Last edited by Ron Coderre; 10-24-2013 at 01:06 PM. Reason: Typos!
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Incrementing dynamic ranges beyond Column Z

    Here's a more robust way to get the column letter that goes beyond column Z

    =SUBSTITUTE(ADDRESS(1,ROW(A1),4),1,"")


    However, you really don't NEED to use the column letter here anyway.
    You can use the column Number directly in an Index function.

    Try this for your formula in B2
    =INDEX(Sheet2!$1:$1,ROW(A1))

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Incrementing dynamic ranges beyond Column Z

    Thank you both for your suggestions!

    This is exactly what I needed (I was clearly overthinking the solution). I've bookmarked this for future reference.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 11-21-2011, 12:51 PM
  2. Name ranges incrementing
    By dickep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2011, 01:25 PM
  3. Incrementing a column by reference of another
    By mr_goosey in forum Excel General
    Replies: 6
    Last Post: 05-05-2011, 10:24 AM
  4. Auto Incrementing Ranges
    By MACRE0 in forum Excel General
    Replies: 1
    Last Post: 01-12-2007, 10:06 PM
  5. Dynamic Formulas with Dynamic Ranges
    By Ralph Howarth in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2005, 05:06 AM

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