-1

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!

Abhishek Aryan
  • 19,936
  • 8
  • 46
  • 65

2 Answers2

1

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 :)

https://json-csv.com/

EDIT: There is a PayPal after 1mb file size so use https://konklone.io/json/ to convert larger files for free.

1

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.)

enter image description here

2>> on the top there are a few tabs. go to the one that says Data. Then go to Text to Columns

enter image description here

3>> then click on the button that says Delimited and then click next.

enter image description here

4>> then check the box that says Other and in the text box put a { and hit finish

enter image description here

5>> next, highlight and copy all of the cells.

enter image description here

6>> click on cell A2. Right click and select Transpose.

enter image description here

7>> now clear the top row.

enter image description here

8>> next, select column A and repeat the steps 2 and 3. Go to Data > Text to Columns > Delimited > Next.

enter image description here enter image description here

9>> check the box named Comma, change the input for other to :, and click next.

enter image description here

10>> for each of the columns with the column names, select the Do not import column (skip) option

enter image description here enter image description here

11>> hit Ctrl+F and select the Replace tab.

enter image description here

12>> in the Find what: input, put " and leave the Replace with: input blank. Click Replace All and okay.

enter image description here

13>> repeat step 12 replacing the Find what: input with "}.

enter image description here

14>> next, add the column headers in the first row.

enter image description here

15>> with any of the data cells selected, hit Ctrl+L and click OK.

enter image description here

16>> now all of your data is in a nice organized table.

enter image description here

ToMakPo
  • 855
  • 7
  • 27