Calculating Mode, Min with a criteria

smalik

Board Regular
Joined
Oct 26, 2006
Messages
180
Office Version
  1. 365
Platform
  1. Windows
The formula in M15 calculates the mode of the month based on the criteria of Policy ID. Data source is in B4:B43

I am getting the desired results using the Array formula. I am not a big fan of Array formulas as they hog up space and slowed down the calculations when the data set is too big. Is there a way to get the desired results without using an Array formula?

Formulas in M, N, & O are similar array formulas. Please Ignore L3:P9 as here I was calculating the values manually to see if my array formula was was working correctly.

Any help is greatly appreciated.

Best.

1602516611180.png
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
If you're using excel 2019 (or newer) then you could possibly use MINIFS and MAXIFS instead of MIN and MAX arrays.
There is no non array alternative for mode with criteria.
 
Upvote 0

Forum statistics

Threads
1,213,530
Messages
6,114,162
Members
448,554
Latest member
Gleisner2

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