C
C
Chichi2015-12-02 21:54:28
excel
Chichi, 2015-12-02 21:54:28

How to categorize data in category-value format in Excel?

I'm trying to do a regression analysis of data that I've parsed from a single site. I was only able to get data from the site in this awkward format:
The data in the 1st column contains information about the data type, separated by a ':' character.
Year:Storey:Area:Condition:Type:Name
The data in the 2nd column contains the actual information corresponding to the data types in the first column, also separated by ':'
2015:3:170:Renovated:TypeB:John
In my Excel spreadsheet about 13,000 records with data in this format. I want to categorize data.
For clarity, I will present a picture with the original format:
d5443a837cf3468987c4a73839c23e12.jpg
I am trying to convert the data to the following format:
215b38f9d0af49f184c8044e7c990d2a.jpg
I tried to split the data into columns using separators, but the problem is that the number of categories in the record varies. For 1 record there can be 5 categories (data types), and for another 2 data types.
How to categorize data of this format in Excel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Fedoryan, 2015-12-04
@ChicoId

Quite simple and with formulas. Here's what happened:
Now cell by cell:
For Year :
For Storey :
For Area :
For Condition :
For Type :
For Name :
The main thing is that the fields correspond to the desired cells, or change the names of the cells in the formulas.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question