+ Reply to Thread
Results 1 to 6 of 6

If Cell Contains three strings, return data in adjacent cell

  1. #1
    Registered User
    Join Date
    01-10-2020
    Location
    canada
    MS-Off Ver
    2017
    Posts
    3

    If Cell Contains three strings, return data in adjacent cell

    Hi All,
    I have been trying to get this right using SUMPRODUCT(ISNUMBER(SEARCH) but no luck. Any help is appreciated.

    I the formula to return the Date in cell B2 of the 'Analysis sheet' for the row in Column B in the 'Search Data sheet' that has the strings 'Apple' and '1000000'.

    in the attachement, the Date returned in Cell B2 of the analysis sheet should be 03/01/2019.

    Please help. Thanks!
    Attached Files Attached Files

  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 Contains three strings, return data in adjacent cell

    Put this in B2 of the analysis sheet:

    =IFERROR(INDEX('Search Data'!C:C,MATCH("Apple_"&A2&"*",'Search Data'!B:B,0)),"")

    Format as a date, then copy down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-10-2020
    Location
    canada
    MS-Off Ver
    2017
    Posts
    3

    Re: If Cell Contains three strings, return data in adjacent cell

    Thanks a lot!!!! This was very helpful. One last question. How do i program the formula to ignore the date if the related cell in the 'Search data' sheet has "XX"? See attached sheet for example.
    Attached Files Attached Files
    Last edited by AliGW; 01-11-2020 at 02:01 AM. Reason: Please don't quote unnecessarily!

  4. #4
    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 Contains three strings, return data in adjacent cell

    This can be used in the example file that you have attached:

    =SUMIFS('Search Data'!C:C,'Search Data'!B:B,"Apple_"&A2&"*",'Search Data'!B:B,"<>*XX*")

    i.e. if there is only one record which matches the criteria - if you have multiple records they will be added together, so it will not be suitable.

    Hope this helps.

    Pete

    P.S. If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

  5. #5
    Registered User
    Join Date
    01-10-2020
    Location
    canada
    MS-Off Ver
    2017
    Posts
    3
    I do have multiple records with XX in them but I want to eliminate all of them. Is there a way to clean the data using the formula ?
    Last edited by AliGW; 01-11-2020 at 09:03 AM. Reason: Please don't quote unnecessarily!

  6. #6
    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 Contains three strings, return data in adjacent cell

    It doesn't matter if you have multiple records with XX in them, as they will be ignored.

    Also, please do not quote the previous message - it is just clutter. Use the Reply button rather than Reply With Quote.

    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] Find Multiple Text Strings in Column, return the 9 cell strings below
    By BoExcels in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-05-2019, 09:56 AM
  2. Check for strings in each cell and print strings in adjacent cell if they appear
    By Pawtang in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2019, 10:54 AM
  3. [SOLVED] Trying to compare one cell with a list of cells and return data in adjacent cell on match
    By possumbarnes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2019, 10:41 AM
  4. Replies: 3
    Last Post: 07-21-2015, 05:10 PM
  5. Do not return a value when adjacent cell in two columns of data is empty
    By randinator in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2014, 01:53 PM
  6. Replies: 6
    Last Post: 02-28-2013, 11:27 AM
  7. Replies: 2
    Last Post: 12-18-2009, 10:59 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