Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default SUMIF [sum_range] / sorting question

Suppose I have data that looks like:

1/1/2008 1/3/2008 2/7/2008
Ordered Ordered Ordered
Aardvarks 8 7 3
Baboons 3 10 7
Cats 5 3 2
Ducks 5 1 7
Elephants 7 2 8

I want to get, by month, the total of animals on another sheet

January February
Ordered Ordered
Ducks 6 7
Aardvarks 15 3
Elephants 9 8
Baboons 13 7
Cats 8 2

The tricky part is that I can't control what rows will go where. The two
lists sorting order will change, and new items might be added at any time
(say the zoo wants to add Flamingoes and Giraffes)

That is, for the first sheet, you might see Aardvarks, Baboons, Cats, Ducks,
Elephants, but you could also see Baboons, Elephants, Cats, Aardvarks, Ducks.

Likewise for the second sheet; the rows could be in any order.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default SUMIF [sum_range] / sorting question

Is there anything I can clarify to make answering the question easier?

Help?

Jim

--

"jiml" wrote:

Suppose I have data that looks like:

1/1/2008 1/3/2008 2/7/2008
Ordered Ordered Ordered
Aardvarks 8 7 3
Baboons 3 10 7
Cats 5 3 2
Ducks 5 1 7
Elephants 7 2 8

I want to get, by month, the total of animals on another sheet

January February
Ordered Ordered
Ducks 6 7
Aardvarks 15 3
Elephants 9 8
Baboons 13 7
Cats 8 2

The tricky part is that I can't control what rows will go where. The two
lists sorting order will change, and new items might be added at any time
(say the zoo wants to add Flamingoes and Giraffes)

That is, for the first sheet, you might see Aardvarks, Baboons, Cats, Ducks,
Elephants, but you could also see Baboons, Elephants, Cats, Aardvarks, Ducks.

Likewise for the second sheet; the rows could be in any order.

Any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default SUMIF [sum_range] / sorting question

Hi,
How come the items on sheet 2 can be in a different order? Aren't they
derived from sheet 1? If not, are they entered manually?
Regards - Dave.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default SUMIF [sum_range] / sorting question

On Jun 16, 12:31 pm, jiml wrote:
Suppose I have data that looks like:

1/1/2008 1/3/2008 2/7/2008
Ordered Ordered Ordered
Aardvarks 8 7 3
Baboons 3 10 7
Cats 5 3 2
Ducks 5 1 7
Elephants 7 2 8

I want to get, by month, the total of animals on another sheet

January February
Ordered Ordered
Ducks 6 7
Aardvarks 15 3
Elephants 9 8
Baboons 13 7
Cats 8 2

The tricky part is that I can't control what rows will go where. The two
lists sorting order will change, and new items might be added at any time
(say the zoo wants to add Flamingoes and Giraffes)

That is, for the first sheet, you might see Aardvarks, Baboons, Cats, Ducks,
Elephants, but you could also see Baboons, Elephants, Cats, Aardvarks, Ducks.

Likewise for the second sheet; the rows could be in any order.

Any suggestions?


Well, if there is only ever one row of each animal, a simple VLOOKUP
will do the trick. If there is more than one row, probably a SUMIF or
certainly a SUMPRODUCT would work. Or, if it is more than one row and
this is a massive number of formulas that you will need, eventually
DSUM would be faster than the SUMxx formulas.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default SUMIF [sum_range] / sorting question

On Jun 17, 2:25 pm, Spiky wrote:
On Jun 16, 12:31 pm, jiml wrote:



Suppose I have data that looks like:


1/1/2008 1/3/2008 2/7/2008
Ordered Ordered Ordered
Aardvarks 8 7 3
Baboons 3 10 7
Cats 5 3 2
Ducks 5 1 7
Elephants 7 2 8


I want to get, by month, the total of animals on another sheet


January February
Ordered Ordered
Ducks 6 7
Aardvarks 15 3
Elephants 9 8
Baboons 13 7
Cats 8 2


The tricky part is that I can't control what rows will go where. The two
lists sorting order will change, and new items might be added at any time
(say the zoo wants to add Flamingoes and Giraffes)


That is, for the first sheet, you might see Aardvarks, Baboons, Cats, Ducks,
Elephants, but you could also see Baboons, Elephants, Cats, Aardvarks, Ducks.


Likewise for the second sheet; the rows could be in any order.


Any suggestions?


Well, if there is only ever one row of each animal, a simple VLOOKUP
will do the trick. If there is more than one row, probably a SUMIF or
certainly a SUMPRODUCT would work. Or, if it is more than one row and
this is a massive number of formulas that you will need, eventually
DSUM would be faster than the SUMxx formulas.


Sorry, forgot...
If the main issue is the possible length of the data, just make sure
your database area is large enough. If you currently have 20 lines,
make the data area in the formulas 50 lines, just to be sure.
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
Sumif with multiple columns in sum_range dza7 Excel Discussion (Misc queries) 17 March 28th 08 07:25 PM
SUMIF - Sum_Range is misleading Epinn Excel Worksheet Functions 3 October 29th 06 08:53 AM
SUMIF with the Sum_range across several colums D Excel Worksheet Functions 7 September 25th 06 04:00 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
SUMIF with multi-column sum_range Kevin B Excel Worksheet Functions 2 November 17th 04 02:17 AM


All times are GMT +1. The time now is 11:57 AM.

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

About Us

"It's about Microsoft Excel"