+ Reply to Thread
Results 1 to 6 of 6

IF Column Contains Text Matching Another column then return Values from second sheet.

Hybrid View

3ch IF Column Contains Text... 07-31-2014, 10:12 AM
Hawkeye16 Re: IF Column Contains Text... 07-31-2014, 10:18 AM
3ch Re: IF Column Contains Text... 07-31-2014, 11:15 AM
hoyasaxa215 Re: IF Column Contains Text... 07-31-2014, 11:38 AM
3ch Re: IF Column Contains Text... 08-01-2014, 04:31 AM
hoyasaxa215 Re: IF Column Contains Text... 07-31-2014, 11:37 AM
  1. #1
    Registered User
    Join Date
    07-31-2014
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    3

    Lightbulb IF Column Contains Text Matching Another column then return Values from second sheet.

    Hi,

    I am really stuck on this one. I have a large stock sheet which one column has brand codes in it.

    GCT
    SCJ
    CCT
    HTS
    ETH

    These correspond to another tab on the sheet which references what these brands full names are:

    GCT Grow Cube Tent
    SCJ Secret Jardin Tent
    CCT Clone Cube Tent
    HTS HortiTechnics
    ETH Edward Trimmer Hands

    I need to set a column so that if the column on the main sheet contains the abbreviated code then it will return the full brand name.

    excel help 1.jpgexcel help 2.JPG

    I have over 30 brand names so the IF string started to become unworkablely large.

    Any help greatly appreciated.

    Thanks

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: IF Column Contains Text Matching Another column then return Values from second sheet.

    It helps if you post an excel file

    an Index/Match or Vlookup should work for you. Something like this.

    =INDEX(long name range from sheet2, MATCH(short name from sheet1, short name range from sheet2, 0))
    Despite the high cost of living, it remains very popular.

    Don't forget to mark threads SOLVED when you get an answer and rep all the geniouses that helped you today!

  3. #3
    Registered User
    Join Date
    07-31-2014
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    3

    Angry Re: IF Column Contains Text Matching Another column then return Values from second sheet.

    Alex for BP Import - excel help.xlsx

    Thanks for your help i have now attached the file. When I have tried your code it always gets the first brand OK but I can not copy this down to subsequent rows (1500+) I get an error. Thanks for your help,

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: IF Column Contains Text Matching Another column then return Values from second sheet.

    See attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-31-2014
    Location
    London
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: IF Column Contains Text Matching Another column then return Values from second sheet.

    Thanks a lot for your help. Really appreciate it it worked flawlessly and save me a lot of time.

  6. #6
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: IF Column Contains Text Matching Another column then return Values from second sheet.

    Lock the cell references.

    =INDEX('Brand Code'!$B$3:$B$79, MATCH('Stock sheet'!$E$3:$E$1128, 'Brand Code'!$A$3:$A$79, 0))

+ 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. Replies: 4
    Last Post: 03-23-2014, 09:40 AM
  2. Replies: 0
    Last Post: 02-01-2013, 03:24 AM
  3. [SOLVED] Formula to match data in different sheets ( multi column) and return matching values
    By kangyao in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2013, 07:38 PM
  4. Replies: 2
    Last Post: 10-08-2012, 02:17 PM
  5. Replies: 3
    Last Post: 11-24-2011, 07:21 AM

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