MINIFS VBA Function

jaybee3

Active Member
Joined
Jun 28, 2010
Messages
307
Code:
{=MIN(IF(($B$2:$B$65536="A")*($C$2:$C$65536=1),$A3:$A65336))}

I currently have the above function on an excel sheet, I was wondering if anyone had a function to calculate the MIN via VBA instead?

For all intents and purposes the sheet i'm looping through looks like:
Code:
Date          Str1    Num1
01/02/2001    A       1
01/01/2001    A       1
01/02/1988    A       2
01/01/1987    A       2
01/01/1986    A       2
01/02/2001    B       1
01/01/2000    B       1
...
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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