Excel - Help converting or pulling data from a list to show in a grid

Hi All,

i have data that is in a list that the website creates. what i am trying to do it turn it into a grid so we can look at occurrences by account number... currently it comes up like this:

whichtype : Business
visatype : VisaApp
processingfees : 
visaservice : 
embassyservices : 
country : India
procurement : 60.00
processingfee : 
passportname1 : 
passportname2 : 
passportname4  : 
passportcollect : Will Send In
nationality : India
collcontact : 
collcompany : 
colladd : 
colladd2 : 
colltown : 
collpcode : 
colltel : 
dateofbirthday : 01
dateofbirthmonth : 01
dateofbirthyear : 2000
passportreturn : 
delcontact : 
delcompany : 
deladd : 
deladd2 : 
deltown : 
delpcode : 
deltel : 
account : 004368
username : VisaApp
costcenter : 
ref2 : 
ref4 : 
ref3 : 
ref5 : 
ref6 : 
costcenter : 
booker_email : 
client_email : 
passportnum : 
passportexpmonth : 
passportexpyear : 
addnotes : 
conttel : 
accadd : 
destaccadd : 
duebackbyd : 
duebackbym : 
duebackbyy : 
traveldated : 
traveldatem : 
traveldatey : 
passrepchg : 0.00
sendappform : 
sendbusiness : 
sendinvitation : 
sendinviterequest : 
sendlink : 
visanumber : 4368000519
docnum : ZE259256
consultantname : 
requirements : Valid passport for six months upon exit<br>Two clear pages in passport<br>Two recent photographs, 50x50mm in size<br>One application form, filled out online<br>Original UK company letter (refer below)<br>Invitation letter from company in India (refer below)<br>Proof of two years residency in the UK (refer below)<br>Non-UK resident form, if applicable (refer below)<br>Vaccination certificate, if applicable (refer below)<br>Declaration form (refer below)<br>Signed authorisation letter (refer below)<br>
whichtype : Business
visatype : VisaApp
processingfees : 
visaservice : 
embassyservices : 
country : United Arab Emirates
procurement : 30.00
processingfee : 
passportname1 : 
passportname2 : 
passportname4  : 
passportcollect : Will Send In
nationality : United Kingdom
collcontact : 
collcompany : 
colladd : 
colladd2 : 
colltown : 
collpcode : 
colltel : 
dateofbirthday : 01
dateofbirthmonth : 01
dateofbirthyear : 2000
passportreturn : 
delcontact : 
delcompany : 
deladd : 
deladd2 : 
deltown : 
delpcode : 
deltel : 
account : 004368
username : VisaApp
costcenter : 
ref2 : 
ref4 : 
ref3 : 
ref5 : 
ref6 : 
costcenter : 
booker_email : 
client_email : 
passportnum : 
passportexpmonth : 
passportexpyear : 
addnotes : 
conttel : 
accadd : 
destaccadd : 
duebackbyd : 
duebackbym : 
duebackbyy : 
traveldated : 
traveldatem : 
traveldatey : 
passrepchg : 0.00
sendappform : 
sendbusiness : 
sendinvitation : 
sendinviterequest : 
sendlink : 
visanumber : 4368000520
docnum : ZE259292
consultantname : 
requirements : Valid passport for six months upon exit<br>One clear page in passport<br>Onward/return travel tickets<br>Proof of sufficient funds <br>
whichtype : Business
visatype : VisaApp
processingfees : 
visaservice : 
embassyservices : 
country : United Arab Emirates
procurement : 30.00
processingfee : 
passportname1 : 
passportname2 : 
passportname4  : 
passportcollect : Will Send In
nationality : Australia
collcontact : 
collcompany : 
colladd : 
colladd2 : 
colltown : 
collpcode : 
colltel : 
dateofbirthday : 01
dateofbirthmonth : 01
dateofbirthyear : 2000
passportreturn : 
delcontact : 
delcompany : 
deladd : 
deladd2 : 
deltown : 
delpcode : 
deltel : 
account : 004368
username : VisaApp
costcenter : 
ref2 : 
ref4 : 
ref3 : 
ref5 : 
ref6 : 
costcenter : 
booker_email : 
client_email : 
passportnum : 
passportexpmonth : 
passportexpyear : 
addnotes : 
conttel : 
accadd : 
destaccadd : 
duebackbyd : 
duebackbym : 
duebackbyy : 
traveldated : 
traveldatem : 
traveldatey : 
passrepchg : 0.00
sendappform : 
sendbusiness : 
sendinvitation : 
sendinviterequest : 
sendlink : 
visanumber : 4368000521
docnum : ZE259293
consultantname : 
requirements : Valid passport for six months upon exit<br>One clear page in passport<br>Onward/return travel tickets<br>Proof of sufficient funds <br>
whichtype : Business
visatype : VisaApp
processingfees : 
visaservice : 

Open in new window


what i need to do is turn it around so that the column headings are the fields. i.e "country" becomes a heading....

can anyone point me to the easiest route to do this

thanks,
Arran PumphreyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
I have a simple formula solution to achieve this......
Assuming your data is in column A, then use Excel's Text to Columns feature to separate this data into two columns using : as a delimiter. Now you have two columns of data.
Now copy one set of headers i.e. range A1:A65 and on Sheet2 in cell A1, right click --> Paste Special --> Transpose.
This will place the headers on sheet2 in row1.
Now in cell A2, try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone and drag it across and down until you get blank cells.
All your data from sheet1 will be rearranged on sheet2 in a tabular format.

Formula in A2
=IFERROR(INDEX(Sheet1!$B$1:$B$5000,SMALL(IF(Sheet1!$A$1:$A$5000=A$1,ROW(Sheet1!$A$1:$A$5000)-ROW(Sheet1!$A$1)+1),ROWS(A$2:A2))),"")

I have copied the formula on Sheet2 for 25 rows down, so if you add more such data on Sheet1, that will be reflected on sheet2 automatically.
You will need to change the range reference in the formula if data goes below row 5000.

For details refer to the attached workbook.
Is this something you can work with?
RearrangeData.xlsx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Arran PumphreyAuthor Commented:
worked a treat!!! thank you so much :)
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. Glad to help. :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.