Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ryesworld
 
Posts: n/a
Default How to sum data that is only within a specific number range?

Hi all:
I need to count the number of rows that have specifiic data in specific
columns. There are multiple columns to check for data and all colums must
match a specific value or range of values.

I have a formula below that works and is close to what I need, but I need to
modify the last argument: "(Data!$BB$2:$BB$10000=BW$5)" so that BW$5 can be a
number range, for example the following greater than/less than statement
would be perfect, 0 <= BW$5 <= 10, but I don't know how to incorporate this
into the formula, or how to reference the formula to cells that contain this
data.

This is my working formula:

=SUMPRODUCT((Data!$A$2:$A$10000=$A7)*((Data!$AX$2: $AX$10000=$BW$3)+(Data!$AX$2:$AX$10000=$BW$4))*(Da ta!$BB$2:$BB$10000=BW$5))

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default How to sum data that is only within a specific number range?

Hi

=SUMPRODUCT(--(Data!$A$2:$A$10000=$A7),--((Data!$AX$2:$AX$10000=$BW$3)+(Data
!$AX$2:$AX$10000=$BW$4))*(Data!$BB$2:$BB$10000=BW$ 5),--(Data!$BB$2:$BB$10000
=BW$5),--(Data!$BB$2:$BB$10000<=BW$6))


I.e. you must have 2 cells to refer to - for lower and upper limit
respectively.


Arvi Laanemets


"ryesworld" wrote in message
...
Hi all:
I need to count the number of rows that have specifiic data in specific
columns. There are multiple columns to check for data and all colums must
match a specific value or range of values.

I have a formula below that works and is close to what I need, but I need

to
modify the last argument: "(Data!$BB$2:$BB$10000=BW$5)" so that BW$5 can

be a
number range, for example the following greater than/less than statement
would be perfect, 0 <= BW$5 <= 10, but I don't know how to incorporate

this
into the formula, or how to reference the formula to cells that contain

this
data.

This is my working formula:


=SUMPRODUCT((Data!$A$2:$A$10000=$A7)*((Data!$AX$2: $AX$10000=$BW$3)+(Data!$AX
$2:$AX$10000=$BW$4))*(Data!$BB$2:$BB$10000=BW$5))

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ryesworld
 
Posts: n/a
Default How to sum data that is only within a specific number range?

Hi, I think I see what you're trying to do, but why is BW5 referenced twice?

"...*(Data!$BB$2:$BB$10000=BW$5),--(Data!$BB$2:$BB$10000=BW$5),--(Data$BB$2:$BB$10000<=BW$6))"

Thanks,
Ryan

"Arvi Laanemets" wrote:

Hi

=SUMPRODUCT(--(Data!$A$2:$A$10000=$A7),--((Data!$AX$2:$AX$10000=$BW$3)+(Data
!$AX$2:$AX$10000=$BW$4))*(Data!$BB$2:$BB$10000=BW$ 5),--(Data!$BB$2:$BB$10000
=BW$5),--(Data!$BB$2:$BB$10000<=BW$6))


I.e. you must have 2 cells to refer to - for lower and upper limit
respectively.


Arvi Laanemets


"ryesworld" wrote in message
...
Hi all:
I need to count the number of rows that have specifiic data in specific
columns. There are multiple columns to check for data and all colums must
match a specific value or range of values.

I have a formula below that works and is close to what I need, but I need

to
modify the last argument: "(Data!$BB$2:$BB$10000=BW$5)" so that BW$5 can

be a
number range, for example the following greater than/less than statement
would be perfect, 0 <= BW$5 <= 10, but I don't know how to incorporate

this
into the formula, or how to reference the formula to cells that contain

this
data.

This is my working formula:


=SUMPRODUCT((Data!$A$2:$A$10000=$A7)*((Data!$AX$2: $AX$10000=$BW$3)+(Data!$AX
$2:$AX$10000=$BW$4))*(Data!$BB$2:$BB$10000=BW$5))

Any ideas?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ryesworld
 
Posts: n/a
Default How to sum data that is only within a specific number range?

I think I figured it out...

=SUMPRODUCT((Data!$A$2:$A$10000=$A7)*((Data!$AX$2: $AX$10000=$BW$3)+(Data!$AX$2:$AX$10000=$BW$4))*(Da ta!$BB$2:$BB$10000=BW$5)*(Data!$BB$2:$BB$10000<=B X$5))

where BW5 and BX5 are the lower and upper limits. Thanks for the hint!

Ryan

"ryesworld" wrote:

Hi, I think I see what you're trying to do, but why is BW5 referenced twice?

"...*(Data!$BB$2:$BB$10000=BW$5),--(Data!$BB$2:$BB$10000=BW$5),--(Data$BB$2:$BB$10000<=BW$6))"

Thanks,
Ryan

"Arvi Laanemets" wrote:

Hi

=SUMPRODUCT(--(Data!$A$2:$A$10000=$A7),--((Data!$AX$2:$AX$10000=$BW$3)+(Data
!$AX$2:$AX$10000=$BW$4))*(Data!$BB$2:$BB$10000=BW$ 5),--(Data!$BB$2:$BB$10000
=BW$5),--(Data!$BB$2:$BB$10000<=BW$6))


I.e. you must have 2 cells to refer to - for lower and upper limit
respectively.


Arvi Laanemets


"ryesworld" wrote in message
...
Hi all:
I need to count the number of rows that have specifiic data in specific
columns. There are multiple columns to check for data and all colums must
match a specific value or range of values.

I have a formula below that works and is close to what I need, but I need

to
modify the last argument: "(Data!$BB$2:$BB$10000=BW$5)" so that BW$5 can

be a
number range, for example the following greater than/less than statement
would be perfect, 0 <= BW$5 <= 10, but I don't know how to incorporate

this
into the formula, or how to reference the formula to cells that contain

this
data.

This is my working formula:


=SUMPRODUCT((Data!$A$2:$A$10000=$A7)*((Data!$AX$2: $AX$10000=$BW$3)+(Data!$AX
$2:$AX$10000=$BW$4))*(Data!$BB$2:$BB$10000=BW$5))

Any ideas?




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
AHHHH-Get Data from Multiple Excel workbooks JAA149 Excel Discussion (Misc queries) 5 October 30th 05 05:19 PM
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM
How can I check if data in an external data range is changed afte. Ruud Excel Worksheet Functions 0 January 7th 05 12:15 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
Extending a Chart Data Series from an Array - Can it be done? Jon Peltier Charts and Charting in Excel 4 November 30th 04 03:30 AM


All times are GMT +1. The time now is 08:32 PM.

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"