+ Reply to Thread
Results 1 to 2 of 2

Simple nested IF statement?

  1. #1
    Registered User
    Join Date
    05-04-2007
    Posts
    2

    Simple nested IF statement?

    Hi there

    have a column named code and against each code a value

    I want to be able to enter a code then for the cell next to it to be assinged its linked value.

    BUT if the Code is not in the range then i want the value WRONG to be displayed. How would i do this?

    E.g.
    Code Value
    1 A
    2 B
    3 C

    So if a person enters a valid code then a valid Value will be displayed

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try

    =IF(isnumber(Match(X1,A1:A100,0)),Vlookup(X1,A1:B100,2,0),"Wrong")

    where A1:B100 contains the table of codes/values and X1 is the input cell.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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