Minmun

ziad alsayed

Well-known Member
Joined
Jul 17, 2010
Messages
665
Dear all

please advise why the below two formulas are not Working.
Excel Workbook
ABCDE
1S/NNameDepartmentJoined OnSalary
21Ziad AlsayedManagement20/08/0820 000
32Imad ElhajeManagement22/09/0930 000
43Mohammed MoussaAccount27/11/0915 000
54Amin MarieIT30/01/1112 000
65Firas MamloukAccount04/12/1017 000
76Ekpo OchukoIT27/08/0813 000
SUm Product
Excel 2010
Cell Formulas
RangeFormula
A2=ROWS($A$2:A2)
A3=ROWS($A$2:A3)
A4=ROWS($A$2:A4)
A5=ROWS($A$2:A5)
A6=ROWS($A$2:A6)
A7=ROWS($A$2:A7)
Excel Workbook
GHI
6Array formulaLowest Salary in Management Department0
7Sum ProductLowest Salary in Management Department0
SUm Product
Excel 2010
Cell Formulas
RangeFormula
I7=SUMPRODUCT(MIN((C2:C7="Management")*(E2:E7)))
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.

Appreciate any help.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Some comments...

1.

20 000 in E1 does not look like a true number, that is,

=ISNUMBER(E1)

will yield FALSE.

2. After you change all salaries into true numbers, try:

Control+shift+enter (CSE), not just enter:

=IF(COUNTIF(C2:C7, Management),MIN(IF(C2:C7="Management",E2:E7)),"")

Note. SumProduct is not appropriate here. Invoking it just in order to avoid CSE is not a "good practice".
 
Upvote 0
thanks aladin
in fact i am tryong to practice Both array formula and sumProduct, i agree with that sumproduct is not appropriate here.

your formula work perfeclty. but i wanted to understand why my formula didn't work specialy that it works with MAX formula , please check the below
Excel Workbook
GHI
3Array formulaHighest Salary in IT Department13 000
4Sum ProductHighest Salary in IT Department13 000
SUm Product
Excel 2010
Cell Formulas
RangeFormula
I4=SUMPRODUCT(MAX((C2:C7="IT")*(E2:E7)))
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.


please advise.
 
Upvote 0
=SUMPRODUCT(MAX((C2:C7="IT")*(E2:E7)))

is the same as

=MAX((C2:C7="IT")*(E2:E7))

confirmed with CSE.

A non-zero result means there is at least one IT-record with a corresponding value > 0.

For the sample at hand, we have:

{0;0;0;12000;0;13000}

as result of (C2:C7="IT")*(E2:E7), whose MAX is 13000.

MIN of the foregoing will always be 0, not 12000, when:

MIN((C2:C7="IT")*(E2:E7))

is used.

On the other hand, with

=MIN(IF(C2:C7="IT",E2:E7))

we get:

MIN({FALSE;FALSE;FALSE;12000;FALSE;13000})

wit as result: 12000.

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,284
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top