#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default INT, MOD help

This formula is what I'm using to lookup vacation days in A3 which has a half
day(4 hours). I'd like for it to read whatever is in Column L such as 4.5
(something like "4 days 4 hours")
=(IF(DATEDIF(B16,TODAY(),"Y")11,20,VLOOKUP(DATEDI F(B16,TODAY(),"Y"),K:L,2,0)))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default INT, MOD help

Maybe...

=IF(DATEDIF(B16,TODAY(),"Y")11,20,
INT(VLOOKUP(DATEDIF(B16,TODAY(),"Y"),K:L,2,0))&" days "&
8*MOD(VLOOKUP(DATEDIF(B16,TODAY(),"Y"),K:L,2,0),1) & " hours")

(You didn't need those ()'s around the whole formula.





Richard wrote:

This formula is what I'm using to lookup vacation days in A3 which has a half
day(4 hours). I'd like for it to read whatever is in Column L such as 4.5
(something like "4 days 4 hours")
=(IF(DATEDIF(B16,TODAY(),"Y")11,20,VLOOKUP(DATEDI F(B16,TODAY(),"Y"),K:L,2,0)))


--

Dave Peterson
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



All times are GMT +1. The time now is 07:29 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"