Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Johnny Stranger
 
Posts: n/a
Default Stratify Data In a Range

Hello, I am trying to stratify amounts in a given range of cells into
different tiers.

I have a range of $ values. Lets say from A1:E100 that is filled with
numerical values.

I am trying to summarize this data into tiers, for example
sum of amounts: from 10,000 to 15,000
sum of amounts: from 5,000 to 9,999
sum of amounts: from 0 to 4,999
sum of amounts: from (1) to (4,999)
sum of amounts: from (5,000) to (9,999)
sum of amounts: from (10,000) to (14,999)

How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default Stratify Data In a Range

You want to know the SUM of the values in range X to Y
In A105 enter 10,000; in B105 enter 15,000; in C105 enter
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105), $A$1:$E$100)
If you just want a COUNT use
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105)

In A106 enter 5,000 and in B1006 enter 9,999 copy C105 to C106
et cetera

For explainations see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" <Johnny wrote in
message ...
Hello, I am trying to stratify amounts in a given range of cells into
different tiers.

I have a range of $ values. Lets say from A1:E100 that is filled with
numerical values.

I am trying to summarize this data into tiers, for example
sum of amounts: from 10,000 to 15,000
sum of amounts: from 5,000 to 9,999
sum of amounts: from 0 to 4,999
sum of amounts: from (1) to (4,999)
sum of amounts: from (5,000) to (9,999)
sum of amounts: from (10,000) to (14,999)

How do I do this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Johnny Stranger
 
Posts: n/a
Default Stratify Data In a Range

I tried it exactly how you wrote, but it tells me there is an error in the
formula.


"Bernard Liengme" wrote:

You want to know the SUM of the values in range X to Y
In A105 enter 10,000; in B105 enter 15,000; in C105 enter
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105), $A$1:$E$100)
If you just want a COUNT use
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105)

In A106 enter 5,000 and in B1006 enter 9,999 copy C105 to C106
et cetera

For explainations see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" <Johnny wrote in
message ...
Hello, I am trying to stratify amounts in a given range of cells into
different tiers.

I have a range of $ values. Lets say from A1:E100 that is filled with
numerical values.

I am trying to summarize this data into tiers, for example
sum of amounts: from 10,000 to 15,000
sum of amounts: from 5,000 to 9,999
sum of amounts: from 0 to 4,999
sum of amounts: from (1) to (4,999)
sum of amounts: from (5,000) to (9,999)
sum of amounts: from (10,000) to (14,999)

How do I do this?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default Stratify Data In a Range

typo, i should be
=SUMPRODUCT(--($A$1:$E$100=A105), --($A$1:$E$100<=B105), $A$1:$E$100)

sorry
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" wrote in
message ...
I tried it exactly how you wrote, but it tells me there is an error in the
formula.


"Bernard Liengme" wrote:

You want to know the SUM of the values in range X to Y
In A105 enter 10,000; in B105 enter 15,000; in C105 enter
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105), $A$1:$E$100)
If you just want a COUNT use
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105)

In A106 enter 5,000 and in B1006 enter 9,999 copy C105 to C106
et cetera

For explainations see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" <Johnny wrote in
message ...
Hello, I am trying to stratify amounts in a given range of cells into
different tiers.

I have a range of $ values. Lets say from A1:E100 that is filled with
numerical values.

I am trying to summarize this data into tiers, for example
sum of amounts: from 10,000 to 15,000
sum of amounts: from 5,000 to 9,999
sum of amounts: from 0 to 4,999
sum of amounts: from (1) to (4,999)
sum of amounts: from (5,000) to (9,999)
sum of amounts: from (10,000) to (14,999)

How do I do this?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Johnny Stranger
 
Posts: n/a
Default Stratify Data In a Range

I'm curious... what is the purpose of the "--" between the two opening
brackets you have in your formula??

I typed my formula: =SUMPRODUCT((Data=A11)*(Data<=B11),Data)
with "Data" being the Range of cells, and it worked.

"Bernard Liengme" wrote:

typo, i should be
=SUMPRODUCT(--($A$1:$E$100=A105), --($A$1:$E$100<=B105), $A$1:$E$100)

sorry
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" wrote in
message ...
I tried it exactly how you wrote, but it tells me there is an error in the
formula.


"Bernard Liengme" wrote:

You want to know the SUM of the values in range X to Y
In A105 enter 10,000; in B105 enter 15,000; in C105 enter
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105), $A$1:$E$100)
If you just want a COUNT use
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105)

In A106 enter 5,000 and in B1006 enter 9,999 copy C105 to C106
et cetera

For explainations see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" <Johnny wrote in
message ...
Hello, I am trying to stratify amounts in a given range of cells into
different tiers.

I have a range of $ values. Lets say from A1:E100 that is filled with
numerical values.

I am trying to summarize this data into tiers, for example
sum of amounts: from 10,000 to 15,000
sum of amounts: from 5,000 to 9,999
sum of amounts: from 0 to 4,999
sum of amounts: from (1) to (4,999)
sum of amounts: from (5,000) to (9,999)
sum of amounts: from (10,000) to (14,999)

How do I do this?








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Stratify Data In a Range

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Johnny Stranger wrote:

I'm curious... what is the purpose of the "--" between the two opening
brackets you have in your formula??

I typed my formula: =SUMPRODUCT((Data=A11)*(Data<=B11),Data)
with "Data" being the Range of cells, and it worked.

"Bernard Liengme" wrote:

typo, i should be
=SUMPRODUCT(--($A$1:$E$100=A105), --($A$1:$E$100<=B105), $A$1:$E$100)

sorry
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" wrote in
message ...
I tried it exactly how you wrote, but it tells me there is an error in the
formula.


"Bernard Liengme" wrote:

You want to know the SUM of the values in range X to Y
In A105 enter 10,000; in B105 enter 15,000; in C105 enter
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105), $A$1:$E$100)
If you just want a COUNT use
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105)

In A106 enter 5,000 and in B1006 enter 9,999 copy C105 to C106
et cetera

For explainations see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" <Johnny wrote in
message ...
Hello, I am trying to stratify amounts in a given range of cells into
different tiers.

I have a range of $ values. Lets say from A1:E100 that is filled with
numerical values.

I am trying to summarize this data into tiers, for example
sum of amounts: from 10,000 to 15,000
sum of amounts: from 5,000 to 9,999
sum of amounts: from 0 to 4,999
sum of amounts: from (1) to (4,999)
sum of amounts: from (5,000) to (9,999)
sum of amounts: from (10,000) to (14,999)

How do I do this?







--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Johnny Stranger
 
Posts: n/a
Default Stratify Data In a Range

I got it working now... thanks. I don't know why it didn't work the first
time.


"Bernard Liengme" wrote:

You want to know the SUM of the values in range X to Y
In A105 enter 10,000; in B105 enter 15,000; in C105 enter
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105), $A$1:$E$100)
If you just want a COUNT use
=SUMPRODUCT(--($A$1:$E$100)=A105, --($A$1:$E$100)<=B105)

In A106 enter 5,000 and in B1006 enter 9,999 copy C105 to C106
et cetera

For explainations see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Johnny Stranger" <Johnny wrote in
message ...
Hello, I am trying to stratify amounts in a given range of cells into
different tiers.

I have a range of $ values. Lets say from A1:E100 that is filled with
numerical values.

I am trying to summarize this data into tiers, for example
sum of amounts: from 10,000 to 15,000
sum of amounts: from 5,000 to 9,999
sum of amounts: from 0 to 4,999
sum of amounts: from (1) to (4,999)
sum of amounts: from (5,000) to (9,999)
sum of amounts: from (10,000) to (14,999)

How do I do this?




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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
data range props Steve M Excel Discussion (Misc queries) 0 April 11th 05 10:32 AM
data range Steve M Excel Discussion (Misc queries) 0 April 4th 05 11:17 PM


All times are GMT +1. The time now is 01:30 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"