+ Reply to Thread
Results 1 to 5 of 5

Searching cell for text in specific location and pasting result in another cell

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2007
    Posts
    24

    Searching cell for text in specific location and pasting result in another cell

    I have a sheet that contains model names and model numbers. I need to loop through each row and do the following:

    If model name in column a is "Orange" and the tenth digit in column b is "5" then enter "Model 1" in column c

    or if model name in column a is "Apple" and the sixth digit in column b is "C" and the tenth digit in column b is "5" then enter "Model 2" in column c
    Attached Files Attached Files
    Last edited by AWM1966; 09-14-2012 at 12:00 AM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Searching cell for text in specific location and pasting result in another cell

    This can be done with a formula. In cell C3, paste this:

    Please Login or Register  to view this content.
    copy/autofill down.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    09-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Searching cell for text in specific location and pasting result in another cell

    Thanks for the quick response. That works perfectly. One question, could the formula be ammended to add a third or fourth condition such as:

    If model name in column a is "Grape" and the tenth digit in column b is "7" then enter "Model 3" in column c

    or if model name in column a is "Apple" and the sixth digit in column b is "D" and the tenth digit in column b is "7" then enter "Model 4" in column c?

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Searching cell for text in specific location and pasting result in another cell

    Try this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2007
    Posts
    24
    This worked perfectly. Really appreciate your help!

+ 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