Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RLD RLD is offline
external usenet poster
 
Posts: 11
Default IFSUM and IFSUMS - which to use and how

I have 2 sheets. They are as follows:

Sheet1:
A B C
1 Make Type Qty
2 Toyota Hybrid 20
3 Ford Hybrid 68
4 Nissan Sedan 95
5 Toyota Hybrid 11
6 Dodge Truck 15
7 Toyota Sedan 21
8 Ford Sedan 0

Sheet2:
A B C
1 Make Qty Hybrids Qty Sedans
2Toyota
3 Ford

I need B2 and C2 of Sheet2 to sum up the total number of matching data from
Sheet1. In other words, how do I get Sheet2 B2 to sum up the total number of
Toyota Hybrids in Sheet 1?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default IFSUM and IFSUMS - which to use and how

This is a perfect situation to learn about pivottables. It makes this kind of
thing much easier (especially when new makes/types are added).

If you've never used pivottables, here are a few links:

Debra Dalgleish's pictures at Jon Peltier's site:
http://peltiertech.com/Excel/Pivots/pivottables.htm
And Debra's own site:
http://www.contextures.com/xlPivot01.html

John Walkenbach also has some at:
http://j-walk.com/ss/excel/files/general.htm
(look for Tony Gwynn's Hit Database)

Chip Pearson keeps Harald Staff's notes at:
http://www.cpearson.com/excel/pivots.htm

MS has some at (xl2000 and xl2002):
http://office.microsoft.com/downloads/2000/XCrtPiv.aspx
http://office.microsoft.com/assistan...lconPT101.aspx

=======
One more point. You'll want to make sure that the pivottable range includes all
the data you need--if/when you add more items.

Debra Dalgleish shares instructions for this:
http://contextures.com/xlNames01.html#Dynamic

RLD wrote:

I have 2 sheets. They are as follows:

Sheet1:
A B C
1 Make Type Qty
2 Toyota Hybrid 20
3 Ford Hybrid 68
4 Nissan Sedan 95
5 Toyota Hybrid 11
6 Dodge Truck 15
7 Toyota Sedan 21
8 Ford Sedan 0

Sheet2:
A B C
1 Make Qty Hybrids Qty Sedans
2Toyota
3 Ford

I need B2 and C2 of Sheet2 to sum up the total number of matching data from
Sheet1. In other words, how do I get Sheet2 B2 to sum up the total number of
Toyota Hybrids in Sheet 1?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default IFSUM and IFSUMS - which to use and how

Sheet2, B2 formula is
=SUMPRODUCT(--('Sheet1'!$A$2:$A$10=$A2),--('Sheet1'!$B$2:$B$10="Hybrid"),('Sheet1'!$C$2:$C$1 0))

Similarly, C2 formula is:
=SUMPRODUCT(--('Sheet1'!$A$2:$A$10=$A2),--('Sheet1'!$B$2:$B$10="Sedan"),('Sheet1'!$C$2:$C$10 ))

Copy down as needed
--
Best Regards,

Luke M
"RLD" wrote in message
...
I have 2 sheets. They are as follows:

Sheet1:
A B C
1 Make Type Qty
2 Toyota Hybrid 20
3 Ford Hybrid 68
4 Nissan Sedan 95
5 Toyota Hybrid 11
6 Dodge Truck 15
7 Toyota Sedan 21
8 Ford Sedan 0

Sheet2:
A B C
1 Make Qty Hybrids Qty Sedans
2Toyota
3 Ford

I need B2 and C2 of Sheet2 to sum up the total number of matching data
from
Sheet1. In other words, how do I get Sheet2 B2 to sum up the total number
of
Toyota Hybrids in Sheet 1?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default IFSUM and IFSUMS - which to use and how

Try Pivot table


"RLD" wrote:

I have 2 sheets. They are as follows:

Sheet1:
A B C
1 Make Type Qty
2 Toyota Hybrid 20
3 Ford Hybrid 68
4 Nissan Sedan 95
5 Toyota Hybrid 11
6 Dodge Truck 15
7 Toyota Sedan 21
8 Ford Sedan 0

Sheet2:
A B C
1 Make Qty Hybrids Qty Sedans
2Toyota
3 Ford

I need B2 and C2 of Sheet2 to sum up the total number of matching data from
Sheet1. In other words, how do I get Sheet2 B2 to sum up the total number of
Toyota Hybrids in Sheet 1?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 269
Default IFSUM and IFSUMS - which to use and how

dWith two conditons "Toyota" and "Hybrid" you nee to use SUMIFS

For this function the sum range leads off, then each range and criteria

for B2
=SUMIFS(Sheet1!$C$2:$C$8,Sheet1!$A$2:$B$8,A2,Sheet 1!$B$2:$B$8,"Hybrid")

If you change B1 to just Hybrid and the C1 with Sedan you can relplace the
"Hybrid" with B$1 and the formula will copy both down rows and over columns.

--
If this helps, please remember to click yes.


"RLD" wrote:

I have 2 sheets. They are as follows:

Sheet1:
A B C
1 Make Type Qty
2 Toyota Hybrid 20
3 Ford Hybrid 68
4 Nissan Sedan 95
5 Toyota Hybrid 11
6 Dodge Truck 15
7 Toyota Sedan 21
8 Ford Sedan 0

Sheet2:
A B C
1 Make Qty Hybrids Qty Sedans
2Toyota
3 Ford

I need B2 and C2 of Sheet2 to sum up the total number of matching data from
Sheet1. In other words, how do I get Sheet2 B2 to sum up the total number of
Toyota Hybrids in Sheet 1?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IFSUM Bob_O Excel Discussion (Misc queries) 3 November 1st 05 12:36 PM
IfSum TYE Excel Worksheet Functions 3 August 27th 05 06:02 PM
Help on ifsum TYE Excel Worksheet Functions 3 August 18th 05 12:50 PM
IFSUM TYE Excel Worksheet Functions 6 August 16th 05 12:08 PM
ifsum Mandy Excel Discussion (Misc queries) 1 June 22nd 05 06:32 PM


All times are GMT +1. The time now is 08:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"