+ Reply to Thread
Results 1 to 7 of 7

if cell value is equal to multiple text values

  1. #1
    Forum Contributor
    Join Date
    06-05-2014
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    155

    if cell value is equal to multiple text values

    Hi,

    i already have a formula and need to add a condition to this formula.

    The formula that i already have is =IF(($AG$1+X4)>T4,($AG$1+X4),T4)

    Now i have list of 7 words in coloumn K. eg : Open,closed, hold, cancelled, On boarded, Available, Not available.

    This is what i am trying to do :

    If cell K2 is equal to "Open" or "closed" or "hold" or "cancelled" or "On boarded", follow the original formula =IF(($AG$1+X4)>T4,($AG$1+X4),T4).
    and if cell K2 is equal to "Available" or "Not available" copy the content from different cell "R2".

    Please help

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: if cell value is equal to multiple text values

    Try this:

    =IF(ISNUMBER(MATCH(K2,{"Open","closed","hold","cancelled","On boarded"},0)),IF($AG$1+X4>T4,$AG$1+X4,T4),R2)

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-05-2014
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    155

    Re: if cell value is equal to multiple text values

    Fantastic !! It worked .. Thanks a lot Pete

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: if cell value is equal to multiple text values

    Another similar option:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: if cell value is equal to multiple text values

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  6. #6
    Forum Contributor
    Join Date
    06-05-2014
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    155

    Re: if cell value is equal to multiple text values

    Hi Pete,

    Can you also please explain me how this formula work. i am new to ISNUMBER and MATCH functions.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: if cell value is equal to multiple text values

    MATCH allows you to see if a value exists in a list. For an exact match the final parameter is set to zero or FALSE. If a match is found then the function returns the relative position of the value within the list. However, if the value does not exist in the list the function returns #N/A. The ISNUMBER function traps this error and allows you to return something else instead. So basically the formula is saying:

    if K2 is in the list then calculate the original expression otherwise return R2.

    Hope this helps.

    Pete

+ 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] text in a list to equal many different values
    By rastak1 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 06-19-2013, 03:05 AM
  2. How to make cell values equal certain text depending on other cells' text
    By Wes Borland in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2013, 02:08 PM
  3. Change text of cell based on two other cells with equal values
    By spookymyo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-19-2013, 02:21 PM
  4. [SOLVED] Text Boxes (Values) if blank equal to 0
    By Gomquai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2012, 03:29 PM
  5. Adjust multiple values to equal 100%
    By EatSpork in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2007, 06:07 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