+ Reply to Thread
Results 1 to 5 of 5

If Condition with Multiple Search & Multiple Results

  1. #1
    Forum Contributor
    Join Date
    04-18-2016
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    178

    Thumbs up If Condition with Multiple Search & Multiple Results

    Dear Gurus,

    I have a requirement where Column B contains numbers, 'W/O Ticket', 'Holiday' & 'Leave'. I need a formula in Column D, if it contains numbers, show as "Tickets", if it contains 'W/O Ticket', show as "No Tickets", and if it contains 'Holiday' show as 'Holiday' and 'Leave' as "Leave".

    Currently I am using the formula as =IF(OR(B2={"W/O Ticket","Holiday","Leave"}),"NoTickets","Tickets")

    Sample sheet attached herewith with expected results.

    Please help.

    Gem
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,913

    Re: If Condition with Multiple Search & Multiple Results

    c2=IF(ISNUMBER(B2),"Tickets",IF(B2="W/O Ticket","No Ticket",B2))
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: If Condition with Multiple Search & Multiple Results

    In D2 copy down
    =IF(ISNUMBER(B2),"Tickets",IF(B2="W/O Ticket","No Ticket",B2))

    beaten to the draw by nflsales
    Last edited by kev_; 08-22-2017 at 02:13 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Forum Contributor
    Join Date
    04-18-2016
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    178

    Re: If Condition with Multiple Search & Multiple Results

    Thanks.. Working fine...

    Quote Originally Posted by kev_ View Post
    In B2 copy down
    =IF(ISNUMBER(B2),"Tickets",IF(B2="W/O Ticket","No Ticket",B2))

    beaten to the draw by nflsales

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: If Condition with Multiple Search & Multiple Results

    thanks for marking the thread as solved and for the reps

+ 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 search criteria to return multiple results
    By johnmacs5 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-01-2016, 05:17 PM
  2. Replies: 6
    Last Post: 08-22-2014, 08:47 AM
  3. Multiple Search Criteria produces (list) Multiple results in a single cell
    By snake007uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2014, 12:13 PM
  4. Multiple search multiple results query
    By E8515 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-15-2013, 11:03 AM
  5. Search multiple sheets and return list of multiple results
    By Abuck in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-07-2012, 11:59 AM
  6. User Form to Search multiple Criteria to return multiple Results
    By Calieth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2011, 11:57 AM
  7. Multiple Search Results of Multiple Criteria
    By bbarrene in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-17-2010, 09:21 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