+ Reply to Thread
Results 1 to 7 of 7

need to solve 2 sales tax problem

  1. #1
    Registered User
    Join Date
    08-22-2015
    Location
    US
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    need to solve 2 sales tax problem

    Hello,

    I've been unsuccessfully trying to sort this out:

    Some items have sales tax of 6.5% and some 7%
    Need to figure out how to subtotal the combination of tax on invoice.

    Example:
    Please Login or Register  to view this content.
    =SUMIF(C3:C232,"X",Sheet2!I11:I47)*0.065+SUMIF(C3:C232,"Y",Sheet2!I11:I47)*0.07

    The tax subtotal result should be $0.40, but i get $0.82

    Thank you.
    Last edited by mrK1; 08-22-2015 at 03:35 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: need to solve 2 sales tax problem

    Based on your example:

    =SUMPRODUCT((C1:C3={"X","Y"})*(B1:B3*{0.065,0.07}))
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-22-2015 at 03:51 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: need to solve 2 sales tax problem

    Using your formula I got the answer $0.40

    =SUMIF(C1:C3,"X",B1:B3)*0.065+SUMIF(C1:C3,"Y",B1:B3)*0.07

    (and the correct result with your provided formula =SUMIF(C3:C232,"X",Sheet2!I11:I47)*0.065+SUMIF(C3:C232,"Y",Sheet2!I11:I47)*0.07
    )

    Any extraneous data in your range?

  4. #4
    Registered User
    Join Date
    08-22-2015
    Location
    US
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    Re: need to solve 2 sales tax problem

    thank you for the responses.

    i double checked, and it remains the same.

    i'm attaching the file.

    Workbook2.xls

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: need to solve 2 sales tax problem

    =SUMPRODUCT(($I$11:$I$13)*(LOOKUP(MATCH($B$11:$B$13,Sheet2!$A:$A,0),ROW(Sheet2!$C:$C),Sheet2!$C:$C)={"X","Y"})*({0.065,0.07}))
    Please Login or Register  to view this content.
    Try this formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: need to solve 2 sales tax problem

    The problem results from the fact that the criteria range and the sum range are different.

    If you look at "Help" for the function you will see an explanation of how the ranges are determined if the are not the same size and shape.

  7. #7
    Registered User
    Join Date
    08-22-2015
    Location
    US
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    Re: need to solve 2 sales tax problem

    nflsales, thank you. That formula worked. However when i edit for the needed I11:I47, and if i have -blank- values on that range, i get #Value. How do i eliminate this?

    Thanks for the help.

+ 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. Replies: 14
    Last Post: 06-02-2013, 03:08 PM
  2. Please Solve my Problem
    By sweetload in forum Excel General
    Replies: 1
    Last Post: 04-04-2013, 01:42 AM
  3. Would You please help me to solve this problem ?
    By TitoSantana in forum Excel General
    Replies: 1
    Last Post: 03-18-2012, 09:32 PM
  4. Is there any way to solve this problem ?
    By djumbox in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2008, 07:51 AM
  5. Problem nobody can solve!!!!
    By geoffcol in forum Excel General
    Replies: 8
    Last Post: 08-22-2007, 12:53 PM
  6. How to solve this problem?
    By jackoat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2005, 11:05 AM
  7. [SOLVED] Can someone solve a problem for me?
    By Jon Parker in forum Excel General
    Replies: 1
    Last Post: 04-25-2005, 07:06 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