ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Match & Merge columns (https://www.excelbanter.com/excel-discussion-misc-queries/194799-match-merge-columns.html)

TitleGB

Match & Merge columns
 
I have 4 columns (two have UPC's and two have prices) I need to match the two
UPC columns and merge identical UPC's into one column. But I want the prices
to remain in seperate columns so I can compare.

Dave Peterson

Match & Merge columns
 
For this kind of thing, I do.

Start a new worksheet.
Copy the UPCs from both columns to a single column (one under the other).
Include a single row of headers.

The use data|Filter|advanced filter to get unique values from that single
column.
http://contextures.com/xladvfilter01.html#FilterUR
and
http://www.contextures.com/xlVideos04.html#AdvFilt2003
(Both from Debra Dalgleish's site)


Then I'd use a couple of =vlookup()'s (or =index(match())) functions to return
the values from each list.

Debra Dalgleish has lots of notes on =vlookup() and =index(match()) he
http://www.contextures.com/xlFunctions02.html (for =vlookup())
and
http://www.contextures.com/xlFunctions03.html (for =index(match()))
and
http://contextures.com/xlFunctions02.html#Trouble


TitleGB wrote:

I have 4 columns (two have UPC's and two have prices) I need to match the two
UPC columns and merge identical UPC's into one column. But I want the prices
to remain in seperate columns so I can compare.


--

Dave Peterson


All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com