I have data that is in a big text file that looks like this:
{"id": 111, "role": "manager", "name": "John doe"}
with every "row" of info separated by swirly brackets. How do I get this to be a table in excel? Thanks in advance!
I have data that is in a big text file that looks like this:
{"id": 111, "role": "manager", "name": "John doe"}
with every "row" of info separated by swirly brackets. How do I get this to be a table in excel? Thanks in advance!
You have what is called a JSON object in the text file and it needs to be converted to a CSV file to be opened in Excel. I would use this tool to convert it to CSV and from there you can start modifying data in Excel. Hope it helps :)
EDIT: There is a PayPal after 1mb file size so use https://konklone.io/json/ to convert larger files for free.
Here is how I would do it:
1>> copy the information into cell A1
. (if it puts it into multiple rows then skip to step 8.)
2>> on the top there are a few tabs. go to the one that says Data
. Then go to Text to Columns
3>> then click on the button that says Delimited
and then click next.
4>> then check the box that says Other
and in the text box put a {
and hit finish
5>> next, highlight and copy all of the cells.
6>> click on cell A2
. Right click and select Transpose
.
7>> now clear the top row.
8>> next, select column A
and repeat the steps 2 and 3. Go to Data > Text to Columns > Delimited > Next
.
9>> check the box named Comma
, change the input for other
to :
, and click next.
10>> for each of the columns with the column names, select the Do not import column (skip)
option
11>> hit Ctrl+F
and select the Replace
tab.
12>> in the Find what:
input, put "
and leave the Replace with:
input blank. Click Replace All
and okay.
13>> repeat step 12 replacing the Find what:
input with "}
.
14>> next, add the column headers in the first row.
15>> with any of the data cells selected, hit Ctrl+L
and click OK
.
16>> now all of your data is in a nice organized table.