Count the change from one letter to another

vlmedia

New Member
Joined
Feb 27, 2020
Messages
8
I have 2 columns with letters from A-G and I would like to count how many As change to Bs, As to Cs, Bs to Ds, Ds to Es, etc... Basically have a summary of the changes for each letter (changes from current to new).

1616536227218.png


Thank you in advance for your help.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi,

One way:

Book3.xlsx
ABC
2AA7
3AB
4CD
5DC
6DE
7EF
8FG
9FG
10
11
12
Sheet858
Cell Formulas
RangeFormula
C2C2=SUMPRODUCT(--(A2:A20<>B2:B20))
 
Upvote 0
Think I misunderstood your question, may be this:

Book3.xlsx
ABCDE
1CurrentNewList# Changes
2AAA1
3ABB0
4CDC1
5DCD2
6DEE1
7EFF2
8FGG0
9FG
10
11
Sheet858
Cell Formulas
RangeFormula
E2:E8E2=SUMPRODUCT((A$2:A$20=D2)*(A$2:A$20<>B$2:B$20))
 
Upvote 0
This is the result I would like to obtain, calculate the number of As that changed to a B, As to a Cs, Bs to As, Bs to Cs, etc.

Book1
ABCDEF
1CurrentNew
2ABAA0
3ABB2
4CDC0
5DCD0
6DEE0
7EFF0
8FGG0
9FGBA0
10B0
11C0
12D0
13E0
14F0
15G0
16CA0
17B0
18C0
19D1
20E0
21F0
22G0
Sheet1
 
Upvote 0
This is the result I would like to obtain, calculate the number of As that changed to a B, As to a Cs, Bs to As, Bs to Cs, etc.

Book1
ABCDEF
1CurrentNew
2ABAA0
3ABB2
4CDC0
5DCD0
6DEE0
7EFF0
8FGG0
9FGBA0
10B0
11C0
12D0
13E0
14F0
15G0
16CA0
17B0
18C0
19D1
20E0
21F0
22G0
Sheet1
I think I figured it out, it would be a simple countifs.
 
Upvote 0
Now that you show what your expected results are, then yes, a SUMIFS will do it, how are you setting it up?

I'd recommend filling the Blanks in column D:

Book3.xlsx
ABCDEF
1CurrentNew
2ABAA0
3ABAB2
4CDAC0
5DCAD0
6DEAE0
7EFAF0
8FGAG0
9FGBA0
10BB0
11BC0
12BD0
13BE0
14BF0
15BG0
16CA0
17CB0
18CC0
19CD1
20CE0
21CF0
22CG0
Sheet859
Cell Formulas
RangeFormula
F2:F22F2=COUNTIFS(A$2:A$20,D2,B$2:B$20,E2)
 
Upvote 0
Solution
You're very welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,627
Messages
6,120,610
Members
448,973
Latest member
ChristineC

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