Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Combining If, Vlookup in formula

I need a formula to do the following.

If A3 (hours worked) is greater than 40 then look for employee name (on
separate tab in workbook) and take the overtie pay rate and multipy the rate
x A3, if greater than 40, take the regular rate and multiply the rate x A3.

The formula I created will figure choose the right rate but will not lookup
the person out of the list but this department has 20 people so I need the
formula to look for the person's name and then multiply the rate of pay (reg
rate if under 40 and OT rate if overt 40) x the number of hours. I can't
remember how to name a range in a formula so the vlookup will work right.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default Combining If, Vlookup in formula

=IF(A340,VLOOKUP(A2,Sheet2!A:C,2,0)*A3,VLOOKUP(A2 ,Sheet2!A:C,3,0)*A3)

This assumes your employee name is on A2 of the current worksheet, and in
column a of your search sheet. This also assumes Overtime rate is in column
B and regular rate is in column C of your search worksheet.

To create names, highlight your esired set of data and type in a name on the
top left (left of the formula bar)

"HR_Payroll" wrote:

I need a formula to do the following.

If A3 (hours worked) is greater than 40 then look for employee name (on
separate tab in workbook) and take the overtie pay rate and multipy the rate
x A3, if greater than 40, take the regular rate and multiply the rate x A3.

The formula I created will figure choose the right rate but will not lookup
the person out of the list but this department has 20 people so I need the
formula to look for the person's name and then multiply the rate of pay (reg
rate if under 40 and OT rate if overt 40) x the number of hours. I can't
remember how to name a range in a formula so the vlookup will work right.

Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Combining If, Vlookup in formula

Your question isn't clear - you say if A3 is greater than 40 then and a
little further down you say if A3 is greate than then...? Both your
conditions are the same!

If you mean <=40 for the second condition then

=A3*VLOOKUP(A2,Sheet3!A1:C30,2+(A340),)


Where the name is in A2 and
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"HR_Payroll" wrote:

I need a formula to do the following.

If A3 (hours worked) is greater than 40 then look for employee name (on
separate tab in workbook) and take the overtie pay rate and multipy the rate
x A3, if greater than 40, take the regular rate and multiply the rate x A3.

The formula I created will figure choose the right rate but will not lookup
the person out of the list but this department has 20 people so I need the
formula to look for the person's name and then multiply the rate of pay (reg
rate if under 40 and OT rate if overt 40) x the number of hours. I can't
remember how to name a range in a formula so the vlookup will work right.

Thank you.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help in Combining If formula with Vlookup Excel newbie Excel Discussion (Misc queries) 2 August 13th 09 03:23 PM
Combining IF with VLOOKUP Ricki Miles Excel Worksheet Functions 2 June 8th 09 10:16 PM
VLOOKUP & Combining Worksheets - Please HELP ksverdlina Excel Worksheet Functions 0 March 13th 07 08:30 PM
combining a Vlookup and Mid formula [email protected] Excel Worksheet Functions 1 November 13th 05 05:29 AM
combining VLOOKUP and IF z.entropic Excel Worksheet Functions 4 January 24th 05 12:05 AM


All times are GMT +1. The time now is 01:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"