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 09-11-2010, 02:05 PM
  #1  
Iain Mac
PassionFord Post Whore!!
Thread Starter
 
Iain Mac's Avatar
 
Join Date: Jun 2003
Location: Scotland
Posts: 4,903
Received 6 Likes on 5 Posts
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?
Old 09-11-2010, 03:43 PM
  #2  
cjwood555
Advanced PassionFord User
 
cjwood555's Avatar
 
Join Date: Feb 2005
Location: Solihull
Posts: 2,090
Likes: 0
Received 0 Likes on 0 Posts
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
Old 09-11-2010, 04:33 PM
  #3  
Iain Mac
PassionFord Post Whore!!
Thread Starter
 
Iain Mac's Avatar
 
Join Date: Jun 2003
Location: Scotland
Posts: 4,903
Received 6 Likes on 5 Posts
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.
Old 09-11-2010, 04:55 PM
  #4  
cjwood555
Advanced PassionFord User
 
cjwood555's Avatar
 
Join Date: Feb 2005
Location: Solihull
Posts: 2,090
Likes: 0
Received 0 Likes on 0 Posts
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
Old 09-11-2010, 05:03 PM
  #5  
Iain Mac
PassionFord Post Whore!!
Thread Starter
 
Iain Mac's Avatar
 
Join Date: Jun 2003
Location: Scotland
Posts: 4,903
Received 6 Likes on 5 Posts
Default

Crikey - you've forgotten more than I'll ever know about this stuff because I'm afraid you lost me at vba!!!
Old 09-11-2010, 06:23 PM
  #6  
It's Czech Mate
............

 
It's Czech Mate's Avatar
 
Join Date: Jun 2003
Location: West Mids
Posts: 12,970
Received 102 Likes on 88 Posts
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
Old 09-11-2010, 06:59 PM
  #7  
Escow-Van
Too many posts.. I need a life!!
 
Escow-Van's Avatar
 
Join Date: Nov 2008
Location: Notts
Posts: 549
Likes: 0
Received 0 Likes on 0 Posts
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.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JoeyBoyden
Restorations, Rebuilds & Projects.
26
04-01-2024 02:36 PM
Red_bull
Ford Escort RS Turbo
6
25-08-2015 06:27 PM
turbotrev
Cars & Parts Wanted.
1
22-08-2015 11:41 AM
col93saphcos
Ford Sierra/Sapphire/RS500 Cosworth
5
07-08-2015 03:21 PM



Quick Reply: MS Excel - pivot tables help needed



All times are GMT. The time now is 09:51 AM.