A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel 2007 lookup problem continuing ...



 
 
Thread Tools Display Modes
  #1  
Old July 25th, 2008, 06:45 AM posted to microsoft.public.excel.worksheet.functions
trish
external usenet poster
 
Posts: 237
Default Excel 2007 lookup problem continuing ...

Hi, I posted a question last week and M Kan was helpful. However, I asked
further questions and this person has not responded. Can anyone else help
me? ..... all the previous stuff is below ...

Thanks again, M Kan. I am still very confused ... sorry! :-) I still can't
get my head around these lookup tables. Using my own cell references, this
is what I have ...

a1 Name Hours worked Hourly rate Gross Pay Less Tax
a2 Adam Green 40 14.6 584
a3 Kelly Kong 38 10.45 397.1
a4 Harry Schmidt 31 10.45 323.95
a5 Lily Chan 38 17.5 665
a6 John Van Don 40 23.5 940
a7 Olive Bliss 40 37.5 1500

THE LOOKUP FUNCTION NEEDS TO GO IN THE GROSS PAY, IE CELL D2


a12 Pay Band Withold Amt
a13 0 0 0
a14 95 20% 0
a15 346 25% 63
a16 481 40% 96
a17 673 47% 183
a18 962 48% 308

I need to use a lookup function to calculate the tax. Please could you
assist me again, using my own cell references. Your assistance is very much
appreciated. By the way, the "Notify me of replies" does not appear to be
working, as I was hoping for a response ... luckily I checked the site again
.... there you were! Thanks. Trish

--
Trish


"M Kan" wrote:

This piece looks up the base amount (e.g., the $63
=VLOOKUP(K22,Pay_table,3)

+(K22-J17)*VLOOKUP(K22,Pay_table,2)

This piece takes the difference between the actual amount and the floor
(e.g., 73-63 =10 and then multiplies the difference by the withholding
percentage (e.g., 25%)

--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trish" wrote:

Thanks M Kan. That helps, but how do I factor in the additional xx cents per
$ over, ie the second half of the lines? Thanks again :-)
--
Trish


"M Kan" wrote:

I set up a table like this:

Pay Band Withold Amt
0 0 0
95 20% 0
346 25% 63
481 40% 96
673 47% 183
962 48% 308

Pay Band is cell J14. The formula looks like this:

=VLOOKUP(K22,Pay_table,3)+(K22-J17)*VLOOKUP(K22,Pay_table,2)
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trish" wrote:

Hi, I am working on a spreadsheet to do with payroll and would like to know
how I set up the look up function to cater for the following:

If pay is between
$0 and $95 then deduct $0 plus $0
$96 and $345 then $0 plus 20 cents for every dollar over $96
$346 and $480 then $63 plus 25 cents for every dollar over $346
$481 and $672 then $96 plus 40 cents for every dollar over $481
$673 and $961 then $183 plus 47 cents for every dollar over $673
$962 and over then $308 plus 48 cents for every dollar over $96

I tried to do a lookup function along the following lines, but got myself in
a mess, plus I don't know how to calculate the latter "plus" part.

=95 $0
95=345 $0 + 20 cents for every dollar over $96
345=480 $63 + 25 cents for every dollar over $346
480=672 $96 + 40 cents for every dollar over $481
672=961 $183 + 47 cents for every dollar over $673
962 $308 + 20 cents for every dollar over $962

Sorry to ask what is probably quite obvious to most!

I look forward to a response. Many thanks. :-)

--
Trish

Was this post helpful to you?


--
Trish
  #2  
Old July 25th, 2008, 11:40 AM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Excel 2007 lookup problem continuing ...

I had to look back at your previous post to check your tax rules, but
I think this formula covers it - put it in E2:

=VLOOKUP(D2,A$13:C$18,3)+VLOOKUP(D2,A$13:C$18,2)*( D2-VLOOKUP(D2,A$13:C
$18,1))

and then copy down into E3:E7.

Hope this helps.

Pete

On Jul 25, 6:45*am, Trish wrote:
Hi, I posted a question last week and M Kan was helpful. However, I asked
further questions and this person has not responded. *Can anyone else help
me? ..... *all the previous stuff is below ...

Thanks again, M Kan. *I am still very confused ... sorry! :-) *I still can't
get my head around these lookup tables. *Using my own cell references, this
is what I have ...

a1 Name Hours worked * *Hourly rate * * Gross Pay * * * Less Tax
a2 Adam Green * 40 * * *14.6 * *584 * *
a3 Kelly Kong * * * * * * 38 * *10.45 * 397.1 *
a4 Harry Schmidt * * * *31 * * *10.45 * 323.95 *
a5 Lily Chan * *38 * * *17.5 * *665 * *
a6 John Van Don 40 * * *23.5 * *940 * *
a7 Olive Bliss *40 * * *37.5 * *1500 * *

THE LOOKUP FUNCTION NEEDS TO GO IN THE GROSS PAY, IE CELL D2 * * * * * * * * * * * * * *

a12 * * Pay Band * * * *Withold Amt * * * * * *
a13 * * 0 * * * 0 * * * 0 * * * * * * *
a14 * * 95 * * *20% * * 0 * * * * * * *
a15 * * 346 * * 25% * * 63 * * * * * * *
a16 * * 481 * * 40% * * 96 * * * * * * *
a17 * * 673 * * 47% * * 183 * * * * * *
a18 * * 962 * * 48% * * 308 * * * * * *

I need to use a lookup function to calculate the tax. *Please could you
assist me again, using my own cell references. * Your assistance is very much
appreciated. *By the way, the "Notify me of replies" does not appear to be
working, as I was hoping for a response ... luckily I checked the site again
... there you were! *Thanks. *Trish

--
Trish



  #3  
Old July 25th, 2008, 11:51 AM posted to microsoft.public.excel.worksheet.functions
NoodNutt
external usenet poster
 
Posts: 176
Default Excel 2007 lookup problem continuing ...

G'day trish

With some help from Mike H, I managed to get a working example of something
that will put you in the right direction.

If you don't feel comfortable posting your e-mail address here, drop me a
line at:



I will send you the file for you to play with.

HTH
Mark.


  #4  
Old August 5th, 2008, 05:46 AM posted to microsoft.public.excel.worksheet.functions
trish
external usenet poster
 
Posts: 237
Default Excel 2007 lookup problem continuing ...

Dear Pete_UK and NoodNutt - thank you both so much for your help. It is most
appreciated.
--
Trish


"Trish" wrote:

Hi, I posted a question last week and M Kan was helpful. However, I asked
further questions and this person has not responded. Can anyone else help
me? ..... all the previous stuff is below ...

Thanks again, M Kan. I am still very confused ... sorry! :-) I still can't
get my head around these lookup tables. Using my own cell references, this
is what I have ...

a1 Name Hours worked Hourly rate Gross Pay Less Tax
a2 Adam Green 40 14.6 584
a3 Kelly Kong 38 10.45 397.1
a4 Harry Schmidt 31 10.45 323.95
a5 Lily Chan 38 17.5 665
a6 John Van Don 40 23.5 940
a7 Olive Bliss 40 37.5 1500

THE LOOKUP FUNCTION NEEDS TO GO IN THE GROSS PAY, IE CELL D2


a12 Pay Band Withold Amt
a13 0 0 0
a14 95 20% 0
a15 346 25% 63
a16 481 40% 96
a17 673 47% 183
a18 962 48% 308

I need to use a lookup function to calculate the tax. Please could you
assist me again, using my own cell references. Your assistance is very much
appreciated. By the way, the "Notify me of replies" does not appear to be
working, as I was hoping for a response ... luckily I checked the site again
... there you were! Thanks. Trish

--
Trish


"M Kan" wrote:

This piece looks up the base amount (e.g., the $63
=VLOOKUP(K22,Pay_table,3)

+(K22-J17)*VLOOKUP(K22,Pay_table,2)

This piece takes the difference between the actual amount and the floor
(e.g., 73-63 =10 and then multiplies the difference by the withholding
percentage (e.g., 25%)

--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trish" wrote:

Thanks M Kan. That helps, but how do I factor in the additional xx cents per
$ over, ie the second half of the lines? Thanks again :-)
--
Trish


"M Kan" wrote:

I set up a table like this:

Pay Band Withold Amt
0 0 0
95 20% 0
346 25% 63
481 40% 96
673 47% 183
962 48% 308

Pay Band is cell J14. The formula looks like this:

=VLOOKUP(K22,Pay_table,3)+(K22-J17)*VLOOKUP(K22,Pay_table,2)
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trish" wrote:

Hi, I am working on a spreadsheet to do with payroll and would like to know
how I set up the look up function to cater for the following:

If pay is between
$0 and $95 then deduct $0 plus $0
$96 and $345 then $0 plus 20 cents for every dollar over $96
$346 and $480 then $63 plus 25 cents for every dollar over $346
$481 and $672 then $96 plus 40 cents for every dollar over $481
$673 and $961 then $183 plus 47 cents for every dollar over $673
$962 and over then $308 plus 48 cents for every dollar over $96

I tried to do a lookup function along the following lines, but got myself in
a mess, plus I don't know how to calculate the latter "plus" part.

=95 $0
95=345 $0 + 20 cents for every dollar over $96
345=480 $63 + 25 cents for every dollar over $346
480=672 $96 + 40 cents for every dollar over $481
672=961 $183 + 47 cents for every dollar over $673
962 $308 + 20 cents for every dollar over $962

Sorry to ask what is probably quite obvious to most!

I look forward to a response. Many thanks. :-)

--
Trish

Was this post helpful to you?


--
Trish

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.