If/Max?

chaddres

Board Regular
Joined
Jun 14, 2014
Messages
149
Office Version
  1. 365
Platform
  1. Windows
I have a list of supplies in Column A and prices in Column B. I am constantly adding rows of data to the worksheet. I want to get the highest Value for "Sugar" and also the highest value for "Lemons". Is there a way to combine an IF Supply = "Sugar" with a Max function?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
If you have OFFICE 365 then you could use MAXIFS function.

If not try the array formula in cell D2 below.
This is an array formula that must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCD
1SuppliesPrice
2Sugar$ 4.00$ 5.00
3Sugar$ 5.00
4Lemons$ 4.00$ 5.00
5Sugar$ 1.00
6Lemons$ 4.00
7Lemons$ 3.00
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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