Find Maximum Value in Column Without Using Array or CTRL+SHFT+ENTER?

zgadson

Board Regular
Joined
Jul 16, 2015
Messages
68
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello,

Per the attached screenshot, I've got a spreadsheet that lists warehouse locations and the name of the item in each location. The sheet also has a column that says how many pallets high each item is stacked. There are 500+ different items, and a lot of them repeat because they are in multiple locations in my warehouse, so formulas with an array or that use CTRL+SHIFT+ENTER would take way too long to process. Is there an alternative way to search this whole sheet to get the maximum value for each item without using an array formula?

Thanks,
Zach
 

Attachments

  • Screenshot.PNG
    Screenshot.PNG
    27.7 KB · Views: 16
with Power Query (no CSE)
ITDSC1ADJ PLT HGHTITDSC1Max
BOTANICAL DISINFECTANT 55 GAL2BOTANICAL DISINFECTANT 55 GAL4
BOTANICAL DISINFECTANT 55 GAL4BOTANICAL DISINFCTNT CONC 275G3
BOTANICAL DISINFCTNT CONC 275G3BOTANICAL DISINFECTANT 1 QT4
BOTANICAL DISINFECTANT 55 GAL3BOTANICAL DISINFECTANT RETAIL4
BOTANICAL DISINFCTNT CONC 275G2BOTANICAL DISINFECTANT 5 GAL4
BOTANICAL DISINFECTANT 55 GAL2ELECTROSTATIC BACKPACK SPRAYER4
BOTANICAL DISINFECTANT 55 GAL2BOTANICAL DISINFECTANT 1 GAL3
BOTANICAL DISINFECTANT 1 QT3
BOTANICAL DISINFECTANT RETAIL3
BOTANICAL DISINFECTANT RETAIL1
BOTANICAL DISINFECTANT 5 GAL4
BOTANICAL DISINFECTANT 5 GAL1
ELECTROSTATIC BACKPACK SPRAYER3
ELECTROSTATIC BACKPACK SPRAYER4
BOTANICAL DISINFECTANT 1 GAL2
BOTANICAL DISINFECTANT 1 GAL2
BOTANICAL DISINFECTANT 1 GAL2
BOTANICAL DISINFECTANT RETAIL2
BOTANICAL DISINFECTANT RETAIL2
BOTANICAL DISINFECTANT 5 GAL3
BOTANICAL DISINFECTANT 1 GAL3
BOTANICAL DISINFECTANT RETAIL3
BOTANICAL DISINFECTANT RETAIL3
BOTANICAL DISINFECTANT RETAIL3
BOTANICAL DISINFECTANT 1 QT4
BOTANICAL DISINFECTANT RETAIL4
BOTANICAL DISINFECTANT 5 GAL3
BOTANICAL DISINFECTANT 1 QT3
BOTANICAL DISINFECTANT 5 GAL3
BOTANICAL DISINFECTANT 55 GAL3
BOTANICAL DISINFECTANT 5 GAL2
BOTANICAL DISINFECTANT 5 GAL3
BOTANICAL DISINFECTANT 55 GAL3
BOTANICAL DISINFECTANT 55 GAL3

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Group = Table.Group(Source, {"ITDSC1"}, {{"Max", each List.Max([ADJ PLT HGHT]), type number}})
in
    Group
 
Upvote 0

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.
@zgadson
Thanks for updating your profile. (y)

IF your Excel 365 has the FILTER function and noting from your image in post #1 that your data appears to be in a formal table, then here is another formula option to consider.

20 07 16.xlsm
ABC
1ITDSC1ADJ PLT HGHTMax
2Hydrogen Peroxide Cleaner (50 gallon)25
3Ammonia (clear, 5 gallon)26
4Disinfectant (55 gallon drum)22
5Drain Treatment 25 gallon)29
6Liquid Bleach (25 gallon)212
7Liquid Laundry Detergent (25 gallon)244
8Hydrogen Peroxide Cleaner (50 gallon)55
9Ammonia (clear, 5 gallon)66
10Disinfectant (55 gallon drum)12
11Drain Treatment 25 gallon)99
12Liquid Bleach (25 gallon)1212
13Liquid Laundry Detergent (25 gallon)4444
Max
Cell Formulas
RangeFormula
C2:C13C2=MAX(FILTER([ADJ PLT HGHT],[ITDSC1]=[@ITDSC1]))



.. or if you wanted to only report the maximum value against the first occurrence of each unique item in ITDSC1 then

20 07 16.xlsm
ABC
1ITDSC1ADJ PLT HGHTMax
2Hydrogen Peroxide Cleaner (50 gallon)25
3Ammonia (clear, 5 gallon)26
4Disinfectant (55 gallon drum)22
5Drain Treatment 25 gallon)29
6Liquid Bleach (25 gallon)212
7Liquid Laundry Detergent (25 gallon)244
8Hydrogen Peroxide Cleaner (50 gallon)5 
9Ammonia (clear, 5 gallon)6 
10Disinfectant (55 gallon drum)1 
11Drain Treatment 25 gallon)9 
12Liquid Bleach (25 gallon)12 
13Liquid Laundry Detergent (25 gallon)44 
Max (2)
Cell Formulas
RangeFormula
C2:C13C2=IF(COUNTIF(INDEX([ITDSC1],1):[@ITDSC1],[@ITDSC1])=1,MAX(FILTER([ADJ PLT HGHT],[ITDSC1]=[@ITDSC1])),"")
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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