+ Reply to Thread
Results 1 to 10 of 10

VLOOKUP multiple cells

  1. #1
    Registered User
    Join Date
    06-19-2015
    Location
    Herefordshire
    MS-Off Ver
    2010
    Posts
    20

    VLOOKUP multiple cells

    Hi.

    I have about 10 tables (each the same size - about 15 x 6 cells - but with different content). I want to insert these on a different sheet according to their description.

    So I want my table on SHEET3! to achieve this: If Sheet2!A1 = Sheet1!A1 then table 1, etc.

    I set about writing a massive IF formula but gave up.

    Can anyone help?

    Cheers, Rob

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: VLOOKUP multiple cells

    Hi -

    I'm not entirely clear on what you're wanting for a result. Can you post an example with 3 or 4 sheets and a 5th sheet where you would show the output you want?
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    06-19-2015
    Location
    Herefordshire
    MS-Off Ver
    2010
    Posts
    20

    Re: VLOOKUP multiple cells

    Hi, many thanks.

    I have tried to attach several documents but I am very confused by the site. Sorry.

    If there is an attachment, I need to publish the INFO sheet which needs references from PRICING and PRODUCTS.

    I sincerely hope this helps.

    My best, Rob
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: VLOOKUP multiple cells

    OK - I have the Progress Workbook you uploaded, but I still need a little more detail.

    What cell on the INFO sheet do you want something to show that would come from the PRICING and PRODUCTS sheet. And, what cell on the PRICING and PRODUCTS sheet would this information come from? For example, tell me something like "On the INFO sheet, cell L56, I want the total amount shown on PRICING sheet, cell S169 to show up and it should read 3850.00." Or something to that effect.

  5. #5
    Registered User
    Join Date
    06-19-2015
    Location
    Herefordshire
    MS-Off Ver
    2010
    Posts
    20

    Re: VLOOKUP multiple cells

    Hi. Many thanks.

    I have highlighted the wishlist in yellow on the PRODUCTS sheet.

    Every product has its own description on PRODUCTS. I need that description to appear on INFO when I select the product from PRICING.

    Fingers crossed! And all my thanks,

    Rob

  6. #6
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: VLOOKUP multiple cells

    OK - I think I see what you are wanting. We will use MATCH and INDEX functions to have Excel look up the information from the Products Sheet based on whatever product is selected in the Pricing sheet. So in Cell L7 we have the following formula:

    =INDEX(Products!$F$2:$F$444,MATCH($E$6,Products!$B$2:$B$444,0)-(13-ROW(1:1)))

    MATCH looks in Column B of the Product sheet and returns the row number of the end of the product data (which is how you have your data organized). Then INDEX Looks in Column F to return the specification category (e.g., Length) for the product. Since the data is organized in reverse order on the PRODUCT sheet versus how you want it shown on the INFO sheet, I have to use the number 13 (which is how many lines of data each solar panel has) and then I want to subtract from there to go to the top of the list which is why I have the ROW function in there. When you copy the formula down, the ROW function automatically increments. The next column on the INFO Sheet has almost the exact same formula, but this time INDEX looks in the next column to the right on the PRODUCT sheet to get the actual specification (e.g., 990). That formula looks like this:

    =INDEX(Products!$G$2:$G$444,MATCH($E$6,Products!$B$2:$B$444,0)-(13-ROW(1:1)))

    So the long and short of it is you should just be able to change the product on the Pricing sheet and the data on the Info sheet should update automatically. I didn't do the whole thing, just columns L, M, and N on the INFO sheet. You would do the same thing for the inverters. The first cell (L22) would look like this:

    =INDEX(Products!$F$2:$F$444,MATCH($E$31,Products!$B$2:$B$444,0)-(10-ROW(1:1))) and copy down.

    Note the inverters only have 10 lines of data so we are subtracting 10 rows from the row of the product name to go to the top of the list of data.

    I have attached a copy of your spreadsheet. As I said I haven't completed all of it so you have a bit of work to do to finish it. Also, some of your formatting will need to be fixed (bold type, column widths, etc.)

    Hope this helps. Please post back here if you have any trouble.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-19-2015
    Location
    Herefordshire
    MS-Off Ver
    2010
    Posts
    20

    Re: VLOOKUP multiple cells

    You are a lovely man. Sorry person. You are equally as lovely if you are a woman.

    I shall brew the coffee and light the midnight oil!

    Many thanks.....

    - may as well be honest, it'll probably be Jacob's Creek.

  8. #8
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: VLOOKUP multiple cells

    You're welcome Rob. I don't know about lovely, but I am a man.

    Be sure to mark this thread as SOLVED if you are satisfied with the result.

  9. #9
    Registered User
    Join Date
    06-19-2015
    Location
    Herefordshire
    MS-Off Ver
    2010
    Posts
    20

    Re: VLOOKUP multiple cells

    Hey LJ. I think I've got there. There were problems with spaces and spelling - all my own fault of course - but I know how to solve them now.

    Many thanks.

    I will mark this as solved with pleasure, respect and gratitude.

    I can't get the pictures to go in, any ideas? The return of the pain in the ***!! I have an online tutorial but it seems that I need identical sized cells to use index/match. I don't have this.

    Anyway, and in any case, all my best, Rob

  10. #10
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: VLOOKUP multiple cells

    Hi Rob -

    Getting the pictures to change will take a little bit of work. But not too terrible. I would add another sheet to your workbook called "Pictures". Then, insert each picture you want to use on that sheet, each within 1 cell. Size the pictures to whatever size you want it to be, and resize each cell to match the picture size. Then you are going to do something that is pretty cool (and I just learned this today while researching your problem). You are going to create some names in your workbook for each picture and then you are going to use the INDIRECT command to switch the pictures on your Info form based on what is picked in your Pricing sheet. The following is a link to some instructions on how to do it. It's a teensy bit confusing at first, but I did get it to work - you just need to follow the instructions and read them carefully so you understand each step.

    http://excel.tips.net/T003128_Displa..._a_Result.html

    If you have trouble, just message me and I can help.

    Good luck!

+ 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. [SOLVED] Sum of multiple VLOOKUP cells in the row with some cells are blank
    By thup_98 in forum Excel General
    Replies: 3
    Last Post: 12-23-2015, 04:23 AM
  2. [SOLVED] vlookup for multiple cells
    By DollyMehta in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2015, 01:08 AM
  3. [SOLVED] Using vlookup to look up multiple cells??
    By Scarab1963 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 08:50 AM
  4. VLookup - Return multiple values in multiple cells HELP
    By sreeves1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 12:58 PM
  5. How to do VLOOKUP with multiple cells
    By jshrader in forum Excel General
    Replies: 10
    Last Post: 09-09-2009, 03:10 PM
  6. Vlookup to sum multiple cells
    By donkeykong in forum Excel General
    Replies: 2
    Last Post: 06-17-2009, 03:33 PM
  7. [SOLVED] Vlookup on multiple cells
    By Debbie in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-29-2006, 04:10 PM

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