Sorting through the return from an Array formula

tomlj123

New Member
Joined
Oct 17, 2017
Messages
1
I'm trying to use an Array formula to return all values from a field for a given customer's name and then use something (I thought probably either MAX or MIN) to sort through them to get the correct one.

The formula is currently {=MAX(IF(A3='Sheet 2'!AH:AH,'Sheet 2'!G:G,""))} where A is my customer name, AH is the customer name on the other sheet and G is the field I want returned.

When I evaluate the formula for a customer I know only occurs once, as expected it returns a list of values most of which are blank and one of which is populated. When I then evaluate the MAX function it returns a 0. My assumption would be that the max between a populated value and a blank would be the populated value but clearly not.

Can anyone tell me please what function to use to pull my populated value out of my list of mostly blanks?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,215,636
Messages
6,125,959
Members
449,276
Latest member
surendra75

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