+ Reply to Thread
Results 1 to 2 of 2

Formula to return text when multiple cells containing specific words meet conditions

  1. #1
    Registered User
    Join Date
    02-08-2023
    Location
    New York
    MS-Off Ver
    2208
    Posts
    1

    Formula to return text when multiple cells containing specific words meet conditions

    Hello,

    I am working on a beast of a document to track customer requests that multiple people look at, and I want to make a formula that autopopulates a column with instructions on what people should do when certain criteria are met.

    The document contains the following columns that I need to work off of (see EXAMPLE.xlsx which illustrates better):

    Column A: The name of the form submitted (there are 3 different ones: "Delete", "Do Not Sell", "Both")
    Column B: If the person exists in a database ("yes" or "no")
    Column C: The person's current order status ("Active", "Expired", "Cancelled", "Credit Pending" and "N/A")

    So I'm looking for a formula that can do the following: If a person submitted the "Delete" form, is "Yes" in the database, and has a status of "Expire" then the return text should be "Delete customer".

    I should note that sometimes the text doesn't always match. For instance, an order status might say "Active on X product". Is there a function that looks for words within a string?

    I'd have to tweak for the other criteria but having the above should be enough for me to start.

    Thanks in advance.

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

    Re: Formula to return text when multiple cells containing specific words meet conditions

    EDIT
    found the example sheet - what are the other rules
    for
    Submit Deletion Request
    No action required
    Inform customer of status

    Also are there others - so we have all the possible combinations and outcomes

    A nested IF will do what you require , maybe a lookup table - if you have a lot of combinations

    So I'm looking for a formula that can do the following: If a person submitted the "Delete" form, is "Yes" in the database, and has a status of "Expire" then the return text should be "Delete customer".
    =IF( AND( A2 = "Delete", , B2 = "Yes" C2="Expire" ), "Delete Customer", IF ( other rules ,))

    You can use
    countif for wild cards

    maybe an Find() with an ISNUMBER

    =IF( AND( A2 = "Delete", , B2 = "Yes" , isnumber(FIND("active" ,C2, 1)), "???", IF ( other rules ,))

    But a sample will help

    And what version of MSOffice - 2208 - not sure what that is
    Last edited by etaf; 02-08-2023 at 01:28 PM.
    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.

+ 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. Find and select cells that meet specific conditions
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2018, 10:59 PM
  2. Replies: 8
    Last Post: 11-06-2014, 06:19 PM
  3. Formula to average all Cells that meet multiple conditions
    By ajw089 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2014, 05:24 PM
  4. [SOLVED] Formula to return specific text based on multiple cells meeting a single criteria
    By missydanni in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2013, 09:48 AM
  5. Replies: 10
    Last Post: 12-10-2012, 01:39 PM
  6. Replies: 4
    Last Post: 11-28-2012, 01:43 PM
  7. Replies: 3
    Last Post: 10-01-2005, 02:05 AM

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