# Find last row number

1. ## Find last row number

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

2. ## Re: Find last row number

Try this

Formula:
`Please Login or Register  to view this content.`

3. ## Re: Find last row number

Originally Posted by AlKey
Try this

Formula:
`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. ## 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:
`Please Login or Register  to view this content.`

5. ## 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. ## 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. ## 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:
`Please Login or Register  to view this content.`

8. ## Re: Find last row number

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

E.g.

Formula:
`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. ## Re: Find last row number

Any thoughts?

10. ## 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:
`Please Login or Register  to view this content.`

If you are wanting to SUM 200 rows starting at A2 then this will work
Formula:
`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).

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### 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