+ Reply to Thread
Results 1 to 3 of 3

Linking drop down menus to calculations

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Thumbs up Linking drop down menus to calculations

    Hello,

    I'm brand new to the site so hello to all,

    I have the following query. I'll try to explain it as best that I can.

    Imagine a simple excel file. In column "A" there is a drop down menu for each line (for eg the options are "Sales" and "Expenditure")

    Column "B" has NO drop down and I simply enter numerical values as required.

    So imagine line 2 I select "Sales" in column A and enter a value of $200.00 in column B

    Then in line 3 I select "Expenditure" in column A and enter a value of $300.00 in column B

    And so on for maybe 30 or 40 lines or more alternating between options "sales" and "expenditures" and entering various $ values.

    Now, here comes the query. Imagine, in another worksheet, that I wanted to calculate the $ value for either "sales" or "expenditure". How could I do that? I know I could easily just use a filter on column A to calculate the value but I need to generate a more substantial file than that.

    I hope my above explanation is coherent. If not please let me know and I'll try explain myself a bit better. Also I hope I am in the correct forum section??? Perhaps I should be in the Macros section (until I know the answer unfortunately I don't really know what section I should be in).

    Any information would be gratefully appreciated - even if someone could direct me to an online source of info on the topic I would be greatly appreciative.

    Thanks in advance

    Mark

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Linking drop down menus to calculations

    hi Mark, welcome to the forum. assuming your data is in Sheet1 A1:B10 & you are doing your formula in Sheet2. You can also have a dropdown in say A2 & do this in B2:
    =SUMIF(Sheet1!$A$2:$A$10,A2,Sheet1!$B$2:$B$10)

    that way, you can change A2 to Expenditure & it'll work. or you can also exclude A2 & key it manually in the formula:
    =SUMIF(Sheet1!$A$2:$A$10,"Sales",Sheet1!$B$2:$B$10)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Linking drop down menus to calculations

    Many thanks benishiryo,

    Really appreciate it. Will try that now.

    Many thanks

    Mark

+ 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