Fields and values bundled into one cell and text string

pattaman

New Member
Joined
Sep 23, 2019
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
Hi Guys,

I'm cleaning a fairly sizable data set, approx 200,000 rows and I'm stuck on the final bit I need to clean so I can analyse the data effectively.

There is one column where between 3 and 5 fields are bundled into one text string and I am struggling to separate the fields and values into corresponding columns in order to be able to pivot etc.

Not all cells contain the same fields, and there are multiple values for each field.

The cell composition is as below:

Cell: X2
{'Field_A': 'A1', 'Field_B': 'B1', 'Field_C': 'C1', 'Field_D': 'D1', 'Field_E': 'E1'}

Cell: X16
{'Field_C': 'C2', 'Field_D': 'D2', 'Field_E': 'E2'}

Cell: X18
{'Field_A': 'A1', 'Field_B': 'B2', 'Field_C': 'C1', 'Field_D': 'D3', 'Field_E': 'E3'}

These are examples of the difference in the text strings within cells going down the X column.

Any geniuses that are out there able to clean this formatting for me your help will be hugely appreciated!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Are you saying that this is exactly what might appear in the cells in column X? If not can you clarify with some exact examples.

What exactly do want as the result? Maybe the yellow, green or something else for that first example?

Excel Workbook
XYZAAABAC
1
2{'Field_A': 'A1', 'Field_B': 'B1', 'Field_C': 'C1', 'Field_D': 'D1', 'Field_E': 'E1'}A1B1C1D1E1
3Field_A: A1Field_B: B1Field_C: C1Field_D: D1Field_E: E1
4
5
15
16{'Field_C': 'C2', 'Field_D': 'D2', 'Field_E': 'E2'}
17
18{'Field_A': 'A1', 'Field_B': 'B2', 'Field_C': 'C1', 'Field_D': 'D3', 'Field_E': 'E3'}
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,479
Members
448,967
Latest member
visheshkotha

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