+ Reply to Thread
Results 1 to 9 of 9

Get last entry in a Range with no Blank Cells.

  1. #1
    Registered User
    Join Date
    08-05-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    33

    Get last entry in a Range with no Blank Cells.

    I have a Range AB29:AO30 of which a Number will be entered starting at AB29 to AO29 and then AB30 to AO30. Not all cells will have a number every time but there will be no blank cells. eg. a number will be in cells AB29 to AO29 and AB30 to AE30. I need to get the last Entry (in this case AE30) and display it in Cell AS29. The last entry could be in any of the cells in the Range. What Formula do I need to do this.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Get last entry in a Range with no Blank Cells.

    your description is ambiguous. What is the role of row 29?

    try this:

    =LOOKUP(10^100,AB30:AO30)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: Get last entry in a Range with no Blank Cells.

    Try

    =OFFSET($AB$29,INT((COUNT($AB$29:$AO$30)-1)/14),MOD(COUNT($AB$29:$AO$30)-1,14))

  4. #4
    Registered User
    Join Date
    08-05-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    33

    Re: Get last entry in a Range with no Blank Cells.

    Hi Glenn, This Range AB29:AO30 is in a Darts Score Sheet Singles Match and the players score is entered after their throw starting at AB29, AC29 etc. If the match is not completed by cell AO29 the next score is entered in AB30, AC30 etc. Depending on the players ability the match could end in Cell AD29 or any Cell after that. So I need a formula that finds the cell with the last entry.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: Get last entry in a Range with no Blank Cells.

    See post #3.

  6. #6
    Registered User
    Join Date
    08-05-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    33

    Re: Get last entry in a Range with no Blank Cells.

    Thanks John, that works. I have incorporated your formula into the score sheet with a couple of extra statements. The reasons for this is when there is no score in AB29 we don't want anything in AS29 and if a player forfeits we put 501 into cell AB29 and don't want anything in AS29. I also need another statement added that when the total of the cells reaches 501 (AQ29 shows this) your formula runs and puts the last score into AS29 but should be blank if total is below 501. With the following formula cell AS29 shows ### whenever a score of less than 501 is in cell AQ29. How do I fix this minor glitch.

    =IF(AB29="","",IF(AB29=501,"",IF(AQ29=501,OFFSET($AB$29,INT((COUNT($AB$29:$AO$30)-1)/14),MOD(COUNT($AB$29:$AO$30)-1,14)))))

    Bill Slaney.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: Get last entry in a Range with no Blank Cells.

    Try


    =IF(AB29="","",IF(AB29=501,"",IF(AQ29=501,OFFSET($AB$29,INT((COUNT($AB$29:$AO$30)-1)/14),MOD(COUNT($AB$29:$AO$30)-1,14)),"")))

    So only runs when AQ29=501

  8. #8
    Registered User
    Join Date
    08-05-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    33

    Re: Get last entry in a Range with no Blank Cells.

    Thanks John that works well. Thank you for your assistance and very quick response. Bill

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: Get last entry in a Range with no Blank Cells.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Count blank cells in a range and contiguous blank cells also as single cells! Tricky One!
    By SebastianColombia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2015, 02:32 PM
  2. Validate that entry in one cell matches an entry in another range of cells
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2014, 03:57 PM
  3. Replies: 15
    Last Post: 04-25-2012, 05:21 PM
  4. [SOLVED] Count blank cells since last entry
    By Luke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  5. [SOLVED] Count blank cells since last entry
    By Luke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. Count blank cells since last entry
    By Luke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] Count blank cells since last entry
    By Luke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2005, 03:05 PM

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