+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : How to apply Multiple Calculations depending on Text from Drop Down List

  1. #1
    Registered User
    Join Date
    02-17-2012
    Location
    Winnipeg, CANADA
    MS-Off Ver
    Excel 2007
    Posts
    2

    How to apply Multiple Calculations depending on Text from Drop Down List

    I have created a business expense report. What I am trying to do is calculate the state and federal tax depending on what state the expense was purchased in. I created a drop-down list of states in one cell. At the end of the table, gives you the break down of state (one cell) and federal tax (another cell). The problem is, each state tax is different. So I need the cell, both state and federal, to calculate based on what state is selected from the drop-down list.

    -> Total fake tax for ND is 12%, 5% State, 7% Federal.
    -> Total fake tax for SD is 15%, 6% State, 9% Federal.
    -> Total fake tax for WY is 10%, 3% State, 7% Federal.

    I attached an example.

    Please help!
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to apply Multiple Calculations depending on Text from Drop Down List

    You need to create a list of the states somewhere and in adjacent cells enter their corresponding taxes...

    Then use VLOOKUP to get the associated tax for the drop down selection.

    e.g.

    If you table is in X1:Z10

    then G8 would be:

    =VLOOKUP(C8,$X$1:$Z$10,2,FALSE)

    and in H8

    =VLOOKUP(C8,$X$1:$Z$10,3,FALSE)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: How to apply Multiple Calculations depending on Text from Drop Down List

    you will need to create a table of states and tax rates, for example in sheet2, column A and B. then in your formula use a vlookup to determin what tax rate to use.

    your formula for cell G8 would be:

    =SUM(Expense[[#This Row],[Meals]:[Hotel]])/1.12*VLOOKUP(Expense[[#This Row],[State]],Sheet2!A:B,2,0)
    Attached Files Attached Files
    Last edited by DGagnon; 02-24-2012 at 01:35 PM. Reason: Adding Attachment

  4. #4
    Registered User
    Join Date
    02-17-2012
    Location
    Winnipeg, CANADA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to apply Multiple Calculations depending on Text from Drop Down List

    That works excellent! Thank-you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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