Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Formula with 2 conditions

I have a spreadsheet with 20000 rows capturing numbers from .01 to $1,000,000
in column D.
What I want to do is break these rows into ranges.
For example the first range would be .01-1.00,
then the next range 501 to 20,000
Then the next range 20,001 to 100,000.

I've tried the Sum and Sumif funtion but cannot get them to work.

Would this be considered an Array function?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 533
Default Formula with 2 conditions

The lowest group could be summed like this:

=SUMIF(A1:A20000,"<=1")

Say the above formula was put in B1.

Then to get the next group use in B2:

=SUMIF(A1:A20000,"<=500")-B1

Then

=SUMIF(A1:A20000,"<=20000")-SUM(B1:B2)

Etc.

--
Jim
"Joey" wrote in message
...
|I have a spreadsheet with 20000 rows capturing numbers from .01 to
$1,000,000
| in column D.
| What I want to do is break these rows into ranges.
| For example the first range would be .01-1.00,
| then the next range 501 to 20,000
| Then the next range 20,001 to 100,000.
|
| I've tried the Sum and Sumif funtion but cannot get them to work.
|
| Would this be considered an Array function?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default What worked the best

=COUNTIF($A$3:$A$11792,"1")-COUNTIF($A$3:$A$11792,"=500")

"Jim Rech" wrote:

The lowest group could be summed like this:

=SUMIF(A1:A20000,"<=1")

Say the above formula was put in B1.

Then to get the next group use in B2:

=SUMIF(A1:A20000,"<=500")-B1

Then

=SUMIF(A1:A20000,"<=20000")-SUM(B1:B2)

Etc.

--
Jim
"Joey" wrote in message
...
|I have a spreadsheet with 20000 rows capturing numbers from .01 to
$1,000,000
| in column D.
| What I want to do is break these rows into ranges.
| For example the first range would be .01-1.00,
| then the next range 501 to 20,000
| Then the next range 20,001 to 100,000.
|
| I've tried the Sum and Sumif funtion but cannot get them to work.
|
| Would this be considered an Array function?



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
Need a formula to sum with conditions phonemanager Excel Worksheet Functions 6 March 11th 08 01:56 AM
two conditions formula michelledean via OfficeKB.com Excel Discussion (Misc queries) 2 February 21st 07 05:19 PM
IF formula for 3 possible conditions cbgraphics Excel Discussion (Misc queries) 6 December 28th 06 02:22 PM
Formula With Several Conditions Chris Excel Worksheet Functions 1 November 14th 06 01:38 PM
Help for a formula using two conditions harwookf Excel Worksheet Functions 7 November 24th 04 08:21 AM


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