+ Reply to Thread
Results 1 to 3 of 3

how to give multiple condition in IF formula

  1. #1
    Registered User
    Join Date
    04-27-2016
    Location
    india
    MS-Off Ver
    2007
    Posts
    87

    how to give multiple condition in IF formula

    see the attached file
    i want a formula in column C
    if there is 1,10,11,22,36,32 then south if 5,6,12,13,33,34 then west, if 7,4,19,20,24,27
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-23-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: how to give multiple condition in IF formula

    =IF(OR(A1=1,A1=10,A1=11,A1=22,A1=36,A1=32),"South",IF(OR(A1=5,A1=6,A1=12,A1=13,A1=33,A1=34),"West",IF(OR(A1=7,A1=4,A1=19,A1=20,A1=24,A1=27),"North","")))

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to give multiple condition in IF formula

    Try

    =IF(A1="","",VLOOKUP(A1,{1,"SOUTH";10,"SOUTH";11,"SOUTH";22,"SOUTH";36,"SOUTH";32,"SOUTH";5,"WEST";6,"WEST";12,"WEST";13,"WEST";33,"WEST";34,"WEST";7,"NORTH";4,"NORTH";19,"NORTH";20,"NORTH";24,"NORTH";27,"NORTH"},2,0))
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (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. Help with a formula to give multiple answers
    By buddydubbo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2016, 09:59 PM
  2. [SOLVED] condition formatting give the colour at the cell with the result
    By davide2574 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 01-12-2016, 04:39 AM
  3. VLOOKUP Multiple Values then give answer based on condition
    By Wetfloor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2014, 10:24 AM
  4. how to give multiple logical condition in one cell
    By ganeshadeshpande in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-03-2013, 08:42 AM
  5. How to give multiple if condition in one formula
    By ganeshadeshpande in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-21-2013, 09:15 PM
  6. i want to give more than 6 condition by using if statement
    By Sushil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2005, 11:06 PM
  7. formula from multiple worksheets to give a color output to one wo.
    By vikingshooter in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-10-2005, 12: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