+ Reply to Thread
Results 1 to 6 of 6

How to search for occurrence of multiple texts in same row/cell

  1. #1
    Registered User
    Join Date
    08-25-2013
    Location
    california
    MS-Off Ver
    Excel 2010
    Posts
    10

    How to search for occurrence of multiple texts in same row/cell

    Hi,

    I have a lookup table in which names of students and the planned session dates are available.
    I need to create a chart that has Student Name and Each date of month. The chart should have value of 1 wherever a match is found in the look up table.

    I am wondering if combination of searching for multiple strings (student name and date ) will help somehow.
    The below image explains my problem

    StudentTimeTable.png

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: How to search for occurrence of multiple texts in same row/cell

    Use this formula...
    in your result table and drag it horizontally ..

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


    Use Ctrl + Shift + enter to enter the formula...


    Say thanks, click *

  3. #3
    Registered User
    Join Date
    08-25-2013
    Location
    california
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to search for occurrence of multiple texts in same row/cell

    Hi Vikas,

    Sorry, but I didn't understand your solution. Can you explain please.
    My understanding is that we'll need to FIND for both the date and the student name. But your solution has just single FIND.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to search for occurrence of multiple texts in same row/cell

    Please upload a sample of your workbook, not a picture of your data.
    Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    08-25-2013
    Location
    california
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to search for occurrence of multiple texts in same row/cell

    Arrived at the solution

    This formula worked. Copied this one as Array (Ctrl + Shift + Enter) formula in all the cells
    =IF(SUMPRODUCT(IFERROR(SEARCH(E$4,$B$5:$B$12),0),IFERROR(SEARCH($D5,$A$5:$A$12),))>0,1,"")

    It shows 1 only where it should


    Ford - Thanks for your suggestion. Will follow it for future posts

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: How to search for occurrence of multiple texts in same row/cell

    Quote Originally Posted by coolfundaz View Post
    Hi Vikas,

    Sorry, but I didn't understand your solution. Can you explain please.
    My understanding is that we'll need to FIND for both the date and the student name. But your solution has just single FIND.

    Hi coolFundaz...

    you don't need to find student name...
    just change the cell reference each time for each student and drag it horizontally...

    For instance..
    for John..

    try this formula... in E5 and drag it horizontally till P5

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


    and press ctrl shift enter....

    Say thanks, click *

+ 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. Search the text in 3rd cell by using texts in 2 cells
    By Shinaj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2014, 08:08 AM
  2. Search single row range for multiple texts and return "blah" Excel 2003
    By ashleyd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2013, 03:36 PM
  3. [SOLVED] search for text in colB, starting with next row search for 1st occurrence of specific #
    By roothog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2012, 10:39 PM
  4. Multiple cell texts into one
    By Sorrowsong in forum Excel General
    Replies: 4
    Last Post: 05-31-2012, 02:37 PM
  5. Check to see if a cell contains multiple texts
    By sammythefish in forum Excel General
    Replies: 2
    Last Post: 02-21-2012, 11:25 PM

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