if help

Peter1973

Well-known Member
Joined
May 13, 2006
Messages
963
Office Version
  1. 365
Hi I am trying to get an if to work but cant get it.

I need to look in A1 and if the value is less than 46 return B1+356 if A1 is greater than 46 but less than 60 return B1+712 and if A1 is greater than 60 return B1+1000.


Any help appreciated
 
Shouldn't it just be E2 instead of F2 in the formula?

If not please explain in detail what you are trying to do.
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I am trying to get the formula to look in F2 which contains the persons age determined from =NOW()-E2 E2 contains their DOB.

Then if that agetis less than 46 return the date 3 years from I2 and if their age is between 46 and 60 return the date 2 years from I2 and if their age is 60 or over return the date 1 year from I2.

Thanks
 
Upvote 0
INT(NOW()) = number of DAYS from 1901 or 1899 (40675) therefore age need to be times by 365 (or 365.25) but age 46 = 46*365 = 16790 now-age = 23885

What are you trying to DO?
 
Upvote 0
I am trying to get the formula to look in F2 which contains the persons age determined from =NOW()-E2 E2 contains their DOB.

Then if that agetis less than 46 return the date 3 years from I2 and if their age is between 46 and 60 return the date 2 years from I2 and if their age is 60 or over return the date 1 year from I2.

Thanks


IF(F2<46,Year(G2)+3,IF(F2>60,Year(G2)+1,Year(G2)+2))

F2 = Year(Now())-Year(E2)
 
Upvote 0
1 problem with this the age only works out the year it doesnt take into acocunt months etc for example a person with a dob of 16/08/67 is 43 but the formula you suggest for f2 will show them as 44
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top