Reply to topic  [ 6 posts ] 
Excel help please [solved] 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 6:06 pm
Posts: 6355
Location: IoW
Reply with quote
Is there an easy way to merge columns of information in Excel?

I have two sheets (2010 & 2011), each with a list of names and list of values.

Where the names are the same, I want to list one name with a combined value for both years; but there are names in 2010 that don't appear in 2011 (and vice versa) which also need to be in the final list.

All I can think of is using lookups, but is there a simpler function?

Help!

_________________
Before you judge a man, walk a mile in his shoes; after that, who cares?! He's a mile away and you've got his shoes!


Last edited by Spreadie on Thu Jul 07, 2011 10:01 am, edited 1 time in total.



Thu Jul 07, 2011 9:12 am
Profile
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 6:44 pm
Posts: 4141
Location: Exeter
Reply with quote
Whack all the data into one combined sheet and then generate a pivot table to show sums of data?

_________________
"The woman is a riddle inside a mystery wrapped in an enigma I've had sex with."


Thu Jul 07, 2011 9:44 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 6:06 pm
Posts: 6355
Location: IoW
Reply with quote
Combining the sheet is the issue.

If I just append one list on the end of another there will be duplicate names, and a pivot won't like that (will it?).

I'm having a play with the consolidate function, but it isn't being very cooperative. :?

_________________
Before you judge a man, walk a mile in his shoes; after that, who cares?! He's a mile away and you've got his shoes!


Thu Jul 07, 2011 9:54 am
Profile
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 6:44 pm
Posts: 4141
Location: Exeter
Reply with quote
That's exactly what the pivot table is good at. You basically set the pivot table up so that for each name it shows the sum of the amounts listed against that name in the data set...

_________________
"The woman is a riddle inside a mystery wrapped in an enigma I've had sex with."


Thu Jul 07, 2011 9:59 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 6:06 pm
Posts: 6355
Location: IoW
Reply with quote
Scrap that, I didn't realise a pivot table would combine the values for identical names.

Thanks Jon, I appreciate it.

_________________
Before you judge a man, walk a mile in his shoes; after that, who cares?! He's a mile away and you've got his shoes!


Thu Jul 07, 2011 10:00 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Yup,

Do as Jon said and in the pivot table drag the name field into the "Row Labels" section and drag the values you want to merge into the "Values" section.

Make sure it says "Sum of ..." in the field.

If it says "Count of ..." then click it and click "Value Field Settings" and change it to Sum.

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Thu Jul 07, 2011 10:03 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.