Excel Formula Help

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
974
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi everyone,

My question is this:

Cell A1 = 3
Cell A2 = 3

Cell B1 = 0
Cell B2 = 1

Cell C1 = 2
Cell C2 = 2

Need a formula that count the total number of times a digit repeats from the cell below.

So using the example above the total = 2 since the 3 repeated in cells A1 & A2 and also 2 repeated in cells C1 and C2.

The minimum value = 0
The maximum value = 3

Cells A1 & A2 = Position 1
Cells B1 & B2 = Position 2
Cells C1 & C2 = Position 3

Thanks in advance!!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Never mind. Tetra201's solution is far better.
 
Last edited:
Upvote 0
Thanks for all your help.
I actually used this: Probably a shorter version...
=MIN(IF(COUNTIF($AM20,$AM21)>0,1)+IF(COUNTIF($AN20,$AN21)>0,1)+IF(COUNTIF($AO20,$AO21)>0,1),IF(COUNTIF($AM21,$AM20)>0,1)+IF(COUNTIF($AN21,$AN20)>0,1)+IF(COUNTIF($AO21,$AO20)>0,1))
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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