+ Reply to Thread
Results 1 to 9 of 9

I have multiple text in one cell and depending in criteria it will bring back another cell

Hybrid View

  1. #1
    Registered User
    Join Date
    06-28-2020
    Location
    Manchester
    MS-Off Ver
    2012
    Posts
    6

    I have multiple text in one cell and depending in criteria it will bring back another cell

    Hi
    I have multiple text in one cell and depending in criteria it will bring back another cell


    So for example

    If cell A6 contains “duplicate “ or “verified then bring back data in h6
    If none of these then bring back i6
    Last edited by AliGW; 06-28-2020 at 09:40 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: I have multiple text in one cell and depending in criteria it will bring back another

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: I have multiple text in one cell and depending in criteria it will bring back another

    Try this:

    =IF(OR(A6="Duplicate",A6="Verified"),H6,I6)

  4. #4
    Registered User
    Join Date
    06-28-2020
    Location
    Manchester
    MS-Off Ver
    2012
    Posts
    6

    Re: I have multiple text in one cell and depending in criteria it will bring back another

    Thanks have tried this but doesn’t seem to work . It works on the first condition but not the second.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: I have multiple text in one cell and depending in criteria it will bring back another

    Then there is an anomaly in your data.

    There are instructions at the top of the page explaining how to attach your sample workbook.

  6. #6
    Registered User
    Join Date
    06-28-2020
    Location
    Manchester
    MS-Off Ver
    2012
    Posts
    6

    Re: I have multiple text in one cell and depending in criteria it will bring back another

    Apologies I am unable to attach as using iPad

    Basically if text in cell is either verified or duplicate then give me cell h6 if not i6.

    When I used the if statement posted it worked for verified but not duplicate . I chacjed spelling and that was correct , each time it brought back i6 on duplicate .

    Thanks

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: I have multiple text in one cell and depending in criteria it will bring back another

    This is the solution:

    =IF(OR(A6="Duplicate",A6="Verified"),H6,I6)

    If it doesn't work, then there is something about your data (maybe trailing spaces) that is making it fail.

  8. #8
    Registered User
    Join Date
    06-28-2020
    Location
    Manchester
    MS-Off Ver
    2012
    Posts
    6

    Re: I have multiple text in one cell and depending in criteria it will bring back another

    Thank you it worked

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,778

    Re: I have multiple text in one cell and depending in criteria it will bring back another

    Told you!!!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this 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. [SOLVED] i have an if then statement that works, how to make it work as a with or case statement
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-03-2016, 03:34 PM
  2. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 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