MIN per Category of Items

gcefaloni

Board Regular
Joined
Mar 15, 2016
Messages
119
Hi guys,

I have a question regarding how to calculate minimum cost (using MIN function) per category of items.
Fund Name & Series=LEFT(A2,20)COST (% of assets)=MIN COST PER FUND
AGF Canadian Money Market Fund MF SeriesAGF Canadian Money M0.626851
AGF Canadian Money Market Fund MF SeriesAGF Canadian Money M0.626851
AGF Canadian Money Market Fund MF SeriesAGF Canadian Money M0.626851
Invesco Canada Money Market Fund Ser AInvesco Canada Money0.700001
Invesco Canada Money Market Fund Ser AInvesco Canada Money0.700001
Invesco Canada Money Market Fund Ser AInvesco Canada Money0.700001
Invesco Canada Money Market Fund Ser AInvesco Canada Money0.700001
National Bank Short Term Canadian Income Fund InvNational Bank Short 0.5042
Barreau du Quebec Bond FundBarreau du Quebec Bo0.784
Scotia T-Bill Fund - Series AScotia T-Bill Fund -0.48
Scotia Canadian Bond Index Fund Series AScotia Canadian Bond0.85
Scotia Money Market Fund Series AScotia Money Market 0.76
Scotia Premium T-Bill ($100M - $250M) Series AScotia Premium T-Bil0.46
Scotia Premium T-Bill ($250M - $1MM) Series AScotia Premium T-Bil0.46
Scotia Premium T-Bill $>$1MM Series AScotia Premium T-Bil0.46
BMO Money Market Fund Series ABMO Money Market Fun0.81
BMO Money Market Fund Series ABMO Money Market Fun0.81
CI Money Market Fund Class ACI Money Market Fund0.76
CI Money Market Fund Class ACI Money Market Fund0.76
CI Money Market Fund Class ACI Money Market Fund0.76
CIBC Money Market Fund Class ACIBC Money Market Fu0.65
CIBC Canadian T-Bill Fund Premium ClassCIBC Canadian T-Bill0.38
CI Short-Term Corporate Class ACI Short-Term Corpor0.78
CI Short-Term Corporate Class ACI Short-Term Corpor0.78
CI Short-Term Corporate Class ACI Short-Term Corpor0.78
CI Short-Term Corporate Class ACI Short-Term Corpor0.78
Desjardins Money Market Fund A ClassDesjardins Money Mar0.68
Manulife Money Fund Advisor SeriesManulife Money Fund 0.18
Manulife Money Fund Advisor SeriesManulife Money Fund 0.18
Manulife Money Fund Advisor SeriesManulife Money Fund 0.18
Manulife Money Fund Advisor SeriesManulife Money Fund 0.18
Manulife Money Fund Advisor SeriesManulife Money Fund 0.18
Fidelity Canadian Money Market Fund Series AFidelity Canadian Mo0.64
Fidelity Canadian Money Market Fund Series AFidelity Canadian Mo0.64
Fidelity Canadian Money Market Fund Series AFidelity Canadian Mo0.64
FMOQ Money Market FundFMOQ Money Market Fu0.4
FDP Cash Management Portfolio Series AFDP Cash Management 0.6
Beutel Goodman Income Fund Class DBeutel Goodman Incom0.78
Beutel Goodman Money Market Fund Class DBeutel Goodman Money0.22
United Global Fixed Income Pool Class WUnited Global Fixed 0.2
United Global Fixed Income Pool Class WUnited Global Fixed 0.2

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


I'm trying to figure out how to return in Column D the lowest cost (Column C) per each fund (Column A) so that I could filter out all the more expensive funds and only have the data for the least expensive Class of each fund.

Thanks a lot in advance for the help, it will be very appreciated.

Gabriel
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
In your example the cost seems to be the same for each category. For example, AGF Canadian Money M = 0.626851 for each entry. If they weren't, then you could use {=MIN(IF(B2=$B$2:$B$42,$C$2:$C$42))}. You have to Ctrl + Shft+Enter the formula because its an array formula. Another idea is to use a Pivot Table and take the minimum of the Values area.
 
Upvote 0
Same costs got me confused too, maybe minimum for some group of items from column A is desired... but I doubt...
 
Upvote 0
In your example the cost seems to be the same for each category. For example, AGF Canadian Money M = 0.626851 for each entry. If they weren't, then you could use {=MIN(IF(B2=$B$2:$B$42,$C$2:$C$42))}. You have to Ctrl + Shft+Enter the formula because its an array formula. Another idea is to use a Pivot Table and take the minimum of the Values area.

Yea, sorry I copied a wrong portion of the data. It is a huge dataset of like 150,000 lines, some have series showing different costs per line some show the same.. But essentially if the first fund "AGF Canadian Money Market Fund MF Series" had one cost at 0.6281 and one at .33 and one at 0.21, I would want all 3 to show 0.21 for those 3 lines and then do the same for the next fund so that I have the lowest amount for each fund. Then I would be able to do another column that said if value in Column C = valuein Column D then show 1 else 0 and basically filter out all the 0s to have only the series that cost the less for each fund.
 
Upvote 0
In your example the cost seems to be the same for each category. For example, AGF Canadian Money M = 0.626851 for each entry. If they weren't, then you could use {=MIN(IF(B2=$B$2:$B$42,$C$2:$C$42))}. You have to Ctrl + Shft+Enter the formula because its an array formula. Another idea is to use a Pivot Table and take the minimum of the Values area.

Just a suggestion - when posting an ARRAY formula, don't include the {}, if the user is new, they may copy that to their cell as well, and then try and CSE, which will not work, and give them an error message ;)
 
Upvote 0

Forum statistics

Threads
1,214,378
Messages
6,119,188
Members
448,873
Latest member
jacksonashleigh99

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