+ Reply to Thread
Results 1 to 18 of 18

Need help with lookup functionality

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Need help with lookup functionality

    Please see the attachment.

    In cell G12 a category is selected via dropdown. In cell H12, a color is selected via dropdown (contingent list).

    What formula goes into cell I12 to return the correct Price?

    Thank you.
    Attached Files Attached Files
    Last edited by boothexcel; 03-29-2013 at 07:25 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need help with lookup functionality

    Hi and welcome to the forum

    try this...
    =INDEX($A$1:$F$5,MATCH(H12,$A$1:$A$5,0),MATCH(G12,$A$1:$F$1,0)+1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Need help with lookup functionality

    Thank you FDibbins - that works for BATCH1, but not for BATCH2 or BATCH3, any other ideas?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need help with lookup functionality

    Try this

    =INDEX(INDEX($A$2:$F$5,,MATCH(G12,$A$1:$F$1,0)+1),MATCH(H12,INDEX($A$2:$F$5,,MATCH(G12,$A$1:$F$1,0)),0))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Need help with lookup functionality

    ChemistB - baller. Thank you.

  6. #6
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Need help with lookup functionality

    ChemistB,

    How about this format?

    Thanks
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need help with lookup functionality

    Quote Originally Posted by boothexcel View Post
    Thank you FDibbins - that works for BATCH1, but not for BATCH2 or BATCH3, any other ideas?
    It worked with all 3 batches for me? what answer where you getting back?

  8. #8
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Need help with lookup functionality

    It seems to work for all 3 batches, but not when adjusting colors for all 3 batches.

    The solution that ChemistB provided works.

    I have posted an alternate setup as well; looking for a solution to that arrangement. Thanks.

  9. #9
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need help with lookup functionality

    Hi boothexcel

    Try the VLOOKUP in I12.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  10. #10
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need help with lookup functionality

    Hi boothexcel

    Open the wrong file! Try in F20 in the file you attached in post 6#

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Need help with lookup functionality

    Hi Kevin UK, thank you. It seems to work except for the first color in each Batch. Thoughts?

  12. #12
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need help with lookup functionality

    Hi boothexcel

    Sorry my mistake, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Need help with lookup functionality

    Kevin UK, thank you, fantastic

  14. #14
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need help with lookup functionality

    No problem boothexcel and thanks for the feed back.

  15. #15
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Need help with lookup functionality

    Kevin UK,

    How would your formula change if each Batch had a different number of colors?

  16. #16
    Registered User
    Join Date
    03-28-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Need help with lookup functionality

    Kevin UK,

    For Batches with different numbers of colors, I made each batch have a row height equal to the largest number of colors (some cells were blank), and then adjusted your formula for the offset height to reflect the row height. Works 4.0. Thanks to all for the assist, much appreciated.

  17. #17
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need help with lookup functionality

    Hi boothexcel

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  18. #18
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need help with lookup functionality

    No that will not will not work.
    You mightbe better off keeping things simple. if you keep the data like you had it in your first post you could set the ranges to be dynamic.
    Last edited by Kevin UK; 03-29-2013 at 10:24 AM.

+ 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