Min/max with criteria

syban

New Member
Joined
Mar 7, 2016
Messages
8
Hello, I am using an averageif to calculate the average of the prices that a company bought boxes of aluminium. I am using the following function and excel calculates the average price of aluminium buys only (the data is in different page and the function is on another sheet called results)
=AVERAGEIF('SHEET A'!F2:F14;"ALUMINIUM";'SHEET A'!K2:K14)

I am having problem with doing the same thing with min and max function. I want excel to find the minimum and maximum price of aluminium buys only.

I would appreciate the help because this is for my work.

Sincerely yours
Syban
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
=MIN(IF(('SHEET A'!$F$2:$F$14="ALUMINIUM")*('SHEET A'!$K$2:$K$14<>""),'SHEET A'!$K$2:$K$14))
use control shift enter to get an Array
{=MIN(IF(('SHEET A'!$F$2:$F$14="ALUMINIUM")*('SHEET A'!$K$2:$K$14<>""),'SHEET A'!$K$2:$K$14))}

for MAX
{=MAX(IF(('SHEET A'!$F$2:$F$14="ALUMINIUM"),'SHEET A'!$K$2:$K$14))}
 
Upvote 0
=MIN(IF(('SHEET A'!$F$2:$F$14="ALUMINIUM")*('SHEET A'!$K$2:$K$14<>""),'SHEET A'!$K$2:$K$14))
use control shift enter to get an Array
{=MIN(IF(('SHEET A'!$F$2:$F$14="ALUMINIUM")*('SHEET A'!$K$2:$K$14<>""),'SHEET A'!$K$2:$K$14))}

for MAX
{=MAX(IF(('SHEET A'!$F$2:$F$14="ALUMINIUM"),'SHEET A'!$K$2:$K$14))}

Thank you very much etaf! lifesaver...!Very helpful!!!!
 
Upvote 0
Oops sorry mate....I just noticed that this calculates the min and max of the entire column....not only by the ones belonging to Aluminium buys.... :(
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,431
Members
448,961
Latest member
nzskater

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