Closed Thread
Results 1 to 2 of 2

WorksheetFunction SumIfs With Multiple Criteria

  1. #1
    Registered User
    Join Date
    06-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 365
    Posts
    85

    WorksheetFunction SumIfs With Multiple Criteria

    Hi,

    I am using the below formula within a macro to calculate the sum of everything with the code "120012". This formula works absolutely fine.

    I'm trying to get the below to calculate the total when the criteria is "120010" + "820600". However i am unsure how to edit the below formula


    Sheets("Journal").Range("K2").Value = WorksheetFunction.SumIf(Sheets("Journal").Range("C:C"), "=120010", _
    Sheets("Journal").Range("D:D"))



    Any help is much appreciated

    Harry

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: WorksheetFunction SumIfs With Multiple Criteria

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    http://www.excelforum.com/excel-form...-criteria.html

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] WorksheetFunction.SumIfs + Variable
    By VitoBdG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2016, 10:21 AM
  2. [SOLVED] WorksheetFunction Countifs with Multiple Criteria
    By tlscowden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2015, 08:43 AM
  3. [SOLVED] Application.worksheetfunction.sumifs on large dataset
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2013, 08:22 PM
  4. How to use > in WorksheetFunction.Sumifs
    By davidman1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2013, 10:40 AM
  5. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  6. [SOLVED] Code optimization - WorksheetFunction.SumIfs() function
    By nfuids in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2012, 10:50 AM
  7. Replies: 1
    Last Post: 05-16-2011, 05:00 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