Excel going data
Discussion
Sorry, i'm sure this is a basic question, but I've got two sets of sales data that I need to join together.
For example:
2018 data
AJS 345
BMW 123
ERF 245
NGK 654
STP 592
2017 data
AJS 123
BMW 345
CRF 419
ERF 953
STP 653
Id like to have just three columns - Name, 2018 sales and 2017 sales. As you can see, not all the names match up so I can't just copy/paste it into place.
Should look like this at the end
2018 2017
AJS-----345---123
BMW---123---345
CRF------0----419
ERF----245---953
NGK----654----0
STP 592 653
How best to tackle this?
For example:
2018 data
AJS 345
BMW 123
ERF 245
NGK 654
STP 592
2017 data
AJS 123
BMW 345
CRF 419
ERF 953
STP 653
Id like to have just three columns - Name, 2018 sales and 2017 sales. As you can see, not all the names match up so I can't just copy/paste it into place.
Should look like this at the end
2018 2017
AJS-----345---123
BMW---123---345
CRF------0----419
ERF----245---953
NGK----654----0
STP 592 653
How best to tackle this?
Hi,
Pivot table seems the way to go to me.
Setup your data as per the start of the below - i.e. have it all in one long set of columns - just add the year at the end.
Make sure your columns have headers.

Select all the data - then go to Insert > Pivot table
Drag the rows you want into the row section (presumably supplier), Year as columns & Qty as value.
Be careful with names, if they arent identical (including hidden spaces at the end) then it will split them over two rows.
If you want you can always copy a pivot table and paste special values to make it look like you want it to.
If you alter your data simply right click on the pivot and refresh it.
Hope this helps and isnt condescending!
Pivot table seems the way to go to me.
Setup your data as per the start of the below - i.e. have it all in one long set of columns - just add the year at the end.
Make sure your columns have headers.
Select all the data - then go to Insert > Pivot table
Drag the rows you want into the row section (presumably supplier), Year as columns & Qty as value.
Be careful with names, if they arent identical (including hidden spaces at the end) then it will split them over two rows.
If you want you can always copy a pivot table and paste special values to make it look like you want it to.
If you alter your data simply right click on the pivot and refresh it.
Hope this helps and isnt condescending!
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


