+ Reply to Thread
Results 1 to 10 of 10

Concatenate and Vlookup

  1. #1
    Registered User
    Join Date
    02-12-2008
    Posts
    5

    Concatenate and Vlookup

    Hi

    I plan to use a category worksheet with Different Concatenate formulas to display products in different ways in a web store. I call up the Concatenate in the categories worksheet via a category number from the pricelist via Vlookup. This is okay.

    One of the display formulas I have in the categories worksheet is

    =CONCATENATE(p!D2,p!BM2,p!D2,p!BO2,p!D2,p!A2,p!D2,p!BS2,p!D2,p!B2,p!D2,p!BK2)
    It shows "Eau De Toilette Spray by Carolina Herrera for Women"
    Data taken from the pricelist.

    The Above product is on Row 2.

    I use the below in the pricelist to call the above Concatenate to give me the format I need for that item in the pricelist.
    =(VLOOKUP(BQ2,'CATEGORY TABLE'!$A$1:$AH$4000,8,FALSE))
    (bq2 is the lookup value as each Items belongs to a category)

    How do I use the concatenate to display different products with the concatenate, Eg row's 3, 4, 5 are different items but it displays the same info as row 2 because I think it's taking the data already filled out in the formula that is on the category worksheet I use. Do I do a vlookup with the concatenate in the pricelist and don't use concatenate in the categories table like I have to then lookup the cell values. Or do I use the indirect function.

    Any help would be muchly appreciated as my current spreadsheet is crashing my pc. Eg using nearly 3gb of ram due to 6 columns with about 3 dozen different variations of the above concatenate and many if formulas. On 10,000 rows.

    Regards,
    Aaron

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Aaron

    Can you put up a sample workbook that shows your structure and some data. Give an example of what you would like to return from that sample data.


    rylo

  3. #3
    Registered User
    Join Date
    02-12-2008
    Posts
    5
    Hi Rylo,

    Thanks for getting back to Me.
    I've uploaded a sample spreadsheet.

    I have only put one category for the output as the file will be to large if I add
    anymore than this.

    If you look at the pricelist worksheet, you will see the correct data on Row 2.
    Joop, next is Jazz on Row 3 but the data in the short name is the same as
    row 2. The formula is okay, but the data is Row 2's.

    I muchly appreciate your Help.

    Regards,
    Aaron

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902
    You may want to try uploading it again.

    Remember, it must be an zipped Excel file (preferably XL2003).

    After you select your file, you have to click Upload to actually load it into the forum and then close the dialogue box.
    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.

  5. #5
    Registered User
    Join Date
    02-12-2008
    Posts
    5
    Thanks Nbvc.

    Have upload as a Zip. Unfortunately it's in Excel 2000.

    Regards,
    Aaron
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902
    Not sure I follow your sample...

    How do you expect to jet Jazz, Opium? You are looking up the category number, which is 1 for all 3 and that references only 1 line in the category sheet.

    Perhaps you should show more sample data and more clearly state what you wish to have happen.

  7. #7
    Registered User
    Join Date
    02-12-2008
    Posts
    5
    Hi Nbvc,

    This is the problem I'm having,

    In this instance Rows 1,2 and 3 in the pricelist worksheet, lookup row 1 which is category 1.

    They all return the same result as I think because itís pre filled out in the category Worksheet.

    In the pricelist they should display

    Row 1 Joop Cologne for men by Joop in a EDT Spray
    Row 2 Jazz Cologne for men by Joop in a EDT Spray
    Row 3 Opium Cologne for men by Joop in a EDT Spray

    If a product were say on row 500 in the pricelist and it was selected as category 1. It should display the product name from row 500 in the pricelist using the formula from row 2 (cat 1) in the categories worksheet.

    If a product was on row 200, 700 Etc and linked to category 2 which would be below Cat 1 they would use that concatenate formula Row 3 (cat 2), get the data from row 200 and 700 and output it in the pricelist on those rows
    200 and 700 in Column D.

    I donít know if having the concatenate with vlookup in the pricelist and just the cells to range without the concatenate in the categories worksheet will work? Or an indirect?

    I hope the above helps. Iíve read John Walkenbachís excel formulas twice and tried to have the concatenate with the vlookup but keep getting formula errors.

    Regards,
    Aaron

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902
    Still quite confusing....

    Can you resend your workbook with more data filled out indicating what is given and what you want to get....

  9. #9
    Registered User
    Join Date
    02-12-2008
    Posts
    5
    Hi NBVC,

    I've uploaded an updated spreadsheet with what is required to be output.
    Basically the output format is correct. Eg taken from the categories table. The fixed part is, but not the name from Column A in the pricelist. If a product is on row 1000 and category 1 is selected, it needs to lookup cat 1 in the categories table, use the concatenate for that category and take the name in this example from row 1000.

    What is happening at the moment is it's looking up cat one, which is on row 2, but because it's pointing to Pricelist A2 it's outputting that in all outputs.
    Eg row 3, 4, 5 etc.

    I'm lost with how to to have a vlookup and concatenate (indirect) together instead of vlookup on it's own looking up a pre-filled concatentate?

    Someone suggested the below, but I havn't been able to grasp getting it to work.
    http://www.excelforum.com/showthread.php?t=578236

    You will probably need to concatenate the full path-range in a cell and then use VLookup(value,Indirect(cell),col-index,type)

    Regards,
    Aaron
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Aaron

    Still not making sense to me.

    Can you forget about the formulas, and for all the data given, fill in the Category Table sheet completely manually, then explain what criteria was used to get the relevant data from the source.

    As an example, you have 3 items for category 1. How / where on the output sheet should those 3 items be shown.


    rylo

+ 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