General Car Related Discussion. To discuss anything that is related to cars and automotive technology that doesnt naturally fit into another forum catagory.

MS Excel - pivot tables help needed

Thread Tools
 
Search this Thread
 
Old Nov 9, 2010 | 02:05 PM
  #1  
Iain Mac's Avatar
Iain Mac
Thread Starter
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 4,903
Likes: 6
From: Scotland
Default MS Excel - pivot tables help needed

I have two versions of the same spreadsheet that contain about 95% the same information, but one of them will have new additions or alterations.

I believe that a Pivot Table is the quickest way to find these new entries but haven't got a clue where to start!

Anyone able to offer a step-by-step guide?
Reply
Old Nov 9, 2010 | 03:43 PM
  #2  
cjwood555's Avatar
cjwood555
Advanced PassionFord User
 
Joined: Feb 2005
Posts: 2,090
Likes: 0
From: Solihull
Default

Is there a unique indentifier for each row?

If so, the quickest and easiest way is to copy and paste both into one worksheet, one after the other, Select All, then:

- Data
- Filter
- Advanced Filter
- OK if it gives an error
- Criteria range - select just the unique identifier field
- Tick 'Unique records only'
- Ok
- Select all, copy and paste into new sheet, then you have your merged sheets.

HTH
Chris
Reply
Old Nov 9, 2010 | 04:33 PM
  #3  
Iain Mac's Avatar
Iain Mac
Thread Starter
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 4,903
Likes: 6
From: Scotland
Default

Chris

Thanks for this but I don't think I've explained properly - the method above has given me 18,440 unique records from 38,693 lines in the combined sheet.

The first version has 19,184 lines, and the second has 19,510 lines - its the 326 new lines I'm wanting to identify.
Reply
Old Nov 9, 2010 | 04:55 PM
  #4  
cjwood555's Avatar
cjwood555
Advanced PassionFord User
 
Joined: Feb 2005
Posts: 2,090
Likes: 0
From: Solihull
Default

Oh ok, sorry I thought it was so you could create a merged spreadsheet.

You can try it in vba? Something like:

Code:
Dim a = "New Worksheet Name"
Dim b = "Old Worksheet Name" 
Dim x = 1 //Column number for unique ID

With Worksheets(a)

  for i = 0 to .Rows.Count
    for j = 0 to Worksheets(b).Rows.Count
      if Worksheets(b).Cells(j, x).Value = .Cells(i, x).Value then .Rows(i).Delete
     end for
  end for

end with
Haven't put it in to test and it's been a wee while so worth trying on a duplicate file first(!).

Chris
Reply
Old Nov 9, 2010 | 05:03 PM
  #5  
Iain Mac's Avatar
Iain Mac
Thread Starter
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 4,903
Likes: 6
From: Scotland
Default

Crikey - you've forgotten more than I'll ever know about this stuff because I'm afraid you lost me at vba!!!
Reply
Old Nov 9, 2010 | 06:23 PM
  #6  
It's Czech Mate's Avatar
It's Czech Mate
............
 
Joined: Jun 2003
Posts: 12,970
Likes: 103
From: West Mids
Default

If there is a unique identifier use a vlookup if not combine a few rows and make a unique id then use a vlookup. If u need help, mail them to me and I'll show you
Reply
Old Nov 9, 2010 | 06:59 PM
  #7  
Escow-Van's Avatar
Escow-Van
Too many posts.. I need a life!!
 
Joined: Nov 2008
Posts: 549
Likes: 0
From: Notts
Default

If there is a sequential ID or date for each row, you could filter by 'more than' the last ID or date on the original sheet.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JoeyBoyden
Restorations, Rebuilds & Projects.
26
Jan 4, 2024 02:36 PM
Red_bull
Ford Escort RS Turbo
6
Aug 25, 2015 06:27 PM
turbotrev
Cars & Parts Wanted.
1
Aug 22, 2015 11:41 AM
borboyous
Cars for Sale
6
Aug 22, 2015 11:17 AM
col93saphcos
Ford Sierra/Sapphire/RS500 Cosworth
5
Aug 7, 2015 03:21 PM




All times are GMT. The time now is 03:15 PM.