+ Reply to Thread
Results 1 to 4 of 4

Simple Lookup Help

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    68

    Simple Lookup Help

    I am trying to return a "1" or "0" in a field by looking is a row for the word No. I have a few rows with multiple text words and I want to look in each row and if I see the word "No", I want to return the value 1. If I do not see the word "No", I want to return the value 0. As you can see in the attached, sometimes it works and sometimes it doesn't. Also, when I change the "No" value in row one, the output in column L turns to N/A.

    How do I do this and why am I getting errors?
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Simple Lookup Help

    The lookup function requires the range to be sorted ascending, with it is not.

    Try

    =--ISNUMBER(MATCH("No",A1:J1,0))

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    68

    Re: Simple Lookup Help

    Awesome, thanks.

  4. #4
    Registered User
    Join Date
    06-01-2012
    Location
    New Orleans, US
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Simple Lookup Help

    A possible solution, although not exactly pretty could be to combine the IF and the OR function. For instance:

    =IF(OR(A1="No",B1="no",C1="no",D1="no",E1="no",F1="no",G1="no",H1="no",I1="no",J1="no"),1,0)

    Then copy down.

+ 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. Simple lookup that I just can't get right
    By kryt0n in forum Excel General
    Replies: 3
    Last Post: 07-09-2010, 08:28 AM
  2. Simple(?) lookup
    By jakobahman in forum Excel General
    Replies: 3
    Last Post: 01-17-2007, 05:48 PM
  3. simple lookup
    By Max_power in forum Excel General
    Replies: 3
    Last Post: 04-21-2006, 06:40 AM
  4. [SOLVED] Lookup help (simple)
    By Boggis2000 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-25-2006, 07:45 AM
  5. Simple lookup
    By Bill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2005, 11:06 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