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
 

Some videos you may like

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
Joined
Dec 30, 2008
Messages
12,392
Office Version
  1. 365
Platform
  1. Windows
Why not just use =MIN(B1:D1) ?
 

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top