+ Reply to Thread
Results 1 to 3 of 3

Nested IF AND OR with SUMIF

  1. #1
    Registered User
    Join Date
    02-09-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    22

    Nested IF AND OR with SUMIF

    I'm basically looking to total amounts by invoice number in order to take a percentage. However, some invoice numbers are divided between needing 3 & 5% taken. I need to adjust my formulas to total by invoice number but also to take into account percentage criteria. I'm using a SUMIF function nested within an IF statement. I've tried using some AND/OR's in there but nothing seems to be returning the correct figures.

    I have attached a mock spreadsheet showing what the spreadsheet should ultimately look like and the formulas I am currently using that need tweaking.

    Please help
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: Nested IF AND OR with SUMIF

    You could use

    in E4
    =IF(AND(B4=B3,C4=C3),"",SUMIFS(D$4:D$32,B$4:B$32,B4,C$4:C$32,C4))

    and in F4
    =IF(E4="","",E4*C4/100)

  3. #3
    Registered User
    Join Date
    02-09-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Nested IF AND OR with SUMIF

    Amazing! Exactly what I was looking for, thank you so much!

+ 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