• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

code for Sum on the basis of criteria

Veeru106

Member
Hi,


I am looking for one code , which gives me sum of filtered values (mentioned in Creteria tab- Vrtt,Grtt and Utt for Fin deptt.) from FY-2017 tab and paste total in Summary tab in B1 cell.
Thanks
 

Attachments

  • New file.xlsm
    11 KB · Views: 5
Thank you...please confirm how you have defined Criteria range from H3 to L6 and data table starting from A1 to E16...
 
For Database and criteria arguments in Dsum function you have to take all range including headers

For field argument you can take Field Name within double quotes or index number
 
Dsum Formula is good but when my data changes next month then i need to change range of the table as well, which i want to avoid. that's why i am looking for code.i will try to use your code and let you know the results. thank you..
 
Back
Top