Solved

Subtotals in Excel

Posted on 2013-05-22
9
163 Views
Last Modified: 2013-05-23
See attached spreadsheet.

We want totals of the cost by the task.

Note that I manually did the first one (br01).

Is there a way to do this automatically without manually entering the formula? Note that in many cases, there is only ONE part so obviously the total is just the one part.
Parts-N-Task-23.xls
0
Comment
Question by:Richard Korts
  • 5
  • 4
9 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39188694
rkorts,

You can use either the Data / Outline / Subtotal feature, or Insert / Tables / PivotTable feature.

That said, I have a question about the methodology.  Consider br100.  Simply adding the values in B13 and B14 does not seem appropriate, as the quantities for both are not equal to one.

Do you actually need the sum of the products of the cost and quantity columns?

Patrick
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39188738
Assuming my last sentence above is accurate...

Add a new column to your data, labeled "Amount", with formula:

=B2*D2

Copy down as needed.

Now, create a PivotTable, with Task as the row field, and (sum of) Amount as the data field.
0
 

Author Comment

by:Richard Korts
ID: 39188799
matthewspatrick

Yes, you are right, it is b2*d2 (per part).

I can;t understand how I do a pivot table. I tried, it makes no sense (does not give me row field / data field.

Can you explain?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 39188947
I just made a quick video of how to do this:

http://www.screencast.com/t/pGGfKnPhuP
0
 

Author Closing Comment

by:Richard Korts
ID: 39191125
Thanks for the video; it still took some doing.

I had the Amount column one more column to the right; doesn't work
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39192331
When you use a range as the source for the PivotTable, you need to make sure that that range does not have blank columns or rows :)
0
 

Author Comment

by:Richard Korts
ID: 39192455
OK, I didn't know that.

Just for your future reference, the video was great but the images were SO small, I had a hard time seeing the details. I zoomed 3 or 4 times.

Thanks!
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 39192659
Thanks for that feedback.  First time using Camtasia :)
0
 

Author Comment

by:Richard Korts
ID: 39192760
Regarding Camtasia; is it simple to record technical instructions like you did? I have that need a lot myself.

Thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

809 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