+ Reply to Thread
Results 1 to 9 of 9

Linking to Database using MATCH and dropdown List

Hybrid View

  1. #1
    Registered User
    Join Date
    11-20-2012
    Location
    NZ
    MS-Off Ver
    Excel 2011
    Posts
    10

    Linking to Database using MATCH and dropdown List

    Hi

    I'm trying to set up a price list, part of which is controlled by a drop down box. The idea is that you select a hardware range from a drop down box at the top of the sheet and the list below updates with the relevant range and pricing automatically.

    I've attached a sheet which shows what I'm trying to do - which was easier than trying to explain it!

    I'd appreciate it if anyone could point me in the right direction as I have been trying to use the MATCH function and it refuses to work for me.

    I'm creating the sheet on excel for windows but it will need to run on Mac 2011 so can't contain any VBA

    Thanks

    Paul
    Hardware Sheet.xls

  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
    53,049

    Re: Linking to Database using MATCH and dropdown List

    Hi, welcome to the forum

    A few questions/comments/observaqtions...
    1. Using red fill like that can be really hard on the eyes
    2. MATCH will return a row (or column) number, nothing more
    3. Do you want to have the DD in B7, and then have B11 (and some other columns) populate accordingly?
    4. Do you know how to make the DD?

    Assuming Yes in 3 and 4...
    B11=INDEX(Database!$B$9:$B$32,MATCH("*"&Pricing!$B$7&"*",Database!$B$9:$B$32,0)+ROW(A1)-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
    11-20-2012
    Location
    NZ
    MS-Off Ver
    Excel 2011
    Posts
    10

    Re: Linking to Database using MATCH and dropdown List

    Hi

    Still don't seem to be able to get this to work Ford, where should the formula you gave me go?

    Maybe I've set up the DD wrong?

    Regards

    Paul

  4. #4
    Registered User
    Join Date
    11-20-2012
    Location
    NZ
    MS-Off Ver
    Excel 2011
    Posts
    10

    Re: Linking to Database using MATCH and dropdown List

    Thanks Ford

    Sorry about the red - didn't consider that

    Yes to 3, and I think so to 4

    Regards

    Paul

  5. #5
    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
    53,049

    Re: Linking to Database using MATCH and dropdown List

    OK, cool. Did you try my suggested formula?

  6. #6
    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
    53,049

    Re: Linking to Database using MATCH and dropdown List

    Did you miss this part?

    Assuming Yes in 3 and 4...
    B11=INDEX(Database!$B$9:$B$32,MATCH("*"&Pricing!$B$7&"*",Database!$B$9:$B$32,0)+ROW(A1)-1)

  7. #7
    Registered User
    Join Date
    11-20-2012
    Location
    NZ
    MS-Off Ver
    Excel 2011
    Posts
    10

    Re: Linking to Database using MATCH and dropdown List

    Hi

    I've got the code right but still struggling. I think I need to link each range name to the corresponding items in the range?

    So when you select Kytin Range in the DD it populates B11 to B14 with the items from B9 to B12 in the Database and F11 to F14 with prices from D9 to D12 in the database.

    and if you then select titan range in the DD it populates B11 to B14 with the items from B29 to B32 in the Database and F11 to F14 with prices from D29 to D32 in the database.

    Or am I trying to do something excel can't

    Paul
    Hardware Sheet.xlsx

  8. #8
    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
    53,049

    Re: Linking to Database using MATCH and dropdown List

    1. Delete the ComboBox that you have there, DropDowns are easier/simpler to work with for something like this.
    2. Remove " Range" from the list on DataBase
    3. click back onto Pricing B7
    4. Click Data tools on the ribbon, click Data Validation/click Data Validation
    5. Allow - List
    6. Source = Database!$A$9:$A$12
    7. Click OK

    You should now be able to select an item from the DD, and have the Hardware update.

    I would expect that you want the price pulled in, too?
    =INDEX(Database!$D$9:$D$32,MATCH("*"&$B$7&"*",Database!$B$9:$B$32,0)+ROW(A1)-1)

  9. #9
    Registered User
    Join Date
    11-20-2012
    Location
    NZ
    MS-Off Ver
    Excel 2011
    Posts
    10

    Re: Linking to Database using MATCH and dropdown List

    Thanks Ford

    That's absolutely awesome - exactly what I needed. I was way off on how I was approaching it!

    Cheers

    Paul

+ 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. Adding Match to a formula and unique list in dropdown box
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 02-06-2015, 10:00 AM
  2. Linking a dropdown list to associated data
    By PeterNJ in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-05-2015, 05:11 PM
  3. dropdown list to match a criteria
    By salimnore in forum Excel General
    Replies: 10
    Last Post: 08-07-2014, 08:47 PM
  4. Multiple linking dropdown list
    By jwstimac in forum Excel General
    Replies: 2
    Last Post: 04-03-2013, 09:40 PM
  5. [SOLVED] Linking email address to a specific DropDown List value
    By lplaforest in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2012, 11:46 AM
  6. Linking cell color to dropdown list values
    By gessie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2008, 08:05 AM
  7. linking 2 dropdown list
    By mariusescu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2007, 04:56 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