Share via

Insert specific data into Excel as Table

Anonymous
2022-12-06T16:32:24+00:00

Hello together,

I have a very spezific problem to insert data from a .txt document into a excel table.

The data is displayed like this

{

	"ERDAT": "20221128",

	"LSTAR": "ITR",

	"DURATION": "0.1667",

	"SHRTTXT": "shorttext",

	"DESCTXT": "sample text "

},

{

	"ERDAT": "20221128",

	"LSTAR": "ITR",

	"DURATION": "2.7",

	"SHRTTXT": "other shorttext",

	"DESCTXT": "other sample text"

},

and there are ca. 400 more of these data-sets. So now i want to export them into excel and have erdat, lstar, duration, shrtxt and desctxt as headlines and beneath them the data. Is there any way to insert it into a exel table like that?

Thanks in advance.

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Lz365 38,201 Reputation points Volunteer Moderator
    2022-12-06T17:24:58+00:00

    Hi Teaman1999

    Are you sure your text file is constructed as you shared? Asking as it looks like a JSON (incomplete) document...

    In both cases you should be able to resolve this with Get & Transform (aka Power Query). Below is the result (quick & dirty) after transforming the data you shared when saved them as a text file

    Was this answer helpful?

    0 comments No comments