Tricky issue, Merging like named columns

aallaman

New Member
Joined
Dec 4, 2009
Messages
44
Hi All!

I am stumped by this one.

My data set has about 240 columns of metrics but is should only have 190. This is because the extra 50 columns are a result of some given metric having slight variations in naming convention. For example, there is a field that should be named Video 1 - Complete, but when the tracking was set up some genius used three different naming conventions for the same field depending on the ad unit:
Video 1 - Complete
Video1 - Complete
Video 1: Complete

This translated into one field being reported in multiple columns. I have about 40 metrics affected.

I can somewhat easily change the duplicated fields to a common name, but when I pivot Excel does not combine the data into one field. I get:
Video 1 - Complete
Video 1 - Complete2
Video 1 - Complete3

So I figure that I need to merge these fields in the dataset before pivoting. I have done this kinda stuff using Access queries, but unfortunately Access is not available at my work.

Is there a way to merge fields in Excel? How about a way to tell excel to look over the data set, then spit out on a new tab a revised dataset that has identically named field combined?

I'm pulling my hair out trying to do this manually.

Thanks for any suggestions!!!!

Allen
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
It is difficult to provide a solution as I have no 'view' of the data structure.
However, perhaps you could use SUBSTITUTE to convert them at an earlier stage?
For example, if A2 to A4 contains the three examples that you gave, the formula in B2 would be:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"Video ","Video"),"1:","1 -"),"Video1","Video 1")
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,787
Members
452,942
Latest member
VijayNewtoExcel

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