Combining data from 2 columns if they match each other

fsanjaya

New Member
Joined
Aug 8, 2023
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
Hello, I was wondering if anyone knows how to combine data from 2 separate columns into a new column only if they match each other? Attached below is a sample:
1692085116093.png

A and B are the 2 columns and C is the column containing the combined data.
 
Unfortunately, I am unable to replicate your error, so the problem should be with your data.
Book2
CJCKCL
2 
3 
4 
5 
6 
7 
8184184
9184184
10184184
11 
12 
13 
14 
15185 
16 
17 
18 
19 
20188 
21 
22190 
23 
24 
25216216
26 
27216216
28 
29 
30 
31 
32220 
33 
34220 
35 
36 
37 
38221221
39 
40221221
Sheet2
Cell Formulas
RangeFormula
CL2:CL40CL2=IF(COUNTIF($CJ$2:$CJ$40,$CK2),$CK2,IF(COUNTIF($CK$2:$CK$40,$CJ2),$CJ2,""))
That would make sense, thank you very much for helping me!
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,215,217
Messages
6,123,673
Members
449,116
Latest member
HypnoFant

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