Get the max and min based on certain criteria

MagsinoAS13

New Member
Joined
Jul 9, 2018
Messages
6
Please help me look for a formula to get the Max and Min value based on given criteria.

ClientCampaign NameSentUnique OpensOpens rate
Product1Campaign1201470.00%
Product1Campaign2181161.11%
Product1Campaign310880.00%
Product1Campaign49666.67%
Product1Campaign55172214041.86%
Product1Campaign61298565.89%
Product1Campaign75360.00%
Product1Campaign813028706155.16%
Product1Campaign99407523456.69%
Product1Campaign10107253652.09%

<tbody>
</tbody>

RESULT
ClientSheetMin OpenMax Open
Client Name1Product141.86%56.69%
Client Name2Product2

<tbody>
</tbody>

Criteria: The sent must be higher than 1000 to get the Max and Min Open Rate. In the example above, there are 4 rows with more than 1000 sent. So the Max Open Rate is 56.69% and Min Open Rate is 41.86. If the Sent column has no value higher than 1000, just get the normal Max and Min. In this case, Max is 80% and Min is 41.86%.

Any help is very much appreciated.
Thanks.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
There may be a better way

=IF(COUNTIF(C2:C11,">1000"),MAX(IF(C2:C11>1000,E2:E11)),MAX(E2:E11))
Array formula, use Ctrl-Shift-Enter
=IF(COUNTIF(C2:C11,">1000"),MIN(IF(C2:C11>1000,E2:E11)),MIN(E2:E11))
Array formula, use Ctrl-Shift-Enter
 
Upvote 0
I don't understand the first two columns of your result section.
- Client Name 1 and Client name 2 do not appear in your sample data, and
- The second column has a heading of Sheet but the values below that appear to come from the Client column in your data

However, see if these standard-entry formulas do what you want

Excel Workbook
ABCDE
1ClientCampaign NameSentUnique OpensOpens rate
2Product1Campaign1201470.00%
3Product1Campaign2181161.11%
4Product1Campaign310880.00%
5Product1Campaign49666.67%
6Product1Campaign55172214041.86%
7Product1Campaign61298565.89%
8Product1Campaign75360.00%
9Product1Campaign813028706155.16%
10Product1Campaign99407523456.69%
11Product1Campaign10107253652.09%
12
13
14RESULT
15ClientSheetMin OpenMax Open
16Client Name1Product141.86%56.69%
17Client Name2Product2
Min Max
 
Upvote 0
There may be a better way

=IF(COUNTIF(C2:C11,">1000"),MAX(IF(C2:C11>1000,E2:E11)),MAX(E2:E11))
Array formula, use Ctrl-Shift-Enter
=IF(COUNTIF(C2:C11,">1000"),MIN(IF(C2:C11>1000,E2:E11)),MIN(E2:E11))
Array formula, use Ctrl-Shift-Enter


Great, this is what I need. Thanks.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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