+ Reply to Thread
Results 1 to 7 of 7

Using SUMIF and AND formula together

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2013
    Posts
    54

    Question Using SUMIF and AND formula together

    Hi all,

    I have a challenge where I require the help of a real expert so thought I would post it here. I think the solution involves using the SUMIF and AND formula together or maybe SUMPRODUCT but I don't know how to set it up correctly. I have extracted a business report from SAP so the data will come out exactly as depicted in attached example so I cannot easily change the format of any dates, numbers or text so your solution should be based on info provided.

    My goal is to setup a formula that will give me the value based on certain criteria. For example, if the information in column "A" is "O.QA.SAL.099.PM" and the date in column "C" is between "01.05.2013 to 31.05.2013" then the formula should return value $4,382.68.

    I really hope someone can help me here.

    Best regards,

    Klaus Agesen
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using SUMIF and AND formula together

    SUMPRODUCT is 1 way to go.

    =SUMPRODUCT(($A$9:$A$10000="O.QA.SAL.099.PM" )*($C$9:$C$10000>=G1)*($D$9:$D$10000<=G2)*($D$9:$D$10000))
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using SUMIF and AND formula together

    Pivot table will do the job for you.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    04-20-2011
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2013
    Posts
    54

    Re: Using SUMIF and AND formula together

    Brilliant solutions from both of you. I thank you and have added to your reputation. *hugs*

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using SUMIF and AND formula together

    ........................

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using SUMIF and AND formula together

    Thanks for the reply.

    Glad I could help.

  7. #7
    Registered User
    Join Date
    04-20-2011
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2013
    Posts
    54

    Re: Using SUMIF and AND formula together

    Marked as solved. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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