+ Reply to Thread
Results 1 to 6 of 6

Find and return the last used cell in a row, Formula or VBA?

  1. #1
    Registered User
    Join Date
    04-06-2007
    Location
    Glasgow, Scotland
    MS-Off Ver
    2003 / 2007
    Posts
    83

    Find and return the last used cell in a row, Formula or VBA?

    I am setting up a score sheet in Excel 2007 and would like to be able to enter numbered values in an 11 cell grid/row, these would be entered in any order and I would like them to appear in a column below but in the order in which they are entered, in other words as I enter scores they would appear in a numbered list below from the 1st to the 11th entry.

    If it makes a solution easier as the entries are first made in the row they do not need to appear in the column list immediately and could perhaps be copied from a separate "sorted" list after the last entry is made if you follow this as long as they at the end they are numbered in the order of entry, I have been advised that it probably can't be done using a formula, which I would prefer, but can perhaps be with VBA, unless anyone can think of a workaround, open to all suggestions.

    I attach a sample and would appreciate it if anyone can help.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Find and return the last used cell in a row, Formula or VBA?

    SelectF83 to F94 and enter
    Please Login or Register  to view this content.
    which is an array function and should be eneterd with Ctrl+Shift+Enter - Is that something you can live with?

  3. #3
    Registered User
    Join Date
    04-06-2007
    Location
    Glasgow, Scotland
    MS-Off Ver
    2003 / 2007
    Posts
    83

    Re: Find and return the last used cell in a row, Formula or VBA?

    Many thanks for your help but I have followed your instructions and entered as an array but only getting "0". Am doing something wrong?

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Find and return the last used cell in a row, Formula or VBA?

    Works for me - Commit with the entire target range (vertical) selected Copy of Game Test-1.xlsm

  5. #5
    Registered User
    Join Date
    04-06-2007
    Location
    Glasgow, Scotland
    MS-Off Ver
    2003 / 2007
    Posts
    83

    Re: Find and return the last used cell in a row, Formula or VBA?

    Many thanks but can't understand why your copy works and mine doesn't? Unfortunately not quite correct in that I would like when the fist entry in the row is input that it appears as Game#1 not as the cell number in other words if you put the value in say I11 that it appears in F88 rather than F83.

    EDITED One other thing if you do manage to solve this problem can you also where the cells return a 0.0 put in a blank "", many thanks

    RE-EDIT Sorry got that the wrong way round that the first value should appear in F83 not F88, sorry can you help?
    Last edited by alan_stephen75@; 07-24-2012 at 06:32 AM. Reason: Error

  6. #6
    Registered User
    Join Date
    04-06-2007
    Location
    Glasgow, Scotland
    MS-Off Ver
    2003 / 2007
    Posts
    83

    Re: Find and return the last used cell in a row, Formula or VBA?

    Thanks for helping and I won't mark it as solved as it still is not quite what I was after and I think it can't be done but happy to give a star for trying. Thanks again.

+ 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