Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default Find similar lines and combine

Sami,

Did you find a solution for this with a macro? I am trying to do basically
the same thing.

Thanks,

Scott

"Sami82" wrote:


Hi All,
I am writing a smaller part of a large macro and i need it to find
similar lines within the table and combine the totals. The first 5
columns need to be the same to combine the rows, for example:

A B C D
E F
Name Code Start Finish Amount
Total

PersonA PERA 01/10/2005 10/10/2005 $100.00 $3542.25
PersonA PERA 01/10/2005 10/10/2005 $100.00 $5487.50
PersonA PERB 22/09/2005 30/09/2005 $2451.00 $2547.78
PersonA PERA 01/10/2005 10/10/2005 $24.00 $1542.00

As above, the first two lines would be replaced with a singular row,
and the bottom rows would stay the same.

PersonA PERA 01/10/2005 10/10/2005 $100.00 $9029.75
PersonA PERB 22/09/2005 30/09/2005 $2451.00 $2547.78
PersonA PERA 01/10/2005 10/10/2005 $24.00 $1542.00

If anyone can help me with this i would be extremely happy!

Thank you!!


--
Sami82
------------------------------------------------------------------------
Sami82's Profile: http://www.excelforum.com/member.php...o&userid=27111
View this thread: http://www.excelforum.com/showthread...hreadid=491307


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find similar lines and combine


I found the best success with the post that Dave Peterson put through.
It takes a while to set up but once its done it works like a treat.
(thanks Dave)


--
Sami82
------------------------------------------------------------------------
Sami82's Profile: http://www.excelforum.com/member.php...o&userid=27111
View this thread: http://www.excelforum.com/showthread...hreadid=491307

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
Combine Two Similar Arrays Rob Excel Worksheet Functions 1 November 17th 09 09:31 PM
combine rows with similar data, but different fields in excel Herbert Seidenberg Excel Discussion (Misc queries) 0 February 25th 09 08:26 PM
How to combine data from 100 similar Excel files Satish Excel Discussion (Misc queries) 2 November 6th 08 03:04 PM
How do I combine quantities of similar line items Joshua Hullender Excel Discussion (Misc queries) 2 January 3rd 06 11:42 PM
Combine query to count products with similar names pomalley Excel Worksheet Functions 8 April 22nd 05 02:15 AM


All times are GMT +1. The time now is 04:00 AM.

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

About Us

"It's about Microsoft Excel"