+ Reply to Thread
Results 1 to 3 of 3

Pulling data from a string in a cell

  1. #1
    Registered User
    Join Date
    02-05-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Thumbs up Pulling data from a string in a cell

    I have to put together a spreadsheet that lists the brand dame and product description in seperate tabs. Unfortunately, the brand name and description are wedged together in one cell (EXAMPLE: 13oz, 3 quantity Goya refried beans). What formula can I use to pull 'Goya' from the string and put it in another cell ( Something like =IF(C4 contains "Goya" in the string then C2 = "Goya))

    Any help on this matter would be greatly appreciated.

    Thanks,

    MSP

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Pulling data from a string in a cell

    This is a can of worms about to be opened, because Goya is not the only product you want to search for....
    To avoid wasting valuable time, supply a sample workbook, including the products you want to search for.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Pulling data from a string in a cell

    Put this in C2:

    =IF(ISNUMBER(SEARCH("Goya", C4)), "Goya", "")

    ...but as Dave mentioned, I imagine this is just the beginning... ugh.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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