GST Calculation in Excel: Add GST, Remove GST, Split CGST/SGST/IGST

⏱ 3 min read

Every Indian invoice sheet needs the same handful of GST formulas. Here they are in one place, with the rounding and inter-state logic people usually get wrong. Rates below are examples; always confirm the current rate for your HSN/SAC code.

In this article
  1. Add GST to a price (exclusive → inclusive)
  2. Remove GST from an inclusive price
  3. CGST + SGST or IGST?
  4. Rate from a lookup table
  5. Rate-wise summary for the return
  6. Rounding
  7. Where people go wrong
  8. Practice

Add GST to a price (exclusive → inclusive)

Taxable value in B2, rate in C2 (formatted as 18%):

=B2 * C2            ' GST amount
=B2 * (1 + C2)      ' invoice value

Remove GST from an inclusive price

The common mistake is =B2 - B2*18%. That’s wrong: 18% is charged on the base, not on the inclusive figure.

=B2 / (1 + C2)              ' taxable value: ₹1,180 at 18% → ₹1,000
=B2 - B2 / (1 + C2)         ' GST inside the price → ₹180
=B2 * C2 / (1 + C2)         ' same thing in one step

CGST + SGST or IGST?

Intra-state supply: half CGST, half SGST. Inter-state: the full rate as IGST. With your state code in $L$1 and the buyer’s place-of-supply code in D2:

E2 (CGST):  =IF(D2=$L$1, ROUND(B2*C2/2, 2), 0)
F2 (SGST):  =IF(D2=$L$1, ROUND(B2*C2/2, 2), 0)
G2 (IGST):  =IF(D2<>$L$1, ROUND(B2*C2, 2), 0)
H2 (Total): =B2 + E2 + F2 + G2
💡 The first two digits of a GSTIN are the state code, so =LEFT(gstin,2) can fill D2 automatically.

Rate from a lookup table

Keep an HSN table (code, description, rate) and pull the rate instead of typing it:

=XLOOKUP(A2, HSN[Code], HSN[Rate], "Check HSN")

Rate-wise summary for the return

=SUMIFS(Lines[Taxable], Lines[Rate], 0.18)
=SUMIFS(Lines[IGST], Lines[Rate], 0.18)

Or one pivot table with Rate in rows and Taxable, CGST, SGST and IGST in values.

Rounding

Round each tax line to 2 decimals with ROUND, not just formatting, which hides paise that still add up. Round the invoice total to the rupee only if your billing policy does, and show it as a separate “Round off” line: =ROUND(total,0)-total.

Where people go wrong

Mistake Right way
Taking 18% off an inclusive price Divide by 1.18
CGST at 18% and SGST at 18% 9% + 9% (half each)
Rate typed as 18 instead of 18% Tax becomes 18× the value; format the rate column as %
Formatting instead of ROUND Totals off by paise against the GST portal

Practice

Download the combo practice workbook below. Its Sales sheet of 200 orders (dates, regions, products, customers, amounts) is ready data to try every formula on this page, and the Practice sheet has 50 checked tasks on related combos.

More: all formula combos · Excel function course.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *