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

Arran Pumphrey
Arran Pumphrey used Ask the Experts™
on
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,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015
Commented:
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

Author

Commented:
worked a treat!!! thank you so much :)
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
You're welcome. Glad to help. :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial