+ Reply to Thread
Results 1 to 5 of 5

Formula for Last Used Cell in a Column

  1. #1
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280

    Formula for Last Used Cell in a Column

    Hey All,

    I have several columns, in which, I need to find the address of the last cell used. The last cell used in each of these columns will be different, so I only need a formula for one and I can work it out for the rest. I've worked out the ADDRESS formula for another application, but I'm scrambling on this one. I could use a little of your valuable expertise on this one. I need to find the last cell used in column G, say $G$26, placed in cell Cell B1. I hope this makes sense.

    Thanks for looking,

    Dean

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe


    =ADDRESS(MAX(MATCH({"ZZZZZZZZZZZZZZZZZZZZ",9.99999999999999E+307},G:G)),7,4)

    remove ,4 if you want the $ signs

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280

    I'm getting #N/A on this one

    Hey Noob,

    I'm getting #N/A on this. That's more than I was getting off my efforts. Any more suggestions, other than for me to leave the room?

    Dean

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Sorry,

    The example I give assumed you had mixed text. If it's only numeric or only text try either of the attached

    if you still have a problem this site may help

    http://www.xldynamic.com/source/xld....l#last_numeric

    VBA Noob
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280

    Thank You

    Hi Noob,

    Awesome! You assumed I had mixed text, because I didn't, totally, explain my needs. However, now I have something for all contingencies, in my little file. Thank you very much and have a nice rest of your day.

    See ya,

    Dean

+ 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