Excel going data
Author
Discussion

boyse7en

Original Poster:

8,250 posts

196 months

Wednesday 20th June 2018
quotequote all
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?

joestifff

892 posts

137 months

Wednesday 20th June 2018
quotequote all
Vlookup will sort that out.

Or go Index Match for fancifulness.

Fore Left

1,627 posts

213 months

Wednesday 20th June 2018
quotequote all
A Pivot Table would be the neatest solution. You can then slice and dice the data as you wish. There's lots of examples out there for sales data.

iwantagta

1,324 posts

176 months

Wednesday 20th June 2018
quotequote all
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!

boyse7en

Original Poster:

8,250 posts

196 months

Thursday 21st June 2018
quotequote all
iwantagta said:
Hi,


Hope this helps and isnt condescending!
Yes it does, and no it's not at all. Excel isn't something i use so I'm at the real beginners end of learning stuff.