+ Reply to Thread
Results 1 to 4 of 4

Find last cell with data formula returning incorrect range

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Find last cell with data formula returning incorrect range

    Hello again!

    I have a formula:

    Please Login or Register  to view this content.
    data in A13 matches a sheet title. Then this formula is supposed to go to that sheet, and find the last cell, in column R, with data in it. This is important, because it returns a range that tells 5 other formulas where to find their data. (its all dynamic, but always in a fixed position relative to the last cell in column R)

    This formula works perfectly, except when the data in the last cell in colum R is duplicated in column R.

    For example, the data in R19 might be "8". In R14, the result of a calculation is also "8". The above formula then returns R14 as the last cell containing data, instead of R19.

    Any thoughts?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find last cell with data formula returning incorrect range

    Try this...

    =MATCH(1E100,INDIRECT("'"&A13&"'!R:R"))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Re: Find last cell with data formula returning incorrect range

    That seems to have sorted it Tony! I greatly appreciate your help

    And if you're a hockey fan, Go Pens Go!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find last cell with data formula returning incorrect range

    Quote Originally Posted by Christopher135 View Post
    That seems to have sorted it Tony! I greatly appreciate your help
    You're welcome!

    And if you're a hockey fan, Go Pens Go!
    Oh yeah!

+ 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. [SOLVED] IF Formula Returning Incorrect Value
    By Sky188 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2012, 04:42 PM
  2. .Find Method Returning Incorrect Values For Whole Numbers
    By Steve0492 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-25-2012, 04:11 PM
  3. formula returning incorrect blanks
    By michelleelaine@hotmail.com in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-09-2006, 03:35 PM
  4. formula returning incorrect blanks
    By michelleelaine@hotmail.com in forum Excel General
    Replies: 7
    Last Post: 03-09-2006, 03:20 PM
  5. formula returning incorrect blanks
    By michelleelaine@hotmail.com in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-09-2006, 03:20 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