+ Reply to Thread
Results 1 to 5 of 5

Cell Returns a specific value based on a valiue in another cell

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    SG
    MS-Off Ver
    Excel 2010
    Posts
    10

    Cell Returns a specific value based on a valiue in another cell

    Hi all

    I hope my Title makes sense hehe.

    Ok I've been trying to crack my head over this and can't seem to figure out how.

    I've attached a sample.

    In column A, I have input the IF formula so that each cell in that column will return a value based on the value in Column F in same row.

    Example A2 will return the value "OK" if F2 reads "Fault Found"
    A5 will return "NA instead because "Unlocalized Fault" is not inside the IF statement requirement.

    But the IF statement only allow me to return two values in the pretense of TRUE or FALSE.

    I need the cells in column A to return another value, "INVALID" if the cells in column F is either empty or contains other characters such as a dash.

    But with the IF function that I'm using, its returning "NA" instead which is not my requirement.

    Is there a way to do this using functions?

    Any help would be great.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,139

    Re: Cell Returns a specific value based on a valiue in another cell

    you can nest IFs - try
    =IF(OR(F2="Fault Found", F2="No Fault Found"), "OK", IF(OR(F2="", F2="-"),"INVALID","NA") )

    what are the other characters ?
    are the characters only going to be 1 character
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-27-2013
    Location
    SG
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Cell Returns a specific value based on a valiue in another cell

    This works out well. Thanks!

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Cell Returns a specific value based on a valiue in another cell

    Hi
    Another alternative can be like that
    =IF(ISERROR(SEARCH("Fault Found",F2)),"NA","OK")
    Appreciate the help? CLICK *

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,139

    Re: Cell Returns a specific value based on a valiue in another cell

    your welcome , thanks for letting us know

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved

+ 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] Vlookup that returns look up if a cell on the same row has a specific value
    By hb316 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-15-2013, 09:33 AM
  2. [SOLVED] get cell value if vlookup returns a specific data
    By amar05 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-11-2013, 10:57 AM
  3. Replies: 3
    Last Post: 12-21-2012, 05:33 AM
  4. returns the name of the guide, based on a name in cell
    By marreco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2012, 10:32 PM
  5. [SOLVED] Transfer single cell information to specific cell based on user criteria
    By RoVo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2006, 11:30 AM

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