Results 1 to 6 of 6

Thread: sumifs in VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Could you clarify what you mean by qualifying the ranges (my formal programming training is ridiculously out of date)?

    Right now I have this and it still is giving me a value of zero. I changed a couple other things as well to help me debug:

        
        Dim eng_hours As Double
    Dim maj_group As Range, bill_summary As Range, mtd_ttl_hours As Range
        Set maj_group = Range("C:C")
        Set bill_summary = Range("D:D")
        Set mtd_ttl_hours = Range("E:E")
    eng_hours = Application.WorksheetFunction.SumIfs(mtd_ttl_hours, maj_group, bill_summary, "ENG", "LABOR")
        Debug.Print eng_hours
    Last edited by Aussiebear; 05-04-2025 at 11:12 PM.

Posting Permissions

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