Excel Formula Help

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
965
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Need help with a formula.

Trying to calculate how many digits repeated from a previous range but NOT in the same position.

For example,

A1 = 7
B1 = 8
C1 = 3
D1 = 8
E1 = 9

A2 = 1
B2 = 6
C2 = 3
D2 = 3
E2 = 5

In the above example the only digit that repeats but not in the same column letter would be the number 3. Appeared in cell C1 and also D2. Even though it appears in cell C1 and C2 I do NOT want to calculate this.

Also the minimum value has to be 1 per digit.
So if a 3 was in cell E2 the total would still be 1.

For example:

A1 = 5
B1 = 5
C1 = 8
D1 = 7
E1 = 5

A2 = 1
B2 = 2
C2 = 9
D2 = 3
E2 = 5

The count would be 1 even though a 5 appears in cell A1 and E1 and 5 appears in cell E2.

Thanks in advance
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
In C1:
=AND(COUNTIF(A:A,B1),A1<>B1)+0

Copy down.

Excel Workbook
ABC
1710
2860
3330
4831
5950
Sheet1
 
Last edited:
Upvote 0
Scott,

Thank you very much. This is exactly what I needed.
Very much appreciated!!
Steve
 
Upvote 0

Forum statistics

Threads
1,215,743
Messages
6,126,608
Members
449,321
Latest member
syzer

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