+ Reply to Thread
Results 1 to 7 of 7

User Iput via Dropdown Box and then Separate Cell Calculates based on Options Chosen

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    User Iput via Dropdown Box and then Separate Cell Calculates based on Options Chosen

    Hello all,

    This is my first post here and I'm hoping somebody can help me out:

    I'm trying to create a spreadsheet that allows me to have multiple dropdown boxes (ie. color, make, Type) and within each dropdown box have different options (ie. red, blue, yellow; Toyota, Honda, Lexus; SUV, sedan) and based on those inputs have a separate cell perform a calculation using input from a standard table of values (ie. Cost). For this example, if I were to choose Red, Toyota, SUV, I would receive a calculation back on the car's value. I tried using a large data table with the different headers and multiple if statements, but that didn't work out very well...

    Any help/tips would be greatly appreciated!

    Thanks!

  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,929

    Re: User Iput via Dropdown Box and then Separate Cell Calculates based on Options Chosen

    Hi and welcome to the forum )

    I would suggest that you combine all the answers from the D/D in 1 cell (you can hide that if you want. And then use a helper column newxt to the table with all teh data in it, and do the same thing there for each cell. then you can do index/match against the helper
    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
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: User Iput via Dropdown Box and then Separate Cell Calculates based on Options Chosen

    Can you post a SMALL sample file so we can see how your price table is setup?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    05-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: User Iput via Dropdown Box and then Separate Cell Calculates based on Options Chosen

    Tony, I am not sure how I can post a sample file. I've seen other people do it before on the forum but I'm not familiar with how to do this. Can you refer me to any instructions?

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: User Iput via Dropdown Box and then Separate Cell Calculates based on Options Chosen

    It's not exactly what I would call "intuitive". Here's what it says in the forum FAQ:

    How do I attach a file to a post?

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'. To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'. Clicking this button will open a new window for uploading attachments. You can upload an attachment either from your computer or from another URL by using the appropriate box on this page. Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file. To upload a file from another URL, enter the full URL for the file in the second box on this page. Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window. You can then close the window to return to the new post screen.

    What files types can I use? How large can attachments be?

    In the attachment window you will find a list of the allowed file types and their maximum sizes. Files that are larger than these sizes will be rejected. There may also be an overall quota limit to the number of attachments you can post to the board.

  6. #6
    Registered User
    Join Date
    05-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: User Iput via Dropdown Box and then Separate Cell Calculates based on Options Chosen

    I hope I did this right...
    Attached Files Attached Files

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: User Iput via Dropdown Box and then Separate Cell Calculates based on Options Chosen

    Try this...

    Fill in the color cells so that every cell contains a color:

    B3:B6 = Red
    B7:B8 = Blue
    B9:B11 = Black
    B12:B14 = White

    Then, enter this array formula** in K13:

    =MAX(0,IFERROR(INDEX(D3:G14,MATCH(K3,IF(C3:C14=K4,B3:B14),0),MATCH(K5,D2:G2,0)),0)-N(K10))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Where some combinations are not available the formula will return 0. For example, there is no blue Lexus so the result will be 0.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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