+ Reply to Thread
Results 1 to 3 of 3

Do sum when specific criteria meet by using VBA code

  1. #1
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Do sum when specific criteria meet by using VBA code

    In the attached file you can see some values in Z column and some numbers in N column you can see in cell
    N40 there is value 33 and in cell N69 again the same value 33 whenever this happen it means whenever value is same then do sum of Z40 and Z69 then place that sum in Z40 and put zero in Z69 do same process about cell N71 and N92 then do sum of Z71 and Z92 place the sum in Z71 and make Z92 zero then do same process for cell N117 and N139 and so on, see before after sheet i do it manualy in after sheet so please see after sheet so you can understand what i want to expect, thanks
    Attached Files Attached Files
    Last edited by keshavtale; 02-15-2021 at 02:31 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Do sum when specific criteria meet by using VBA code

    Try this.
    Please Login or Register  to view this content.
    Best Regards,
    Maras.

  3. #3
    Forum Contributor
    Join Date
    03-13-2013
    Location
    india
    MS-Off Ver
    excel 2010
    Posts
    427

    Re: Do sum when specific criteria meet by using VBA code

    thanks now my problem is solved, you give me the best solution

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. To skip specific cells if criteria does not meet
    By sparkerk5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2019, 02:28 AM
  2. [SOLVED] adding numbers only that meet a specific criteria
    By nooredein in forum Excel General
    Replies: 7
    Last Post: 11-14-2015, 11:03 AM
  3. [SOLVED] Add rows after a specific criteria meet
    By Konexcelmath in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-12-2014, 05:51 PM
  4. Need to sum cells that meet specific criteria. please help.
    By ben2012 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-03-2013, 02:47 AM
  5. Count values which meet specific criteria
    By araujo3rd in forum Excel General
    Replies: 10
    Last Post: 12-08-2012, 04:45 AM
  6. sum rows that meet a specific criteria
    By mase062006 in forum Excel General
    Replies: 1
    Last Post: 09-04-2008, 02:32 AM
  7. [SOLVED] Delete rows that do not meet specific criteria
    By SITCFanTN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2006, 11:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1