Need help with age related formula

leopardhawk

Well-known Member
Joined
May 31, 2007
Messages
611
Office Version
  1. 2016
Platform
  1. Windows
Hello forum friends,

I have a worksheet called 'income_analysis', with three separate sections (groups of cells). Each section is related to the current or future age of the user. Section 1 is less than 60 years, Section 2 is 60-70 years and Section 3 is over 70 years of age. There is a single cell within each of these three sections that contains the relevant dollar amount that I need in the formula (they are F34, F62 and F92 respectively).

There is a worksheet called 'personal_info' (cell E9) where the user enters their DOB.

A worksheet called 'tax rates', is where I need the actual formula (cell C5). The formula should return a dollar amount from one of the three cells on the 'income_analysis' worksheet based on the current age of the user.

Not sure if this is possible but thought I would throw it out there.

Thanks!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi LeopardHawk,

I think this does what you want.

income_analysis
LeopardHawk.xlsx
AFG
1
33Section 1
34 $ 12,000
35
61 Section 2
62 $ 25,000
63
91 Section 3
92 $ 62,000
93
income_analysis


personal_info

LeopardHawk.xlsx
AEF
1
8DoB
91/1/1949
10
personal_info


tax rates

LeopardHawk.xlsx
ACD
1
4Result
562000
6
tax rates
Cell Formulas
RangeFormula
C5C5=IF(DATEDIF(personal_info!E9,TODAY(),"Y")<60,income_analysis!F34,IF(DATEDIF(personal_info!E9,TODAY(),"Y")<71,income_analysis!F62,income_analysis!F92))
 
Upvote 0
Here is another way too.

My 'income_analysis' & 'personal_info' sheets are the same as Toadstool's

Note though that this will not adjust automatically if rows are subsequently inserted or deleted between rows 34 and 92 in sheet 'income_analysis'

leopardhawk 2020-04-03 1.xlsm
C
4Result
562000
tax rates
Cell Formulas
RangeFormula
C5C5=INDEX(income_analysis!F34:F92,LOOKUP(DATEDIF(personal_info!E9,TODAY(),"y"),{0,60,71},{1,29,59}))
 
Upvote 0
Thank you both so much, they both work fantastically!
You're welcome.

Here is another, intermediate, way that will allow the formula auto-adjustment if rows are added/removed

leopardhawk 2020-04-03 1.xlsm
C
4Result
562000
tax rates
Cell Formulas
RangeFormula
C5C5=CHOOSE(MATCH(DATEDIF(personal_info!E9,TODAY(),"y"),{0,60,71}),income_analysis!F34,income_analysis!F62,income_analysis!F92)
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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