SUMIF formula

dpaton05

Well-known Member
Joined
Aug 14, 2018
Messages
2,375
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a spreadsheet with a table in it. At the bottom of the table is a field where the GST is calculated for entries in the table. The GST is 10% of the value. I had the following code in it that calculated the GST correctly:

Code:
=ROUNDDOWN(SUM(npss_quote[Price 
ex. GST])*0.1,2)

There are multiple types of services that are selected and they give different prices but all of them have the same GST applied to them. The only exception to this is if the Service column has "Activities" selected. In this case, they don't attract GST so if Activities is selected in the service drop down list, I don't want GST applied to that row. How do I write the formula?

Thanks,
Dave
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Here is the formula I tried to put in but it says there is something wrong with the formula.
Code:
=ROUNDDOWN(SUMIF([Service],"<>Activities",[Price ex. GST]*.1,10))
 
Upvote 0
Here is another formula I tried:

Code:
ROUNDDOWN(SUMIF(npss_quote[Service],"<>*Activities",SUM(npss_quote[Price 
ex. GST],10)))
 
Upvote 0
I got it working with this
Code:
=SUMIF(npss_quote[Service],"<>*Activities",npss_quote[Price 
ex. GST])
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top