+ Reply to Thread
Results 1 to 29 of 29

summing up value based on another column criteria

  1. #1
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    summing up value based on another column criteria

    Dear Developer,

    Please find thread where i want to summing up columnO based on ColumnC & ColumnD values,


    Please Login or Register  to view this content.
    It basically summing result would be came in coulmnO after matching criteria of columnC & columnD
    answer would be
    For Maharashtra Kharif-2019 "25"
    For Maharashtra Rabi-2019-20 "180"
    For Gujarat Kharif-2019 "320"
    For Gujarat Rabi-2019-20 "200"
    For Odisha Kharif-2019 ''381"
    For Odisha Rabi-2019-20 "231"

    NOTE: i have huge data set , above sample is just for understanding purpose hence we need VBA codings for it.

    Thankyou for lookin: thankyou for helping
    Last edited by 6StringJazzer; 12-20-2020 at 10:03 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,418

    Re: summing up value based on another column criteria

    SUMIFS should be able to do that easily, without VBA:

    =SUMIFS(N:N,D:D,D2,C:C,C2)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    No, Sir, Actully i have huge data set around with 80,000+ rows and 58 columns it was just a part of vba codings, i just posted a sample based with exact columns i have to append this codings into my actual data set of codes. hope you got it sir. thankyou

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,418

    Re: summing up value based on another column criteria

    OK. I can't help you. Sorry!!

  5. #5
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    it's become a challenge for me, because we have match two columns criteria e.g. ColumnC & ColumnD and summingup ColumnO and resulting would come in ColumnN which also based on ColumnC & ColumnD criteria. As i am an intermediate student of VBA so i have basic knowledge, but still i think we can use here Lbound and Ubound codings, please help me out !!!

  6. #6
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: summing up value based on another column criteria

    Why dont you try a pivot table?
    Please be as complete as possible in your asking so it may save use all the time to rework the solution because you didn't give all the requirements. If you have a layout in mind please work it out first so we can adapt our solution to it. Thanks.
    If you have been helped, maybe you could click the *

  7. #7
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    as i told in thread sir, that we have huge data set almost 80,000+ rows and 58 columns we have already vba coded file we have to just figure out this problem with coding if you will suggesting me any code than i will simply add that code in my actual huge data set coding file. so it will run from start to end. above query is just a part of that vba coded file. i even can't attach whole file it's almost 64 mb excel file would you like to do whole vba activity for us in free of cost ??? and i guess answer is NO, hence i just posted a illustration samples just for understanding purpose so i could get any code for it.

    Thankyou

  8. #8
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,016

    Re: summing up value based on another column criteria

    Could you attach your sample workbook?
    Please read the yellow banner at the top of the page on how to attach your sample workbook.
    Please include the result as wanted.

  9. #9
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    i think have attached the sample file
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    Dear Akuini

    I have attched the sample file

    Please go through it...and thankyou so much for helping me out !!

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,843

    Re: summing up value based on another column criteria

    Why are you posting this question when you said it was solved three days ago on another forum?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

  12. #12
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    when i am trying to attach link it's not posting my replay.

  13. #13
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    Dear Moderator please de-activate my account from here. i have already member of another board. i extremely apologize.

  14. #14
    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
    82,498

    Re: summing up value based on another column criteria

    You now have 10 posts here, so will be able to post the link.

    You do not need to leave this forum, so your account will stay. You DO need to abide by our rules, however, which are here for you to read: https://www.excelforum.com/forum-rul...rum-rules.html

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    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.

  15. #15
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    Dear Moderator,

    Thankyou so much for co-operating with me, i got the answer from another board and also he asked me to read why cross posting is not allowing on board, i totally understand and respect to all coder & developer, as this is my first time where i am posting question on some board and finding the answer, hence i am not much aware of certain rules, and truth is also i have not read it, but now i got the solution of query, please help me or suggest how can i mark query has been resolved.

    Thankyou and i am on learning stage so i promise i will learn all boards rules steadly.

  16. #16
    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
    82,498

    Re: summing up value based on another column criteria

    You are not understanding what you have been told!

    Cross-posting is allowed, as long as you declare it.

    I explained how to mark the thread as solved in my last post.

  17. #17
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    okay got it.

  18. #18
    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
    82,498

    Re: summing up value based on another column criteria

    You still haven't posted the requested link - please do so NOW.

  19. #19
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria


  20. #20
    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
    82,498

    Re: summing up value based on another column criteria

    Thank you.

  21. #21
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    i tried before but our forum was not accepting my replay.

  22. #22
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    i must say thankyou to you...

    thankyou for co-operating and guidance to me.

  23. #23
    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
    82,498

    Re: summing up value based on another column criteria

    i tried before but our forum was not accepting my replay.
    I explained why in post #14.

    It would be really helpful if you actually READ what people post!

  24. #24
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    okay sure.

  25. #25
    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
    82,498

    Re: summing up value based on another column criteria

    And thanks for the rep.

  26. #26
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    your welcome.

  27. #27
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    Hii AliGW moderator, Good morning, Hope you doing well,

    Below is my new query can you please help me out, it's basically about substracting in merge cells,

    I have merged cells value in ColumnK & ColumnO what we need to do is substracting ColumnO-ColumnK and merged result should be in ColumnP,

    ColumnK ColumnO
    80 100


    50 90


    60 100

    so merged result would in ColumnP accordingly 20,40,40,

    below is attached link of another forum, but as my sir said that he is not working on merged cells, you can read the comment, please help me out for finding above solution in vba codes,

    https://www.mrexcel.com/board/thread...3#post-5608010

    Thankyou

  28. #28
    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
    82,498

    Re: summing up value based on another column criteria

    Start a new thread with a suitable title. Don't forget the cross-post link and add a sample workbook.

  29. #29
    Registered User
    Join Date
    12-20-2020
    Location
    India
    MS-Off Ver
    Ms Office - 2007
    Posts
    34

    Re: summing up value based on another column criteria

    ok sure

+ 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. Summing Based on Multiple Criteria in another Column
    By sumifs in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-13-2020, 12:03 AM
  2. [SOLVED] Summing a Column Based on Criteria in Another
    By samcarroll00243 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2019, 10:30 AM
  3. Summing a Column Based on Two Criteria
    By jwomack1978 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-17-2019, 11:32 AM
  4. [SOLVED] Summing column based on certain criteria
    By KoolKatelyn in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-27-2017, 09:32 AM
  5. [SOLVED] Summing row ranges based on non-sequential column criteria
    By TexasKersh in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-20-2014, 08:21 AM
  6. Summing rows based on criteria in another column
    By reybie in forum Excel General
    Replies: 2
    Last Post: 07-11-2006, 02:15 PM
  7. [SOLVED] Counting & Summing based on criteria on another column
    By Chicago D in forum Excel General
    Replies: 2
    Last Post: 08-25-2005, 02:05 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