maximum negative value with if condition

gomaa1239

New Member
Joined
Apr 6, 2016
Messages
11
Dears,

i need to get the maximum negative value of a range of a column based on a specific text in another coulmn
columnAcolumnB
-60TRUE
-20FALSE
-30FALSE
-1TRUE
-7TRUE
-15FALSE
-4TRUE
-5FALSE

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>
i need to get the maximum negative value in columnA which is (-4) ignoring all values if i have false in coulmnB
this is the same thinking like =SUMIF($B$2:$B$9,"false", A$2:A$9) but this is not working for maximum negative value

i found that we can get the maximum negative value using the following array formula =MIN(ABS(A2:A9))

Tanks a lot for your kind help
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to the forum!

By "maximum negative value" do you mean the most negative value ignoring all the values marked FALSE? If yes, why isn't that -60. If no, do you mean the least negative value? In that case why isn't that -1?
 
Upvote 0

Excel 2010
ABCDE
1columnAcolumnB
2-60TRUEMax Value-1
3-20FALSEMax Neg Value-1
4-30FALSE
5-1TRUE
6-7TRUE
7-15FALSE
8-4TRUE
9-5FALSE
Sheet4
Cell Formulas
RangeFormula
E2{=MAX(IF(B2:B9=TRUE,A2:A9))}
E3{=MAX(IF((B2:B9=TRUE)*(A2:A9<0),A2:A9))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Welcome to the forum!

By "maximum negative value" do you mean the most negative value ignoring all the values marked FALSE? If yes, why isn't that -60. If no, do you mean the least negative value? In that case why isn't that -1?
sorry-i-need-the-minimum-negative-value
 
Upvote 0
sorry-i-need-the-minimum-negative-value
You didn't answer the questions. If you want the most-negative value, ignoring False, try this - enter using ctrl+shift+enter.
Excel Workbook
ABC
1-60TRUE-60
2-20FALSE*
3-30FALSE*
4-1TRUE*
5-7TRUE*
6-15FALSE*
7-4TRUE*
8-5FALSE*
Master


If you want the least-negative value try the formula in E3 from post #4.
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,956
Members
449,057
Latest member
FreeCricketId

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