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 If statements in a Vlookup.

I have a Vlookup worksheet that the formula works. It is below

=PRODUCT(VLOOKUP($B3,'PTO '!$A$2:$BM$61,42),$C$3)

This is for a PTO calculation by month. When an employee receives a raise I
have added a current date column (E6) and new rate column (D6). The next
month would be in the O1 position. I want the PTO to be calculated at the
higher rate if there has been a salary increase. I have been trying to add
the following to my formula and not having the right results.

*if( E5<O1, D6, C6)

Anyone have any ideas?



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If statements in a Vlookup.

=PRODUCT(VLOOKUP($B3,'PTO '!$A$2:$BM$61,42),$C$3)

You don't really need the PRODUCT funtion:

=VLOOKUP($B3,'PTO '!$A$2:$BM$61,42)*$C$3

*if( E5<O1, D6, C6)


How does that relate to the current formula?

--
Biff
Microsoft Excel MVP


"Gallarita" wrote in message
...
I have a Vlookup worksheet that the formula works. It is below

=PRODUCT(VLOOKUP($B3,'PTO '!$A$2:$BM$61,42),$C$3)

This is for a PTO calculation by month. When an employee receives a raise
I
have added a current date column (E6) and new rate column (D6). The next
month would be in the O1 position. I want the PTO to be calculated at the
higher rate if there has been a salary increase. I have been trying to
add
the following to my formula and not having the right results.

*if( E5<O1, D6, C6)

Anyone have any ideas?





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default If statements in a Vlookup.

For simplicity's sake, you needn't use PRODUCT(), you can merely use *

=VLOOKUP($B3,'PTO '!$A$2:$BM$61,42)*$C$3

Trying to determine which cell belongs whre, so here's a guess...

Are you wanting to do this:

=IF($E5<$01,VLOOKUP($B3,'PTO '!$A$2:$BM$61,42)*$C$6,VLOOKUP($B3,'PTO
'!$A$2:$BM$61,42)*$d$6)

?

"Gallarita" wrote:

I have a Vlookup worksheet that the formula works. It is below

=PRODUCT(VLOOKUP($B3,'PTO '!$A$2:$BM$61,42),$C$3)

This is for a PTO calculation by month. When an employee receives a raise I
have added a current date column (E6) and new rate column (D6). The next
month would be in the O1 position. I want the PTO to be calculated at the
higher rate if there has been a salary increase. I have been trying to add
the following to my formula and not having the right results.

*if( E5<O1, D6, C6)

Anyone have any ideas?



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
VLOOKUP and IF Statements cranen Excel Discussion (Misc queries) 2 August 13th 09 10:26 PM
If statements in Vlookup - can it be done? James Excel Discussion (Misc queries) 2 March 14th 07 12:18 AM
Help with Vlookup and If Statements SunnyM Excel Discussion (Misc queries) 4 February 9th 06 12:45 AM
can I use =if with vlookup statements suzyque Excel Worksheet Functions 12 January 31st 06 04:48 PM
VLOOKUP statements Jennifer Kramer Excel Discussion (Misc queries) 1 January 20th 05 05:51 AM


All times are GMT +1. The time now is 09:12 AM.

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"