+ Reply to Thread
Results 1 to 7 of 7

How to find the first cell not an error

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    How to find the first cell not an error

    Hi, Sir,

    A column of my data has all #N/A for the first few knows, and then followed by good numeric numbers. Can I ask how to find the first row with a proper value?

    The column looks like:

    #N/A
    #N/A
    #N/A
    ...
    10.08 -> which row?
    20.70

  2. #2
    Forum Contributor
    Join Date
    04-29-2012
    Location
    nuneaton, England
    MS-Off Ver
    Office 365
    Posts
    370

    Re: How to find the first cell not an error

    there is a isna formula in excel

    you could use something to highlight it

    =IF(ISNA(A1),"",A1) or put it in to conditional formatting and make it highligh a different colour

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find the first cell not an error

    Quote Originally Posted by wayneg View Post
    there is a isna formula in excel

    you could use something to highlight it

    =IF(ISNA(A1),"",A1) or put it in to conditional formatting and make it highligh a different colour
    Is there a better way to do it? I just want to identify which cell comes first with a non-error value?

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to find the first cell not an error

    hi BNCOXUK, what is the "..."? is it an actual text? i excluded it & used the 3 N/As & the 2 numbers. try copying this formula & paste into the formula bar:
    =MIN(IF(NOT(ISNA(A1:A5)),ROW(A1:A5)))

    press CTRL + SHIFT + ENTER to confirm. that's the row number. if you need the actual number, try:
    =INDEX(A1:A5,MIN(IF(NOT(ISNA(A1:A5)),ROW(A1:A5))))

    same thing. CTRL + SHIFT + ENTER

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: How to find the first cell not an error

    Say your data is in column A, use the array formula:

    =MATCH(TRUE,ISNUMBER(A:A),0)

    This must be entered with CNTRL-SHFT-ENTER rather than just the ENTER key.
    Gary's Student

  6. #6
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to find the first cell not an error

    Quote Originally Posted by Jakobshavn View Post
    Say your data is in column A, use the array formula:

    =MATCH(TRUE,ISNUMBER(A:A),0)

    This must be entered with CNTRL-SHFT-ENTER rather than just the ENTER key.
    Hi Gary, this really looks a magic. Well learned! Thanks a lot.

  7. #7
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: How to find the first cell not an error

    You are very welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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