+ Reply to Thread
Results 1 to 5 of 5

using sumifs in excel vba

  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

    Please Login or Register  to view this content.

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

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,907

    Re: using sumifs in excel vba

    The syntax looks OK to me so the problem could be that this is the wrong formula for your data, or the problem could be in the data itself. Could you attach your entire file?

    To post a file:
    1. Under the text box where you type your reply click the Go Advanced button.
    2. In the next screen look above the reply box and click the "paper clip" icon. You will get a pop-up screen.
    3. In the pop-up, click Add then Select to select a file from your local drive
    4. Click the Upload button to upload the file
    5. Click Done to attach it.

    It will be displayed as an attachment underneath your post text. Alternatively as the last step you can click the Insert Inline button and a hyperlink to the file will be inserted directly into your post text in the spot where your cursor is set at the moment you click the button.

    Here are step-by-step instructions with screen shots
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    09-14-2014
    Location
    Norwich england
    MS-Off Ver
    excel 2007
    Posts
    3

    Re: using sumifs in excel vba

    6StringJazzer

    Appreciate the insight and have attached the entire file.

    What I am trying to achieve is for the function to calculate the total value of a products accumulated risk phrases.

    Although there are several sheets no data has been loaded yet except for some test data to the sheet 666-58 series and the actual data on the data sheet.

    Again thanks for your help,

    Regards,
    I Burticus.
    Attached Files Attached Files

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,987

    Re: using sumifs in excel vba

    Use:
    Please Login or Register  to view this content.
    although you don't seem to be doing anything with the tot variable.
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Registered User
    Join Date
    09-14-2014
    Location
    Norwich england
    MS-Off Ver
    excel 2007
    Posts
    3

    Re: using sumifs in excel vba

    Thank you romper stomper, much appreciated.

    The tot variable is going to be added to Listbox1 to show the products in order of numerical rank and therefore highest potential risk

    Thanks again,

    regards,
    I Burticus

+ 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. 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