Filter result from two columns to one - excel formula

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
HI, we want to filter data from two column to one as per result sheet

(Excel 2007 and Excel 2010)

Book1
ABC
1S.No.BarcSecond
21
32SQ351
43SQ352
54SQ353
65SQ354
76SQ354 - 1
87SQ358
98SQ354
109SQ354 - 2
1110SQ354 - 3
1211SQ357
Sheet1


Result Sheet

Book1
A
20Final
21SQ351
22SQ352
23SQ353
24SQ354
25SQ354 - 1
26SQ354 - 2
27SQ354 - 3
28SQ357
29SQ358
Sheet1
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try using Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    MergeColumns = Table.CombineColumns(Source,{"Barc", "Second"},Combiner.CombineTextByDelimiter("", QuoteStyle.None),"Merged"),
    SorteRows = Table.Sort(MergeColumns,{{"Merged", Order.Ascending}}),
    RemoveBlanks = Table.SelectRows(SorteRows, each ([Merged] <> "")),
    RemoveColumn = Table.SelectColumns(RemoveBlanks,{"Merged"}),
    RenameColumn = Table.RenameColumns(RemoveColumn,{{"Merged", "Final"}})
in
    RenameColumn
Book1
ABCDE
1S.No.BarcSecondFinal
21SQ351
32SQ351SQ352
43SQ352SQ353
54SQ353SQ354
65SQ354SQ354
76SQ354 - 1SQ354 - 1
87SQ358SQ354 - 2
98SQ354SQ354 - 3
109SQ354 - 2SQ357
1110SQ354 - 3SQ358
1211SQ357
Sheet1
 
Upvote 0
Solution

Forum statistics

Threads
1,216,025
Messages
6,128,352
Members
449,443
Latest member
Chrissy_M

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