+ Reply to Thread
Results 1 to 6 of 6

finding first column not equal to a value

  1. #1
    Registered User
    Join Date
    03-25-2005
    Posts
    23

    finding first column not equal to a value

    is there a way to find the first cell not equal to a value. I know i can use the the match function to find the first cell equal to a certain value, but i want to find the first cell NOT EQUAL TO a value.

  2. #2
    Registered User
    Join Date
    03-25-2005
    Posts
    23
    i know im new, but i really would apprecite the help.

  3. #3
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    could you give an example, i.e. what is the output that you are looking for ones you find the non-matching cell, do you want the cell address, or the value

    Mangesh

  4. #4
    Registered User
    Join Date
    03-25-2005
    Posts
    23
    if the first cell is not, say 0, return 1. if the 45th cell isnt 0, return 45.

  5. #5
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    This will work for only 1 non-zero number in the range. Does not work for more than 1 non-zero numbers.

    =SUMPRODUCT(--(A1:A10<>0),ROW(A1:A10))
    press control + shift + enter

    Will try for more than 1 non-zero numbers till then

    - Mangesh

  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =MATCH(TRUE,A1:A100<>0,0)

    ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

+ 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