Results 1 to 5 of 5

using sumifs in excel vba

Threaded View

I burticus using sumifs in excel vba 09-14-2014, 12:55 PM
6StringJazzer Re: using sumifs in excel vba 09-14-2014, 07:54 PM
I burticus Re: using sumifs in excel vba 09-15-2014, 03:08 AM
romperstomper Re: using sumifs in excel vba 09-15-2014, 03:34 AM
I burticus Re: using sumifs in excel vba 09-15-2014, 07:52 AM
  1. #1
    Registered User
    Join Date
    09-14-2014
    Location
    Norwich england
    MS-Off Ver
    excel 2007
    Posts
    3

    Unhappy using sumifs in excel vba

    The code below works fin but I want to loop the sum to get a total so I have changed it to

    Subtot = [=SUMIFS(Data!E2:E126,Data!C2:C126,wsv.Cells(1,I))]

    if I hover over the panel it shows me the correct info but always return's a zero as the result.

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

       For I = 3 To 28 Step 1
                
                If wsv.Cells(1, I) = "" Then
                    Exit For
                    
                    Else
                
                    Subtot = [=SUMIFS(Data!E2:E126,Data!C2:C126,(C1))]
                    
                    tot = tot + Subtot
                    
                    
                    
                End If
    
               
                Next I

    Confused, please repair my sanity.
    Last edited by 6StringJazzer; 09-14-2014 at 05:43 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel SUMIFS help
    By ccapitanu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2014, 10:17 AM
  2. SUMIFS Puzzle - Trying to avoid adding multiple SUMIFS to get valid result
    By haldavid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 03:42 PM
  3. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM
  4. [SOLVED] SUMIFS in Excel 2003
    By finist in forum Excel General
    Replies: 4
    Last Post: 08-29-2012, 12:42 PM
  5. SUMIFS in Excel 2003
    By minimacros in forum Excel General
    Replies: 1
    Last Post: 07-13-2010, 01:18 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