+ Reply to Thread
Results 1 to 4 of 4

Formula to calculate totals depending on Drop Down Menu

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formula to calculate totals depending on Drop Down Menu

    Hey All,

    I am an excel newbie and was hoping one of you could please help me with my spreadsheet?

    I have an expense report that our employees use to tabulate all their expenses both on company credit card and out of pocket. What I am hoping to do is for the spreadsheet to calculate how much is out of pocket and how much is on the company credit card depending on whether they choose one of the two from the drop down menu? Also to be added to the formula is the amount we owe them in Per Diems from colum D50

    I want the totals to show at J40 for out of pocket (including the per diem D50)
    and J41 for the credit card

    I really look forward to hearing from you

    Kind Regards
    Heather Norris
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Formula to calculate totals depending on Drop Down Menu

    Hello Norris,

    Look at the SUMIF function in excel help.

    J40,

    =SUMIF(G7:G37,"out of pocket",C7:C37)+D50

    J41,

    =SUMIF(G7:G37,"Amex",C7:C37)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Formula to calculate totals depending on Drop Down Menu

    You want something like:

    =SUMIF(G7:G37,"Amex",C7:C37)

    to get the credit card total, and:

    =SUMIF(G7:G37,"Out of pocket",C7:C37) + D50

    for the other expenses.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    07-17-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formula to calculate totals depending on Drop Down Menu

    Thank you both for your prompt responses! Expense report is now done

    Cheers
    Heather

+ 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. Drop down menu depending on another drop down
    By gjergji in forum Excel General
    Replies: 3
    Last Post: 12-03-2012, 08:12 PM
  2. Replies: 0
    Last Post: 11-10-2012, 11:05 AM
  3. Replies: 2
    Last Post: 08-31-2012, 04:00 AM
  4. add totals via drop down menu
    By excellentexcel in forum Excel General
    Replies: 9
    Last Post: 01-15-2009, 05:12 PM
  5. Show a certain cell depending on data from a drop down menu.
    By trueplayer31 in forum Excel General
    Replies: 13
    Last Post: 01-15-2009, 08:33 AM

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