+ Reply to Thread
Results 1 to 3 of 3

Index, Address and CountIF - Finding the "Last" Non Blank Column through named range

  1. #1
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,006

    Index, Address and CountIF - Finding the "Last" Non Blank Column through named range

    Hello Excel Experts,

    I had helped here with the "automatic" of knowing the last row without VBA. This time, I want the reverse, which is the last column.

    I wonder if there's a way to find the last column "automatically" through name range. I have the code below, but it's not working properly

    Please Login or Register  to view this content.
    Reason I want to do it this way is so that Named Range could automatically know what is the last column IF users were to put additional data.

    Example: Currently Columns were only from A-H...if users were to put more data, say until Z, named range would be from A-Z
    Last edited by dluhut; 02-14-2013 at 05:52 PM.

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Index, Address and CountIF - Finding the "Last" Non Blank Column through named range

    try
    =A3:INDEX(3:3,COUNTA(3:3))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,006

    Re: Index, Address and CountIF - Finding the "Last" Non Blank Column through named range

    Thanks Martindwilson!! It works, and I even made a little modification.

    Please check your reputation, as I've increased it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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