+ Reply to Thread
Results 1 to 3 of 3

Formula question regarding "if" and "lookup"

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    Ipswich, Australia
    MS-Off Ver
    Excel 2013
    Posts
    2

    Formula question regarding "if" and "lookup"

    Hi All

    Am new to using formulas in excel (other than basic stuff) and as mentioned in my intro thread I did join tonight to seek some assistance/advice in relation to my study.

    I am currently working on an assignment and have spent about 3hrs trying to find an alternative and just can't seem to get my head around it. Now, I HAVE answered the question and the formula I wrote DID/DOES work however, it's sooooooooooooooooooooo very long. And after working that all out & getting it to work I re-read the question and thought "hmmmm are they trying to give us a hint here?"

    The question reads: Add a formula to cells F11:F17 that will look up and calculate the tax amount payable and in cells G11:G17 add a formula to calculate net wages (this 2nd part I've done no issues) So I have GROSS WAGES (E11), TAX (F11), NET WAGES (G11) and 6 rows of employees to copy the formula to. Off to the side there is a table of tax rates I12 has a value of $250 and J12 0%, I13 has a value of $500 and J13 5% and so on. The formula I wrote is below and does work on first row and subsequent rows when copied down:

    =IF($E11<$I$13,$E11*$J$12,IF(AND($E11>=$I$13,$E11<$I$14),$E11*J$13,IF(AND($E11>=$I$14,$E11<$I$15),$E11*$J$14,IF(AND($E11>=$I$15,$E11<$I$16),$E11*$J$15,IF(AND($E11>=$I$16,$E11<$I$17),$E11*$J$16,IF(AND($E11>=$I$17,$E11<$I$18),$E11*$J$17,IF($E11>=$I$18,$E11*$J$18)))))))


    IS there a shorter way of writing this?? With the wording "look up" in the question I've been trying to work out how to use the LOOKUP function and can't do it.
    I'd be grateful for any and all advice ...
    Thanks
    Sharen

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Formula question regarding "if" and "lookup"

    VLOOKUP would be easy enough. You need to set up a table areay with the lookup values in the first column and the return values in the second, and reference this in the formula. VLOOKUP in the Help file shows you how.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-28-2014
    Location
    Ipswich, Australia
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Formula question regarding "if" and "lookup"

    Thanks for your comment AliGW ... I'm using Excel 2013, have only ever dealt with basic basic basic formulas before 2 days ago and have been through the HELP file in relation to the LOOKUP & VLOOKUP functions and I don't understand how it works.
    Last edited by SHC2014; 04-28-2014 at 06:03 AM.

+ 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. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 7
    Last Post: 05-13-2006, 05:02 PM
  5. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM

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