+ Reply to Thread
Results 1 to 5 of 5

Searching for data in a cell

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    John
    MS-Off Ver
    Excel 2010
    Posts
    3

    Searching for data in a cell

    A customer sent an excel spreadsheet with all the data merged into column A. I'm trying to find a specific code in the cell and return only that code. For example,


    A1

    51354070-CCD YSE, MDC2, GMC TRANSITION item5264.54.8131 Made in: America



    I want to return only the value "5264.51.8131" in Column B and "America" in Column C.


    Problem, they are never the same amount of characters in the cell, so I believe I can't do text to columns. At least, there's nothing to deliminate anything that I can think of. The number I want will always have the format "****.**.****" The Text I want will always be after the ":".

    Please let me know if this make sense. Thank you.
    Last edited by SteveClank; 03-15-2012 at 09:21 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Searching for data in a cell

    is the number always after the word item?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-14-2012
    Location
    John
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Searching for data in a cell

    I wish there was...there is no standard before the number. Sometimes it's a letter, sometimes it's a number, sometimes it's a space. There's no uniformity to it.

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Searching for data in a cell

    with a couple of assumptions:
    1- a "." only appears in the number portion
    2- number is always the same format
    3- "Made in:" is always preceeding the country and the last item in the string

    you can use this

    in Column B:
    =MID(A1,FIND(".",A1)-4,12)

    in Column C:
    =MID(A1,FIND("Made in:",A1)+9,100)
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  5. #5
    Registered User
    Join Date
    03-14-2012
    Location
    John
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Searching for data in a cell

    Thank you for your help. It mostly solved the problems. The only issue came with assumption one. I thought it was only periods in the numbers, but when I went through the list there were 2 rows that had additional periods. However, this solved 98% of problems. Thank you.

+ 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