#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default SUMPRODUCT

The Min column is the calculation of MIN(ABS(A1:C1)) by row. Now I need to
have a count by each column that the value is equal to the Min column. I
tried to use the sumproduct as below but it doesn't work:

=sumproduct(--(A1:A9<"?"),ABS(A1:A9)=(D1:D9))

My data is randomly to have "?"; therefore I need to make sure the formula
do not count the "?" and also treat all valuse as "ABS". The results should
be 3 in col A, 4 in col B, and 5 in col C.

Any hlep is greatly appreciated?

A B C MIN
1 -14% -14% -11% 11%
2 -12% -9% 9% 9%
3 -16% -16% -19% 16%
4 -13% -12% 12% 12%
5 -16% -17% -16% 16%
6 -16% -14% -10% 10%
7 ? ? ? ?
8 -17% -17% -18% 17%
9 -19% -17% -18% 17%


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT

The results should be 3 in col A, 4 in col B, and 5 in col C.

I think the correct results should be: 3,5,5

Try this array formula** :

=SUM(IF(ISNUMBER(A1:A9),--(ABS(A1:A9)=$D1:$D9)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Copy across as needed.

--
Biff
Microsoft Excel MVP


"M&M" <Missie.lucky.com wrote in message
...
The Min column is the calculation of MIN(ABS(A1:C1)) by row. Now I need
to
have a count by each column that the value is equal to the Min column. I
tried to use the sumproduct as below but it doesn't work:

=sumproduct(--(A1:A9<"?"),ABS(A1:A9)=(D1:D9))

My data is randomly to have "?"; therefore I need to make sure the formula
do not count the "?" and also treat all valuse as "ABS". The results
should
be 3 in col A, 4 in col B, and 5 in col C.

Any hlep is greatly appreciated?

A B C MIN
1 -14% -14% -11% 11%
2 -12% -9% 9% 9%
3 -16% -16% -19% 16%
4 -13% -12% 12% 12%
5 -16% -17% -16% 16%
6 -16% -14% -10% 10%
7 ? ? ? ?
8 -17% -17% -18% 17%
9 -19% -17% -18% 17%




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default SUMPRODUCT

Thank you so much, it works!!!
--
M&M


"T. Valko" wrote:

The results should be 3 in col A, 4 in col B, and 5 in col C.


I think the correct results should be: 3,5,5

Try this array formula** :

=SUM(IF(ISNUMBER(A1:A9),--(ABS(A1:A9)=$D1:$D9)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Copy across as needed.

--
Biff
Microsoft Excel MVP


"M&M" <Missie.lucky.com wrote in message
...
The Min column is the calculation of MIN(ABS(A1:C1)) by row. Now I need
to
have a count by each column that the value is equal to the Min column. I
tried to use the sumproduct as below but it doesn't work:

=sumproduct(--(A1:A9<"?"),ABS(A1:A9)=(D1:D9))

My data is randomly to have "?"; therefore I need to make sure the formula
do not count the "?" and also treat all valuse as "ABS". The results
should
be 3 in col A, 4 in col B, and 5 in col C.

Any hlep is greatly appreciated?

A B C MIN
1 -14% -14% -11% 11%
2 -12% -9% 9% 9%
3 -16% -16% -19% 16%
4 -13% -12% 12% 12%
5 -16% -17% -16% 16%
6 -16% -14% -10% 10%
7 ? ? ? ?
8 -17% -17% -18% 17%
9 -19% -17% -18% 17%





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"M&M" <Missie.lucky.com wrote in message
...
Thank you so much, it works!!!
--
M&M


"T. Valko" wrote:

The results should be 3 in col A, 4 in col B, and 5 in col C.


I think the correct results should be: 3,5,5

Try this array formula** :

=SUM(IF(ISNUMBER(A1:A9),--(ABS(A1:A9)=$D1:$D9)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

Copy across as needed.

--
Biff
Microsoft Excel MVP


"M&M" <Missie.lucky.com wrote in message
...
The Min column is the calculation of MIN(ABS(A1:C1)) by row. Now I
need
to
have a count by each column that the value is equal to the Min column.
I
tried to use the sumproduct as below but it doesn't work:

=sumproduct(--(A1:A9<"?"),ABS(A1:A9)=(D1:D9))

My data is randomly to have "?"; therefore I need to make sure the
formula
do not count the "?" and also treat all valuse as "ABS". The results
should
be 3 in col A, 4 in col B, and 5 in col C.

Any hlep is greatly appreciated?

A B C MIN
1 -14% -14% -11% 11%
2 -12% -9% 9% 9%
3 -16% -16% -19% 16%
4 -13% -12% 12% 12%
5 -16% -17% -16% 16%
6 -16% -14% -10% 10%
7 ? ? ? ?
8 -17% -17% -18% 17%
9 -19% -17% -18% 17%







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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct Priscilla Excel Discussion (Misc queries) 3 May 18th 06 09:16 PM
Sumproduct with And? SteveC Excel Discussion (Misc queries) 7 May 17th 06 09:00 PM
sumproduct Purnima Sharma Excel Worksheet Functions 3 May 17th 06 05:22 PM


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