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

I have this formula in cell B17, which is hire
date(=DATEDIF(B16,TODAY(),"Y")&" years, "&DATEDIF(B16,TODAY(),"YM")&" months
"&DATEDIF(B16,TODAY(),"MD")&" days" ) In B3 I need to show either a 3 or 4, 3
if less than 5 years 4 if = 5 years. Thanks in advance!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Help with formula?

Hi

Try this:
=IF(DATEDIF(B16,TODAY(),"Y")<5,3,4)

Hope this helps.
Andy.

"Richard" wrote in message
...
I have this formula in cell B17, which is hire
date(=DATEDIF(B16,TODAY(),"Y")&" years, "&DATEDIF(B16,TODAY(),"YM")&"
months
"&DATEDIF(B16,TODAY(),"MD")&" days" ) In B3 I need to show either a 3 or
4, 3
if less than 5 years 4 if = 5 years. 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 05:41 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"