Formula - Digit Frequency

ststern45

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

Need help with a formula.

Cell A1 = 1
Cell B1 = 3
Cell C1 = 7
Cell D1 = 1
Cell E1 = 4
Cell F1 = 5

Cell A2 = 1
Cell B2 = 2
Cell C2 = 3
Cell D2 = 7
Cell E2 = 4
Cell F2 = 1

I would like to count how many digits from cell range A2 through F2 appear in cell range A1 through F1.

1>Remove duplicates from cell range A1 through F1 = 1-3-7-4-5
2>Remove duplicates from cell range A2 through F2 = 1-2-3-7-4
3>Result = 4
digits 1-3-7-4 appear in both cell ranges.

Thanks in advance!!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Re: Formula Help - Digit Frequency

Hi,

it's more complex than I thougt:

=SUM(MMULT(IFERROR(--((A2:F2)/TRANSPOSE(FREQUENCY((A2:F2),A2:F2)>0)=TRANSPOSE((A1:F1)/TRANSPOSE(FREQUENCY((A1:F1),A1:F1)>0))),0),TRANSPOSE(COLUMN(A1:G1)^0)))


CTRL SHIFT ENTER

:cool:



Christian
 
Upvote 0
Thanks for the formula. When I get home later I'll give this a go.
Thanks so much!!
 
Upvote 0

Forum statistics

Threads
1,213,567
Messages
6,114,342
Members
448,570
Latest member
rik81h

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