Glad to help

Don Guillett
SalesAid Software
dguille...@gmail.com

From: Jorge Marques 
Sent: Wednesday, February 22, 2012 10:00 AM
To: excel-macros@googlegroups.com 
Subject: Re: $$Excel-Macros$$ Help on gathering duplicate summing and counting

Hi, Aamir Shahzad was option was good, but it suited me for doing another thing 
in another report, but i needed in a macro format in order to delete the data 
whenever i pull a report, dguillett1 was exactly as i wanted :). thank you very 
much both of you.



2012/2/20 dguillett1 <dguille...@gmail.com>

  I didn’t do columns F & G so use this
  Sub ConsolidateTotalsSAS()
  Dim i As Long
  For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1
  If Cells(i + 1, 1) = Cells(i, 1) Then
  Cells(i, "e") = Val(Cells(i + 1, "e")) + Val(Cells(i, "e"))
  Cells(i, "f") = Val(Cells(i + 1, "f")) + Val(Cells(i, "f"))
  Cells(i, "g") = Val(Cells(i + 1, "g")) + Val(Cells(i, "g"))
  Rows(i + 1).Delete
  End If
  Next i
  End Sub


  Don Guillett
  SalesAid Software
  dguille...@gmail.com

  From: Aamir Shahzad 
  Sent: Monday, February 20, 2012 11:11 AM
  To: excel-macros@googlegroups.com 
  Subject: Re: $$Excel-Macros$$ Help on gathering duplicate summing and counting

  Dear Jorge,


  See the third table in attached sheet. 

  Aamir Shahzad

  On Mon, Feb 20, 2012 at 9:30 PM, Jorge Marques <leote.w...@gmail.com> wrote:

    Hi friends, i have a problem, 
    1. i trying to use a report and i have to sum the column H, G, F, if the 
orders numbers are equal and 
    2. leave the information in column B,C,D, gathered. 
    3. The problem is that i was doing it with formulas, but didn´t have a 
dinamic range that´s the first, 
    4. then the system has changed, the report is generated by a sql, so i 
loose the formulas everytime i generate a report and i can´t gather the column 
B,C,D.
    5. is there any way i can do it, by macro, running it after i push the 
report from SQL? Thank you very much.


    -- 
    FORUM RULES (986+ members already BANNED for violation)
     
    1) Use concise, accurate thread titles. Poor thread titles, like Please 
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will 
not get quick attention or may not be answered.
     
    2) Don't post a question in the thread of another member.
     
    3) Don't post questions regarding breaking or bypassing any security 
measure.
     
    4) Acknowledge the responses you receive, good or bad.
     
    5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
     
    NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
     
    
------------------------------------------------------------------------------------------------------
    To post to this group, send email to excel-macros@googlegroups.com




  -- 

  Regards,

  Aamir Shahzad


  -- 
  FORUM RULES (986+ members already BANNED for violation)
   
  1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
   
  2) Don't post a question in the thread of another member.
   
  3) Don't post questions regarding breaking or bypassing any security measure.
   
  4) Acknowledge the responses you receive, good or bad.
   
  5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
   
  NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
   
  
------------------------------------------------------------------------------------------------------
  To post to this group, send email to excel-macros@googlegroups.com

  -- 
  FORUM RULES (986+ members already BANNED for violation)
   
  1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
   
  2) Don't post a question in the thread of another member.
   
  3) Don't post questions regarding breaking or bypassing any security measure.
   
  4) Acknowledge the responses you receive, good or bad.
   
  5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
   
  NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
   
  
------------------------------------------------------------------------------------------------------
  To post to this group, send email to excel-macros@googlegroups.com


-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 
------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to