+ Reply to Thread
Results 1 to 11 of 11

Analysing once cell to see if contains text present in a range of cells

Hybrid View

  1. #1
    Registered User
    Join Date
    03-23-2023
    Location
    London, England
    MS-Off Ver
    365
    Posts
    4

    Analysing once cell to see if contains text present in a range of cells

    Hi there. I'm pretty knowledgeable with Excel but this one has me a bit confused. Hoping someone can guide me in the right direction as to which formula to use.

    I have cell A1 - let's say the cell text is "example.com/SKU-123". I have a separate range of cells on another sheet, and somewhere in this range is the text "SKU-123".

    What I want to do is write a formula in cell B1 that will look at the text in A1, and try to check it against the text in the range of cells on the other sheet. I need it to be able to look at an entire column and see if any text in that column, matches any part of the text in cell A1. So that if it finds any of the values in this other range, it will return the text - so that B1 says "SKU-123."

    Is this possible? I've tried various iterations of ISNUMBER(SEARCH( but I'm not getting anywhere.

    Any help greatly appreciated. Thank you!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Analysing once cell to see if contains text present in a range of cells

    Try:

    =IFERROR(LOOKUP(1E+100,SEARCH(Sheet2!$A$1:$A$10,A1),Sheet2!$A$1:$A$10),"")

    and remember, it's easier for us to help you if you provide a sample excel file.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Analysing once cell to see if contains text present in a range of cells

    HI,
    A sample work book with a example will be more effeticve to help ,
    1) Do you have Single entry or duplicate " SKU-123 " , If Unique then you can use Wils card to search in Lookup function that is possible if you have duplicate they you may need array function

  4. #4
    Registered User
    Join Date
    03-23-2023
    Location
    London, England
    MS-Off Ver
    365
    Posts
    4

    Re: Analysing once cell to see if contains text present in a range of cells

    OK sure. I've attached a sample file. I tried your formula (after amending it to fit the naming convention of my spreadsheet) and unfortunately it just returned zero.

    So in this file, sheet "skus" column A is where I want to look, and sheet "plytix_export(2)" is where I need the value returned. So for example, Cell A2 of "plytix_export(2)" contains a string of text that is present in sheet "skus" column A somewhere - and I need to return that value.

    Many thanks!
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Analysing once cell to see if contains text present in a range of cells

    Hi,

    I request you to try soultion provided " Glenn Kennedy " that should work .

  6. #6
    Registered User
    Join Date
    03-23-2023
    Location
    London, England
    MS-Off Ver
    365
    Posts
    4

    Re: Analysing once cell to see if contains text present in a range of cells

    Unfortunately this just returns a value of 0 for every line.

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Analysing once cell to see if contains text present in a range of cells

    you need to try using using Ctrl+Shift+Enter as this is array function and also chnage the range as per your data
    Attached Files Attached Files
    Last edited by Punnam; 03-23-2023 at 09:17 AM.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Analysing once cell to see if contains text present in a range of cells

    It is NOT an array formula. In any event, there's no such thing in O365. Also, it does not return a zero. I suspect thta you did not change the ranges correctly. Hence the advantage of a sample sheet...

    It does take some time to calculate, as your sheet is quite big.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Analysing once cell to see if contains text present in a range of cells

    Quote Originally Posted by Glenn Kennedy View Post
    It is NOT an array formula. In any event, there's no such thing in O365. Also, it does not return a zero. I suspect thta you did not change the ranges correctly. Hence the advantage of a sample sheet...

    It does take some time to calculate, as your sheet is quite big.
    My Mistake, i am confused it is not Array function & also not checked MS office verson, i am sorry

  10. #10
    Registered User
    Join Date
    03-23-2023
    Location
    London, England
    MS-Off Ver
    365
    Posts
    4

    Re: Analysing once cell to see if contains text present in a range of cells

    Thank you Glenn - this is perfect. Really appreciate your help.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Analysing once cell to see if contains text present in a range of cells

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) 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] Auto hide named range based on text not being present in cell
    By 64Gerb in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-25-2018, 12:17 PM
  2. [SOLVED] Formula to Sum a Range of Cells if a Number is Present and Modify Value of Each Cell
    By erinanne57 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2017, 03:03 PM
  3. [SOLVED] Auto Hiding rows based on range/data present or not present.
    By raze in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 02-10-2013, 11:27 AM
  4. [SOLVED] Macro to sum based on certain text being present, range changes at variable rows
    By mistye525 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-26-2012, 08:02 PM
  5. How to check if a number is present in a range of cells?
    By neelabh_krishna in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2012, 12:46 AM
  6. Replies: 8
    Last Post: 07-12-2006, 06:55 PM
  7. sum cells IF no text present
    By LLM in forum Excel General
    Replies: 3
    Last Post: 02-09-2006, 03:00 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