Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

datatable - How can I create a table in Excel from a spreadsheet that contains data that is grouped in rows

I have a thousands of rows of spreadsheet that contains companies addresses and contact informationhere data in a spreadsheet (excel 1 image) that I need to create a table with the data populated across the headers below.

Table headers


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you don't want to use a VBA or spend time with other custom queries, you can do something like this (not, need to create helper column):

Create a helper column that does a count if:

enter image description here

Using this formula:

=IF(B2="Facility ID:", COUNTIFS($B$1:B2,"Facility ID:"),"")

enter image description here

Then structure your data table like this:

enter image description here

And you can use this formula (starting in cell I7):

=INDEX($A:$E,MATCH($H7,$A:$A,0)+I$4,I$5)

enter image description here

Then all you need to do is drag down the rows and increment the counts and it should work provided that the spacings always stay the same and the locations of the fields also stay the same


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...