+ Reply to Thread
Results 1 to 3 of 3

Multiple ifs in a text

  1. #1
    Registered User
    Join Date
    05-24-2017
    Location
    Haryana, India
    MS-Off Ver
    MS Office 2007
    Posts
    16

    Multiple ifs in a text

    Hello Members,

    I have a column containing different text, if want to find two words in this text and if the text contains either of the words than the result should be "Letter of credit" otherwise the result should be "Others". The word which i want to find are "LC" or "L/C". I donot want to user filter. The example with suitable answer is as attached.

    Thanks in advance. Sorry for English.
    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,941

    Re: Multiple ifs in a text

    C2=IF(SUM(COUNTIF(B2,{"*L/C*","*LC*"})),"Letter of Credit","Others")
    Try this and drag towards down
    Samba

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

  3. #3
    Registered User
    Join Date
    05-24-2017
    Location
    Haryana, India
    MS-Off Ver
    MS Office 2007
    Posts
    16

    Re: Multiple ifs in a text

    Thanks a Lot!!!

+ 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. Replies: 1
    Last Post: 10-30-2018, 05:01 AM
  2. Multiple Text Replace Across Multiple .txt files in Multiple Folders
    By kpmeline in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2017, 05:13 PM
  3. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  4. Replies: 4
    Last Post: 07-21-2014, 10:33 AM
  5. Replies: 3
    Last Post: 12-12-2012, 04:01 PM
  6. Macro to Parse Text - Import text to Excel from Multiple Text Files & Folders
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2012, 01:05 AM
  7. Count multiple rows (text) with multiple criteria (text)
    By alecabral08 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-21-2008, 04:26 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