formula using multiple criteria

smallball91

New Member
Joined
Jan 5, 2024
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
I am looking to create a formula for HSA contributions. I'd like to take the information below and return the value if the Type is something and the Age is under or over 55 then the Limit is determined. Any help is appreciated. thanks!


TypeLimitAge
single
3400​
36​
single over 50
4400​
35​
family
7500​
55​
family over 50
7600​
60​
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I don't follow what information you are starting with and what information should be the result. Could you provide some sample data showing what information you start with, and what the expected results should be?
 
Upvote 0
I don't follow what information you are starting with and what information should be the result. Could you provide some sample data showing what information you start with, and what the expected results should be?
I'm trying to deliver a result that says if the age is under 50 and the type is single then the result should be 3400 but if the age is over 50 then the result should be 4400 and same with family and family over 50. So, if the age is 36 and the type is single then the result would be 3400, but if the age is 55 and the type is family then the result is 7500. I hope that's clearer.
 
Upvote 0
Perhaps something like this then:

Book1 1-4-2024.xlsx
ABCDEFG
1TypeLimitAgeTypeAgeLimit
2single340050Single51Invalide Type/Age Combination
3single over 50440051Single453400
4family750050Single Over 5035Invalid Type/Age Combination
5family over 50760051Single Over 50604400
6Family70Invalide Type/Age Combination
7Family287500
8Family Over 5033Invalid Type/Age Combination
9Family Over 50527600
Sheet8
Cell Formulas
RangeFormula
G2:G9G2=IF(F2>50,IF(E2="Single Over 50",$B$3,IF(E2="Family Over 50",$B$5,"Invalide Type/Age Combination")),IF(E2="Single",$B$2,IF(E2="Family",$B$4,"Invalid Type/Age Combination")))


You can replace the text string "Invalid Type/Age Combination" if the Type/Age doesn't match the constraints.
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,346
Members
449,155
Latest member
ravioli44

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