+ Reply to Thread
Results 1 to 5 of 5

Creating a SUM when choosing a option from a Drop Down List

  1. #1
    Registered User
    Join Date
    05-20-2014
    Posts
    16

    Creating a SUM when choosing a option from a Drop Down List

    Hello,

    I am a online seller and require my speadsheet to calculate a SUM once a option has been chosen from a drop down list.

    For example I have 4 options in Cell D2:

    Power Tools
    Home & Garden
    Vehicle Parts & Accessories
    Business Office & Industrial

    Once one of these have been selected I require a SUM to be created in Cell G2. I have added the sums for each different category below:

    Power Tools - =SUM(J2*0.04348)
    Home & Garden - =SUM(J2*0.0957)
    Vehicle Parts & Accessories - =SUM(J2*0.06957)
    Business Office & Industrial - =SUM(J2*0.0957)

    Is there any way to do this?

    Thank you in advance

    Luke

  2. #2
    Registered User
    Join Date
    01-07-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Creating a SUM when choosing a option from a Drop Down List

    Create a tab (sheet1) with each of these formula as column A Options "Power Tools etc." and Column B Formula itself.

    Then on cell G2 type this.

    =VLOOKUP(D2,Sheet20!A:B,2,FALSE)

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Creating a SUM when choosing a option from a Drop Down List

    With
    K1:L4 containing this list
    Please Login or Register  to view this content.
    and
    D2: a data validation cell that uses the list in K1:K4

    This regular formula uses the D2 selection to specify the Col_L value to use in the calculation
    Please Login or Register  to view this content.
    Note: The SUM function is unnecessary because you aren't adding any values together

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Creating a SUM when choosing a option from a Drop Down List

    Like this? I'm not sure what you meant by SUM, though...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    05-20-2014
    Posts
    16

    Re: Creating a SUM when choosing a option from a Drop Down List

    Thank you guys, all sorted now. Saved me from pulling my hair out.

    I had got =SUM as this is what I was using previously. This is why I was going around in circles trying to get this to work.

    Anyhow thank you very much for your help. It's much appreciated.

    Regards
    Luke

+ 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. How to get corresponding information to show when choosing from drop down list.
    By anna.ring425 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2012, 11:30 AM
  2. Replies: 3
    Last Post: 04-16-2012, 10:14 PM
  3. Macro: choosing a drop down list from another drop down list list!
    By 123wc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2011, 09:56 AM
  4. Replies: 2
    Last Post: 10-20-2011, 05:19 PM
  5. Choosing multiple items in a drop down list
    By Shad in forum Excel General
    Replies: 8
    Last Post: 08-16-2006, 10:15 PM

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