Help with formula?

G

Guest

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!!!
 
G

Guest

..... rounding up ...

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

Guest

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(DATEDIF(B16,TODAY(),"Y"),K:L,2,0))&" Days "&8*MOD(VLOOKUP(DATEDIF(B16,TODAY(),"Y"),K:L,2,0),1)& " hours")
 
S

Sandy Mann

.... 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

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with formula 4
Still need help with formula 8
Help with formula 5
Tweaking formula? 2
help with formula 1
Help with formula? 1
Help ....! Conditional Formating 1
help with formula 5

Top