How to Reformat Data Exported from a Database

cantab04

New Member
Joined
Jan 12, 2018
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I frequently find myself in the position of having data on the same individual appear in many different rows. Each row is unique, however, because it contains different info about this individual. For example, someone might have 3-4 different addresses, and so when I query my database, the export I receive looks like the table below:


1597422764170.png


I'd like to know if there's a quick way to convert the format above to the one below, which would then allow me to run VLookups on the data.

1597422791990.png
 
Last edited:

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try this

Book1
ABCDEF
2JaunNewyork
3JaneHouston
4JaunChicago
5JaunPhilap
6JaneDenver
7JaneMiami
8
9
10JaunNewyorkChicagoPhilap
11JaneHoustonDenverMiami
12
13
14
Sheet5
Cell Formulas
RangeFormula
C10:H11C10=IFERROR(INDEX($B$2:$B$7,AGGREGATE(15,6,IF($A10=$A$2:$A$7,(ROW($A$2:$A$7)-ROW($A$2)+1)),COLUMN($A:$F))),"")
Dynamic array formulas.
 
Upvote 0
Where is the data coming from?
 
Upvote 0
Wow, CA_Punit, thanks a lot. It appears this formula does the trick. Really appreciate your help!
 
Upvote 0
please update your account detail so that we may know which version of excel you are using

and thanks for feedback
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top