Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PVT PVT is offline
external usenet poster
 
Posts: 19
Default simple macro to compare lists

Hello, I am trying to create a simple macro to compare two sorted
lists and move cells to be able to compare based on product number, by
keeping them together by class. Each product has three rows with data
that all need to be moved with it.

My thought was to shift cells down if the product numbers don't match
by row, since they will be sorted. However how to do this by class?

The raw data looks like this:

class product# totals class product# totals
1 240101 300 1 240101 302
$20000
$23000
$300 $301
1 240102 300 1 240103 500
$24000 $34000
$305 $401
1 240103 468 1 240104 200
$50000 $50500
$588 $599
1 240106 464 1 240108 455
$50900 $56888
$599 $533
2 240201 546 2 240202 555
$55985 $58499
$539 $578


The macro should make it look like this:
class product# totals class product# totals
1 240101 300 1 240101 302
$20000
$23000
$300 $301
1 240102 300
$34000

$401
1 240103 468 1 240103 500
$50000
$24000
$588
$305
1 240104 200
$50500
$599
1 240106 464
$50900
$599
1 240108 455

$56888

$533
2 240201 546
$55985
$539

2 240202 555

$58499
$578

Any help would be greatly appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default simple macro to compare lists

So does the data reside in columns 1,2,3 and then 4,5, and 6?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro/VBA code to compare lists & highlight similiar items ACCAguy Excel Programming 8 January 28th 09 08:04 PM
Compare two lists ExcelInExcel Excel Discussion (Misc queries) 2 June 8th 07 09:09 PM
Compare two lists Vicki Needs Help New Users to Excel 1 May 11th 07 03:46 AM
Compare Lists Lemmesee Excel Discussion (Misc queries) 5 January 9th 07 03:15 AM
Compare 2 lists macro help! zaq121 Excel Programming 0 April 27th 06 08:43 PM


All times are GMT +1. The time now is 02:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"