Possible IF/MIN function solution

Ride The Lightning

Board Regular
Joined
Jul 14, 2005
Messages
238
Hi

I have a text string in Cell A1, for example "inthebeginninggodcreatedtheheavenandtheearth."

I have calculations in cells B1, C1, D1 calculating the number of times a letter appears in the text string. For example, in another part of the worksheet I enter "g" in a particular cell and cell B1 returns the value "3", I enter "o" in another cell and C1 returns "1" and I enter "d" in another cell and D1 returns "3".

I want to be able to calculate the number of times an anagram of the letters entered appears so in the above example it would be 1.

If the results were B1=5, C1=2, D1=4, the answer would be 2
If the results were B1=0, C1=2, D1=4, the answer would be 0
If the results were B1=4, C1=6, D1=4, the answer would be 4

I am struggling to workout what functions to use for this problem, but I presume a combination of IF and MIN may do the trick, but would appreciate any help.

Kind Regards

RTL
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,215,507
Messages
6,125,212
Members
449,214
Latest member
mr_ordinaryboy

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