SUMIF formula

dpaton05

Well-known Member
Joined
Aug 14, 2018
Messages
2,352
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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

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