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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

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