Formula Errors

How to Calculate GST Based on Item Selection in Excel

Rana GarciaRana Garcia Nov 4, 2026 871 views

Question details

Calculate 10% GST on a fixed amount and apply additional GST only when a specific item is selected in a spreadsheet.

How to Calculate GST Based on Item Selection in Excel
Product
Excel
Device & OS
not provided
Scenario
Automating tax calculation in a billing or inventory spreadsheet where certain items incur additional GST based on a dropdown or cell selection.
Observed behavior
The user needs a formula to evaluate an item selection (e.g., in cell B2) so that a base amount always gets taxed at 10%, while a secondary amount only gets taxed if a taxable item is selected.
Before you start

Ensure your spreadsheet has clear, separate cells for your base amount, the conditional amount, and the item selection text to make referencing the formula straightforward.

Solution 1Recommended

Use the IF Function for a Specific Item Condition

This method is best when you only have one specific item condition (like 'Item 3') that triggers the additional GST calculation.

The IF function allows you to test whether a cell meets a specific condition. If it does, Excel calculates the additional GST; if not, it adds zero.

1
Select the result cell

Click on the cell where you want the final GST calculation to appear (for example, cell B6).

2
Enter the base and conditional formula

Type the formula: =(B4*10%)+IF(B2="Item 3",10%*B5,0)

3
Apply the formula

Press Enter to calculate. The formula will always calculate 10% on cell B4, and it will only add 10% of cell B5 if cell B2 exactly matches 'Item 3'.

Use the IF Function for a Specific Item Condition
Formula Customization: You can change 'Item 3' to match whatever text you are using for your taxable item, such as 'Taxable' or 'Service'.
Calculate Taxes Easily with WPS

Automate GST Calculations Seamlessly with WPS Spreadsheet

WPS Spreadsheet fully supports advanced logical formulas, allowing you to quickly set up conditional GST or tax calculations exactly like you would in Microsoft Excel.

  1. 1. Open your worksheet: Launch WPS Spreadsheet and open the document containing your financial data.
  2. 2. Select your target cell: Click the cell where the GST total should be displayed.
  3. 3. Input the formula: Type your conditional formula, such as =(B4*10%)+IF(B2="Item 3",10%*B5,0).
  4. 4. Press Enter: Hit Enter to execute the calculation. You can drag the fill handle to apply this formula to other rows.
Fully compatible with Microsoft Excel formulas and functions (.xlsx)Built-in formula hints to help you construct complex IF statements accuratelyLightweight, fast, and completely free alternative for data analysis
microsoft office alternative - wps office

Frequently Asked Questions

How do I change the GST rate from 10% to another percentage in the formula?

You can directly edit the formula and replace '10%' with your new rate, such as '15%' or '0.15'. Alternatively, you can place your tax rate in a separate cell (like C1) and reference it in your formula using absolute references (e.g., $C$1).

Why is my IF formula returning an error instead of the GST amount?

Ensure that the text inside your IF formula is enclosed in quotation marks, such as "Item 3". Also, verify that your cell references are correct and that the cells containing amounts are formatted as numbers, not text.

Can I apply this formula to an entire column of items?

Yes. Once you have entered the formula in the first cell, click the small square at the bottom-right corner of the cell (the fill handle) and drag it down the column. Make sure you use absolute references (like $B$4) for any fixed amounts if they shouldn't change as you drag.

What should I do if the item text in cell B2 has extra spaces?

If cell B2 contains trailing or leading spaces, it won't perfectly match "Item 3" in your formula. You can either delete the spaces in cell B2 or wrap the cell reference in the TRIM function within your formula: IF(TRIM(B2)="Item 3",...).