Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
add years to a cell
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!$H 5=F$4),IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=5,EmployeeData!$O5*Employee Data!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=10,EmployeeData!$O5*Employe eData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=15,EmployeeData!$O5*Employe eData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=20,EmployeeData!$O5*Employe eData!AM5*ProgramOverview!$AR5,0)))),0),2) |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
add years to a cell
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" wrote in message ... 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!$H 5=F$4),IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=5,EmployeeData!$O5*Employee Data!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=10,EmployeeData!$O5*Employe eData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=15,EmployeeData!$O5*Employe eData!AM5*ProgramOverview!$AR5,IF(YEAR(G$4)-YEAR(EmployeeData!$F5)=20,EmployeeData!$O5*Employe eData!AM5*ProgramOverview!$AR5,0)))),0),2) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Loan Years no half years allowed? | Excel Programming | |||
How do I subtract dates to get a number in years or years & month | Excel Discussion (Misc queries) | |||
Convert years to years and days | Excel Discussion (Misc queries) | |||
Overlay 4 years of data as a line on 4 years of columns for several x category labels | Charts and Charting in Excel | |||
Change Xcel Amortization from 30 years to 40 years? | Excel Discussion (Misc queries) |