Join Two Columns Into One

robbarba

Board Regular
Joined
Apr 17, 2016
Messages
79
Office Version
  1. 365
Platform
  1. Windows
I have two columns ODID and NDID, what I'd like to do is join the two columns into one column. included is the formula that have tried to tweak to get the second column P to append to the column T area marked in Yellow, I am working a refresh project, and techs are reporting a refresh when it is a like for like exchage or a second device was added as determined by the result int column S

Book1
OPQRST
266ODIDNDIDOMODELNMODELREFRESH ACTUALRPT DEVICE ID
267D214041D2772317480LATITUDE 5440YD214041
268D247516D2783155400LATITUDE 5440ND247516
269D256479D278875LATITUDE 5420LATITUDE 5440YD256479
270D276752D2766415430Latitude 5430 RuggedND276752
271D240644D2760905410LATITUDE 5440YD240644
272D265928D277018PRECISION 5570PRECISION 5680YD265928
273D255181D261969Surface Pro 8Surface Pro 8ND255181
274D269619D276506LATITUDE 5430LATITUDE 5440YD269619
275D233340D2755757490LATITUDE 5440YD233340
276D235644D2775597490LATITUDE 5440YD235644
277D239369D2766835400LATITUDE 5440YD239369
278D235738D2728307490LATITUDE 5440YD235738
279D278366D278366Surface 5 13 INCHSurface 5 13 INCHND278366
280D241018D2784205410LATITUDE 5440YD241018
281D228156
282D228156D275581IPADPRECISION 5680ND276960
283D276960D2766545430Latitude 5430 RuggedND212876
284D212876D28315574805440Y
28516 11
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
Validation
Cell Formulas
RangeFormula
T267:T283T267=IFERROR(INDEX(IF(COUNTBLANK(N267:N271)>=4,P$267:P$284,O$267:O$284),SMALL(IF(NOT(ISBLANK(IF(COUNTBLANK(N267:N271)>=4,P$267:P$284,O$267:O$284))),ROW(O$267:O$284)-ROW(O$267)+1),ROWS(T$267:T267))), "")
S285S285=COUNTIF(S267:S284,"Y")
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
It is not at all clear what you are trying to achieve. Especially since the formula you have given in col T refers to col N, which is not shown in your mini sheet.
As a best guess, to join 2 columns, could it be one of these?
If not please show what you have, what you want and explain again in relation to the new sample data.

23 12 03.xlsm
OPUV
266ODIDNDID
267D214041D277231D214041D214041
268D247516D278315D277231D277231
269D256479D278875D247516D247516
270D276752D276641D278315D278315
271D240644D276090D256479D256479
272D265928D277018D278875D278875
273D255181D261969D276752D276752
274D269619D276506D276641D276641
275D233340D275575D240644D240644
276D235644D277559D276090D276090
277D239369D276683D265928D265928
278D235738D272830D277018D277018
279D278366D278366D255181D255181
280D241018D278420D261969D261969
281D269619D269619
282D228156D275581D276506D276506
283D276960D276654D233340D233340
284D212876D283155D275575D275575
28516 D235644D235644
286D277559D277559
287D239369D239369
288D276683D276683
289D235738D235738
290D272830D272830
291D278366D278366
292D278366D241018
293D241018D278420
294D278420D228156
295D228156D275581
296D275581D276960
297D276960D276654
298D276654D212876
299D212876D283155
300D283155
301
Join cols
Cell Formulas
RangeFormula
U267:U300U267=TOCOL(O267:P284,1)
V267:V299V267=UNIQUE(TOCOL(O267:P284,1))
Dynamic array formulas.
 
Upvote 0
thank you, the root issue is that SAP takes a single column for data input for retrieval, I am currently manually copying columns O & N as a value sort the list so the blanks are at the bottom. Column O is the old device and Column N is the new device, Column T is the result of combining columns O & N, in this way I can pull the device information and validate "completed" refresh. I hope this provides more clarification.
 
Upvote 0
As I mentioned before, you are referring to column N but we cannot see that!
Also, your description in post 1 referred to combining ODID and NDID which appear in that post to be columns O & P, not N

Could you please post new sample data and show us only the two columns that you want to combine and the wanted results (manually filled in)? Hide all the other irrelevant columns before creating the XL2BB Mini Sheet.
 
Upvote 0
as requested, I have hidden all information that is not relevant to the formula.
Book1
NOPQRSTU
1CorrectBy Formula
2DateODIDNDIDOMODELNMODELREFRESH ACTUALRPT DEVICE ID
3Thu 11/30/2023D214041D2772317480LATITUDE 5440YD212876D214041
4Thu 11/30/2023D247516D2783155400LATITUDE 5440ND214041D247516
5Thu 11/30/2023D256479D278875LATITUDE 5420LATITUDE 5440YD228156D256479
6Thu 11/30/2023D276752D2766415430Latitude 5430 RuggedND233340D276752
7Thu 11/30/2023D240644D2760905410LATITUDE 5440YD235644D240644
8Thu 11/30/2023D265928D277018PRECISION 5570PRECISION 5680YD235738D265928
9Thu 11/30/2023D255181D261969Surface Pro 8Surface Pro 8ND239369D255181
10Thu 11/30/2023D269619D276506LATITUDE 5430LATITUDE 5440YD240644D269619
11Thu 11/30/2023D233340D2755757490LATITUDE 5440YD241018D233340
12Thu 11/30/2023D235644D2775597490LATITUDE 5440YD247516D235644
13Thu 11/30/2023D239369D2766835400LATITUDE 5440YD255181D239369
14Thu 11/30/2023D235738D2728307490LATITUDE 5440YD256479D235738
15Thu 11/30/2023D278366D278366Surface 5 13 INCHSurface 5 13 INCHND261969D278366
16Thu 11/30/2023D241018D2784205410LATITUDE 5440YD265928D241018
17Thu 11/30/2023D269619D228156
18Thu 11/30/2023D228156D275581IPADPRECISION 5680ND272830D276960
19Thu 11/30/2023D276960D2766545430Latitude 5430 RuggedND275575D212876
20Thu 11/30/2023D212876D28315574805440YD275581 
2111D276090 
2211D276506 
23D276641 
24D276654 
25D276683 
26D276752 
27D276960 
28D277018 
29D277231 
30D277559 
31D278315 
32D278366 
33D278420 
34D278875 
35D283155 
Sheet1
Cell Formulas
RangeFormula
S21S21=COUNTIF(S3:S20,"Y")
S22S22=SUM(S3:S21)
U3:U20U3=IFERROR(INDEX(IF(COUNTBLANK(N3:N7)>=4,P$3:P$20,O$3:O$20),SMALL(IF(NOT(ISBLANK(IF(COUNTBLANK(N3:N7)>=4,P$3:P$20,O$3:O$20))),ROW(O$3:O$20)-ROW(O$3)+1),ROWS(U$3:U3))), "")
U21:U35U21=IFERROR(INDEX(IF(COUNTBLANK(N21:N25)>=4,P$3:P$20,O$3:O$20),SMALL(IF(NOT(ISBLANK(IF(COUNTBLANK(N21:N25)>=4,P$3:P$20,O$3:O$20))),ROW(O$3:O$20)-ROW(O$3)+1),ROWS(T$3:T21))), "")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Q3:Q20Expression=$Q3="LOOKUP"textNO
R3:R20Expression=$R3="LOOKUP"textNO
 
Upvote 0
Thanks for the new XL2BB sample and explanation. From what I can see, the column V formula from post #2 returns the correct results, just in a different order to your post #5 results. Try this addition to my previous formula.

Excel Formula:
=SORT(UNIQUE(TOCOL(O3:P20,1)))
 
Upvote 0

Forum statistics

Threads
1,215,206
Messages
6,123,636
Members
449,109
Latest member
Sebas8956

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