+ Reply to Thread
Results 1 to 3 of 3

use Sumif for 2 criteria?

Hybrid View

zatarro use Sumif for 2 criteria? 07-17-2008, 07:04 AM
Colin Legg Hi, You can't do it with... 07-17-2008, 07:42 AM
zatarro yessss thank you very very... 07-17-2008, 08:42 AM
  1. #1
    Registered User
    Join Date
    07-17-2008
    Location
    istanbul
    Posts
    2

    use Sumif for 2 criteria?

    Hi guys,
    I have a problem,
    I have to sum sale amounts according to date and product code. solving this problem with a formula is better for me, but also VBA is possible.
    i attach an example worksheet and i hope you can help me...
    Attached Files Attached Files

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256
    Hi,

    You can't do it with SUMIF, I'm afraid.

    The good news is that you can do it with another worksheet function called SUMPRODUCT.

    Copy this formula into cell F4.
    Then copy it from F4 and paste it into the rest of your summary range.

    =-SUMPRODUCT(-($A$4:$A$19>=F$1),-($A$4:$A$19<=F$2),-($B$4:$B$19=$E4),$C$4:$C$19)


    Colin

  3. #3
    Registered User
    Join Date
    07-17-2008
    Location
    istanbul
    Posts
    2
    yessss
    thank you very very much my friend
    i worked 2 hours for this formula, but i never thought to use sumproduct
    thanks again...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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