#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Help with formula?

Please help formatting this formula:
=If B16(hire date) < 90 days then 0,
If B16 90 days then B16(hire date) + End of that Year(Dec 31st of same
year) * 0.0274( rounded up, if results are 4.1 then 4.5) Thanks in Advance!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Help with formula?

do you mean:

=IF(TODAY()-B16<90,0,INT((DATE(YEAR(B16),12,31)-B16)*0.0274)+0.5)


HTH

"Richard" wrote:

Please help formatting this formula:
=If B16(hire date) < 90 days then 0,
If B16 90 days then B16(hire date) + End of that Year(Dec 31st of same
year) * 0.0274( rounded up, if results are 4.1 then 4.5) Thanks in Advance!!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Help with formula?

..... rounding up ...

=IF(TODAY()-B16<90,0,INT((DATE(YEAR(B16),12,31)-B16)*0.0274)/0.5)*0.5+0.5

"Richard" wrote:

Please help formatting this formula:
=If B16(hire date) < 90 days then 0,
If B16 90 days then B16(hire date) + End of that Year(Dec 31st of same
year) * 0.0274( rounded up, if results are 4.1 then 4.5) Thanks in Advance!!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Help with formula?

Yes, this works great but I need it to only do this for the first part of the
first year. After the first year I have a vlookup. example:
=IF(DATEDIF(B16,TODAY(),"Y")11,20,INT(VLOOKUP(DAT EDIF(B16,TODAY(),"Y"),K:L,2,0))&" Days "&8*MOD(VLOOKUP(DATEDIF(B16,TODAY(),"Y"),K:L,2,0), 1)& " hours")

"Toppers" wrote:

do you mean:

=IF(TODAY()-B16<90,0,INT((DATE(YEAR(B16),12,31)-B16)*0.0274)+0.5)


HTH

"Richard" wrote:

Please help formatting this formula:
=If B16(hire date) < 90 days then 0,
If B16 90 days then B16(hire date) + End of that Year(Dec 31st of same
year) * 0.0274( rounded up, if results are 4.1 then 4.5) Thanks in Advance!!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Help with formula?

Toppers" wrote in message
... .... rounding up
....

=IF(TODAY()-B16<90,0,INT((DATE(YEAR(B16),12,31)-B16)*0.0274)/0.5)*0.5+0.5


Because the *0.5+0.5 is outside of the function it returns 0.5 for me
instead of 0. Wouldn't it be better to use the ROUBD function instead of
INT()?

=IF(TODAY()-B16<90,0,ROUND(((DATE(YEAR(B16),12,31)-B16)*0.0274)/0.5,0)*0.5)

--
Regards,

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


"Toppers" wrote in message
...
.... rounding up ...

=IF(TODAY()-B16<90,0,INT((DATE(YEAR(B16),12,31)-B16)*0.0274)/0.5)*0.5+0.5

"Richard" wrote:

Please help formatting this formula:
=If B16(hire date) < 90 days then 0,
If B16 90 days then B16(hire date) + End of that Year(Dec 31st of same
year) * 0.0274( rounded up, if results are 4.1 then 4.5) Thanks in
Advance!!!



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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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