+ Reply to Thread
Results 1 to 5 of 5

Help! Need to Calculate Tax in Google Sheets - Formula Issues with Freelance Income

  1. #1
    Registered User
    Join Date
    04-13-2025
    Location
    Spain
    MS-Off Ver
    Google Drive Spreadsheets
    Posts
    2

    Help! Need to Calculate Tax in Google Sheets - Formula Issues with Freelance Income

    Hi everyone,
    Im working on a spreadsheet in Google Sheets to calculate the correct IRPF (Spanish Income Tax) percentage for my freelance income, but Im encountering some issues with the formula. Heres what I need help with:

    I enter my monthly gross income in Column A (e.g., 1000 EUR for each month).

    Column B is a running total (accumulated income) that adds up the values in Column A.

    I want Column C to automatically calculate the corresponding IRPF for that accumulated income, taking into account the following tax brackets:

    Income up to 7,550 EUR: Exempt from tax.
    Income between 7,551 EUR and 12,450 EUR: 19% tax rate.
    Income between 12,451 EUR and 20,200 EUR: 24% tax rate.
    Income above 20,200 EUR: 30% tax rate.
    For example, if my total income (B1) is 13,000 EUR, the formula should apply:
    19% on the first 4,900 EUR (12,450 - 7,550)
    24% on the remaining 550 EUR (13,000 - 12,450)

    I've been ChatGTPing the heck out of it with no success

    Can anyone guide me on how to fix this formula so that it works consistently, or suggest an alternative approach?
    Thank you!

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2412
    Posts
    1,515

    Re: Help! Need to Calculate Tax in Google Sheets - Formula Issues with Freelance Income

    Welcome to the forum.

    I hope this works on Google sheets.

    I have created a table with your tier values and use this formula to calculate every relevant row, then add them up:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-13-2025
    Location
    Spain
    MS-Off Ver
    Google Drive Spreadsheets
    Posts
    2

    Re: Help! Need to Calculate Tax in Google Sheets - Formula Issues with Freelance Income

    Thanks! this is what Im getting.
    download.png


    I forgot to paste the rest of the tax brackets:
    35.200 – 60.000 37%
    60.000 – 300.000 45%
    Over 300.000 49%

    I'll provide some context. The gigs can range from a single day to a few months. Every time I get a gig, I get to choose my % of tax withholding. Some weeks I might do 3 or 4 different gigs (single day stuff), but then I might get hired on a TV show that lasts for 3 months. For every single gig, I fill in a cell in Excel with the total amount earned (before taxes).
    The idea is to keep track of my income so that, as I enter each amount, Excel tells me what tax percentage I should choose, based on my cumulative income for the year up to that point.

    My intention is to create a chart with this information (the tax brackets) so that Excel can calculate the correct tax percentage for each job throughout the year.

    For example, if it's February and I've only made €3,000 so far, it should tell me to stick with 0% tax.
    Let’s say it’s April and I input a €600 gig that pushes me past the €7,550 exemption threshold — as soon as I enter the €600, it should display the appropriate percentage next to it.
    And so on throughout the year.

    Do you think that's possible?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,990

    Re: Help! Need to Calculate Tax in Google Sheets - Formula Issues with Freelance Income

    Perhaps this will help.
    There is a rate table in cells E1:F8
    Some sample dates are given in column A
    Some sample amounts are given in column B
    The percentages in column C are displayed using: =INDEX(F$2:F$8,MATCH(B2,E$2:E$8))
    For future reference you will usually get faster/better answers if you provide a sample file. (See the yellow banner at the top of the page).
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,298

    Re: Help! Need to Calculate Tax in Google Sheets - Formula Issues with Freelance Income

    For income in B2:

    =MAX(0,B2-20200)*0.3+MAX(0,MIN(20200-12450,B2-12450))*0.24+MAX(0,MIN(12450-7550,B2-7550))*0.19

    Though you may want to project what you annual income will be to estimate what you tax bill will end up at the end of the year (for planning purposes).
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. VBA skill for freelance job (extra income)?
    By VAer in forum Excel General
    Replies: 3
    Last Post: 08-18-2024, 10:15 PM
  2. [SOLVED] Formula to calculate elapsed time between two dates/time in Google Sheets
    By bhenlee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-12-2023, 05:13 AM
  3. Issues with IMPORTHTML in Google Sheets
    By JoshS0515 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 06-14-2016, 12:39 PM
  4. formula for calculate Income tax.
    By visha_1984 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2014, 10:13 AM
  5. Formula to Calculate income
    By mgdotcom in forum Excel General
    Replies: 0
    Last Post: 12-13-2012, 06:23 AM
  6. Financial formula to calculate interest income
    By JR573PUTT in forum Excel General
    Replies: 2
    Last Post: 03-21-2006, 04:40 PM
  7. Formula to calculate federal income tax
    By mikeburg in forum Excel General
    Replies: 1
    Last Post: 08-26-2005, 01:05 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