+ Reply to Thread
Results 1 to 10 of 10

Find last row number

  1. #1
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Find last row number

    please see spread-sheet attached (example).

    I want to find the ROW NUMBER of the last VISIBLE VALUE in the specific column?
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,904

    Re: Find last row number

    Try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Find last row number

    Quote Originally Posted by AlKey View Post
    Try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Yea that has worked. Sorry for being slow here but I cannot understand how that actually works?

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find last row number

    The MATCH function is being told to look down column A right to the end. What it is looking for is a match for 10^308 which is a very large number not at all likely to be found in the column. 10^308 is 1 with 308 zeros after it.

    The MATCH isn't looking for an exact match so it keeps looking to the bottom of the column and stops at the last value and returns the row number. If you want the actual value, surround the MATCH function with INDEX like this and format in this case as a %.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,904

    Re: Find last row number

    10^308 is an incredibly large number that can be entered in Excel and most likely doesn't exist withing the lookup_vector. So, the formula is looking to find this large number and since it is not there, it goes back to the last record in range.

  6. #6
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Find last row number

    Thank you two very much for you input.

    If I wanted to use "=MATCH(10^308,A:A)" to find the last row number, how could I then use this row number (as my data updates from a web URL) in any array?

    E.g. =COUNT("A50:A"&MATCH(10^308,A:A)) ?

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,904

    Re: Find last row number

    I assume you want to count the number of rows filled with numeric values then you need to use INDIRECT function

    E.g.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Find last row number

    Quote Originally Posted by AlKey View Post
    I assume you want to count the number of rows filled with numeric values then you need to use INDIRECT function

    E.g.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Duuuur - I knew that! Perfect thank you.

    Last question on this topic:

    How can I use that formula:

    Please Login or Register  to view this content.
    Where the start of the array "A2" is MATCH(10^308,A:A)) - 100 rows? (so if MATCH(x) returns row 200, then I'd want A100:A200)

  9. #9
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Find last row number

    Any thoughts?

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find last row number

    The formula =MATCH(10^308,A:A) is giving you the LAST numeric value in column A. What is under that last value? This doesn't make sense to me as described.

    If you are wanting to SUM for example the values in column A starting at A2 and going to the end then something like this will do that
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you are wanting to SUM 200 rows starting at A2 then this will work
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I used SUM just as an example because I really don't know what it is that you want to do.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).
    Last edited by newdoverman; 04-07-2016 at 10:15 AM.

+ 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] Find RMA Number and paste the order number and date multiple times
    By intex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2015, 05:31 PM
  2. [SOLVED] Enter a number in a Textbox then find the number in a cell to activate Hyperlink
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2014, 10:26 AM
  3. [SOLVED] How2 find number in range and return that number or if doesn't exist then the next highest
    By Crawfinator1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-06-2014, 08:52 AM
  4. Replies: 5
    Last Post: 02-13-2014, 05:37 PM
  5. [SOLVED] Find match, find related cell and return that number
    By HelpHelpHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 06:46 AM
  6. [SOLVED] To find any 4 digit number and return the same number with desired formating effect.
    By neo4u44 in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2012, 12:45 AM
  7. Replies: 7
    Last Post: 12-18-2008, 07:34 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