?
Solved

MS Excel 2007 - Sum $ amount for my filtered selection.

Posted on 2012-04-06
2
Medium Priority
?
293 Views
Last Modified: 2012-04-06
How do I add a cell to sum up the value that I select in a filter?

I have a list locations and $ amounts. Each location has its own dollar amount. The column headers for this data has the drop down filter turned on.  I want to add to my spread sheet a cell that sums the dollar values for the location that I select in from my filter.  If I select from my filter Albany I want the summary cell to only total Albany $ amounts. If I change to a new location the sum should change accordingly.

SUM: $926,000

Location      Amount            
Albany      $340,000
Albany      $123,000
Rensselaer  $456,234
Rensselaer $156,000
Saratoga      $340,000
Saratoga      $123,000
Albany      $340,000
Albany      $123,000
Rensselaer $456,234
Rensselaer $156,000

I know I can do this with a Piviot table  or insort subtotals into the data. My question is specific to summing data for a selected filter.

Thanks for your assistance
Ldufresne
0
Comment
Question by:Lou Dufresne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
Norie earned 2000 total points
ID: 37816270
Try SUBTOTAL.

=SUBTOTAL(9,B3:B12)

Where B3:B12 is the range with the dollar amounts.
0
 
LVL 1

Author Closing Comment

by:Lou Dufresne
ID: 37816620
Can you please tell me what the "9" is in the formula  =Subtotal(9,B3:B12)

Other than that the fornula works great.

Thanks
Ldufresne
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question