# Possible IF/MIN function solution

#### Ride The Lightning

##### Board Regular
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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

#### jasonb75

##### Well-known Member
Why not just use =MIN(B1:D1) ?

#### Ride The Lightning

##### Board Regular
DoH! Why not? what an idiot!!

Replies
6
Views
81
Replies
3
Views
96
Replies
8
Views
579
Replies
13
Views
229
Replies
9
Views
168

1,126,908
Messages
5,621,588
Members
415,844
Latest member
nigeywigey

### 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.

### Which adblocker are you using?

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

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