PC Review


Reply
Thread Tools Rate Thread

add years to a cell

 
 
SLP
Guest
Posts: n/a
 
      3rd Mar 2010
Hi,

I have a formula to which I need to add 5, 10, 15, and 20 years to cell H5.
Hope someone can help me our as I can't figure it out. Thanks much!

=ROUND(IF(AND(EmployeeData!$H5<G$4,EmployeeData!$H5>=F$4),IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=5,EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=10,EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=15,EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=20,EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5,0)))),0),2)
 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      3rd Mar 2010
I'm confused by the formula you posted. It *looks* like you are returning
the same value, namely this...

EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5

no matter if the difference in years is 5, 10, 15 or 20. and this returned
value has nothing to do with cell H5. Can you clarify please.

--
Rick (MVP - Excel)


"SLP" <(E-Mail Removed)> wrote in message
news:2397B868-9145-4644-ABE7-(E-Mail Removed)...
> Hi,
>
> I have a formula to which I need to add 5, 10, 15, and 20 years to cell
> H5.
> Hope someone can help me our as I can't figure it out. Thanks much!
>
> =ROUND(IF(AND(EmployeeData!$H5<G$4,EmployeeData!$H5>=F$4),IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=5,EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=10,EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=15,EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=20,EmployeeData!$O5*EmployeeData!AM5*ProgramOverview!$AR5,0)))),0),2)


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to transfer cell info from last years calender to 2009 RDSMITH Microsoft Word Document Management 0 30th Nov 2008 02:39 AM
Return total number of YEARS & MONTHS in a cell =?Utf-8?B?TW9udHJvc2UgZ3V5?= Microsoft Excel Misc 3 18th Nov 2007 01:29 PM
Need macro to add 100 years to a cell's date =?Utf-8?B?YWxpZ2F0cmpvZQ==?= Microsoft Excel Programming 4 19th Sep 2007 04:28 AM
Add one Month in the next cell for several months/years =?Utf-8?B?aGVhdGVy?= Microsoft Excel Misc 3 16th Nov 2005 11:46 PM
How do I set up a date cell to and 15 years in another cell? =?Utf-8?B?bGRhdmlzNg==?= Microsoft Excel Worksheet Functions 4 21st Dec 2004 04:03 PM


Features
 

Advertising
 

Newsgroups
 


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