+ Reply to Thread
Results 1 to 4 of 4

Find row number of first and last row that has a number

  1. #1
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Find row number of first and last row that has a number

    Hi

    How do I get row number 37 (first row with number) and 85 (last row with number)?

    Pls see attached file.

    thanks
    Attached Files Attached Files

  2. #2
    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,180

    Re: Find row number of first and last row that has a number

    Try

    =MIN(IF((ISNUMBER(A1:A300))*(ROW(A1:A300)),ROW(A1:A300)))

    =MAX(IF((ISNUMBER(A1:A300))*(ROW(A1:A300)),ROW(A1:A300)))


    ...BOTH confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Find row number of first and last row that has a number

    Or:

    =MATCH(TRUE,INDEX(ISNUMBER(A1:A277),0),0)

    =LOOKUP(10^37,A1:A277,ROW(A1:A277))

  4. #4
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Re: Find row number of first and last row that has a number

    thanks a lot.

+ 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 Specific Number - If not found find next lowest number
    By mattyp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2017, 03:03 PM
  2. Replies: 1
    Last Post: 10-07-2016, 02:16 PM
  3. [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
  4. [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
  5. [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
  6. Replies: 5
    Last Post: 02-13-2014, 05:37 PM
  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