Formula to subtract from a cell given a set number range

ClashGordon

New Member
Joined
Sep 28, 2017
Messages
2
Good morning and newbie here. Not sure if I worded the title correctly but hopefully I can describe it better. So I have an age range starting with 62 on up. The formula I am looking for would start with a set number (in this case 29), subtract a year based on the person's age as they get older and that number has to go down to 10 (age 81 is where 10 kicks in). After that age/year hits 10, any other age past that will stay at 10. See example. Thank you for any help in the matter.


Age Year
62 29
63 28
64 27
... ...
81 10
82 10
83 10
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Excel 2010
AB
1AgeYear
26229
36328
3d
Cell Formulas
RangeFormula
B3=MAX(10,B2-(A3-A2))
 
Upvote 0
Thank you for the reply. One thing I forgot to mention is that column B is not in the data. I need column B to be the results if that makes sense. So if age is 62, I need cell B2 to be 29, if the age is 63, I need it to be 28. I was thinking about just building a table and doing a vlookup. But regardless, thanks for all your help.
 
Upvote 0

Forum statistics

Threads
1,224,922
Messages
6,181,779
Members
453,065
Latest member
jfrsanders

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