+ Reply to Thread
Results 1 to 9 of 9

Sum Data from one Column to Other Column based on Criteria

  1. #1
    Registered User
    Join Date
    02-23-2019
    Location
    Manama, Bahrain
    MS-Off Ver
    2007
    Posts
    22

    Sum Data from one Column to Other Column based on Criteria

    Hi All,

    Good Day!

    I need your kind assistance to provide me macro which will sum data from one column to other column based criteria. I have attached sample worksheet (SUM DATA)

    Data contains daily entries, like Date, Name, Sale And Pay, the VBA code should sum it on monthly bases for each Name as shown in sheet2.

    1- When clicking on Command Button in Sheet1,
    2- It should sum data from Rage(A:D) in sheet2
    3- output should be as shown in columns H:K in sheet2


    Note: the solution must be compatible with old excel 2003


    Your kind attention and prompt reply would highly be appreciated.

    Thank in Advance!
    Attached Files Attached Files
    Last edited by nabsher1; 06-20-2023 at 11:58 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,466

    Re: Sum Data from one Column to Other Column based on Criteria

    Please change your forum profile to Excel 2003 if that is what solutions must be compatible with.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question Re: Sum Data from one Column to Other Column based on Criteria


    Hi,

    where the result must be, in Sheet1 ?
    Last edited by Marc L; 06-20-2023 at 08:52 AM.

  4. #4
    Registered User
    Join Date
    02-23-2019
    Location
    Manama, Bahrain
    MS-Off Ver
    2007
    Posts
    22

    Re: Sum Data from one Column to Other Column based on Criteria

    Hello Marc,

    Thank you for your message.

    The Data and result both are in sheet2.

    Sheet2 Columns A to D contain data
    Sheet2 Columns H to K will be for result / output


    Time with date in column A is not important, you can remove it. But it should show monthly sale and pay for each item.

    Regards,

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: Sum Data from one Column to Other Column based on Criteria

    Please Login or Register  to view this content.
    Results in columns M:P
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    02-23-2019
    Location
    Manama, Bahrain
    MS-Off Ver
    2007
    Posts
    22

    Re: Sum Data from one Column to Other Column based on Criteria

    Dear Bro John,

    Thank you for your consideration and kind assistance once again.

    Your code worked perfectly. Your are such a great help as always!


    Have nice day Ahead!

    Profound Regards,
    Nabsher

  7. #7
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Sum Data from one Column to Other Column based on Criteria


    ( removed )

  8. #8
    Registered User
    Join Date
    02-23-2019
    Location
    Manama, Bahrain
    MS-Off Ver
    2007
    Posts
    22

    Re: Sum Data from one Column to Other Column based on Criteria

    Thank you too @ Marc L

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,335

    Re: Sum Data from one Column to Other Column based on Criteria

    ...Deleted...
    Last edited by sintek; 06-20-2023 at 03:34 PM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. Copy data from one column to another column based on criteria
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-17-2022, 04:23 AM
  2. Copy data from one or more column to another multiple column based on criteria
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2022, 03:12 AM
  3. [SOLVED] Unique List From Row Name Based On Criteria from Column Data Header and Column Contents
    By jweatherford in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2020, 10:19 AM
  4. [SOLVED] Capturing Multiple Column’s Data in a Single Column Based on Criteria
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2020, 01:40 PM
  5. [SOLVED] Transpose data from one column based on criteria of a different column with VBA Arrays
    By Anasurimbor in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-03-2018, 09:01 AM
  6. [SOLVED] Copy data from column to other sheets, based upon vlookup/criteria on column a
    By jedemeyer1 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-27-2013, 04:01 AM
  7. Extracting data from column based on specific criteria and pasting into new column
    By vanvalkenburg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2012, 10:26 PM

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