+ Reply to Thread
Results 1 to 3 of 3

Multiple if statements in excel

  1. #1
    Registered User
    Join Date
    05-05-2015
    Location
    Maidstone, Kent, England
    MS-Off Ver
    Windows 7
    Posts
    2

    Multiple if statements in excel

    I am trying to write a "multiple if statement", if such a thing exists, in a excel spreadsheet. We use this as a simple quotation database for our company.

    Here is the simple if statement i have so far:

    =if(l11="lost","n/a","tba")

    however, l11 can = "lost", "won", "open" and "closed".

    What i would like to do is for each of these statements have a different answer. E.g.
    If l11=lost then display lost
    if l11 = open display open
    if l11 = closed display n/a

    and so on...

    I studied computer programming many years ago and have an ok understanding of code, if someone could reply with a suitable statement, i can edit inputs to suit.

    I did think that maybe a when statement might be suitable, but this is beyond me right now.

    Thanks in advance.

    Sjb

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Multiple if statements in excel

    use a nested IF or a Lookup table
    IF( L11 = "lost", "lost", IF( L11 = "OPEN", "Open", IF( L11 = "Closed", "N/A", "No Valid data in L11" )))

    OR

    =if( OR(L11 = "lost", L11="Open", L11="Won"), L11, IF( L11 = "closed", "N/A", "No Valid data in L11" ))

    OR a lookup table
    if there are many entries
    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
    12-16-2014
    Location
    Amsterdam, Nederland
    MS-Off Ver
    Excel 2013
    Posts
    71

    Re: Multiple if statements in excel

    Hi,

    See attached how lookup works.

    Bas
    Attached Files Attached Files

+ 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] Multiple IF Statements in Excel 2010
    By robmun50 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-21-2014, 11:16 AM
  2. Multiple if statements in excel 2003
    By oconnorbrian1 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-01-2013, 04:26 PM
  3. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  4. Replies: 2
    Last Post: 01-10-2006, 05:10 PM
  5. How do I set up multiple if statements in Excel?
    By LKraft0318 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2005, 06:06 PM

Tags for this Thread

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