Excel-If And Function

lqorri

New Member
Joined
Feb 13, 2017
Messages
14
Hello,


I would like a function that would output the years on hand by group max column based on the estimated years on hand max column. I have been able to complete the function by doing If, And statement, however it is a long formula. Is there a shorter way to complete with a range?

[TABLE="class: cke_show_border, width: 384"]
<tbody>[TR]
[TD="width: 197"] Estimated Years on Hand Max [/TD]
[TD="width: 187"] Year On Hand by Group Max [/TD]
[/TR]
[TR]
[TD] 3.03[/TD]
[TD]3-4 years[/TD]
[/TR]
[TR]
[TD] 8.65[/TD]
[TD]5+ years[/TD]
[/TR]
[TR]
[TD] 1.21[/TD]
[TD]1-2 years[/TD]
[/TR]
[TR]
[TD] 5.34[/TD]
[TD]5+ years[/TD]
[/TR]
[TR]
[TD] 1.58[/TD]
[TD]1-2 years[/TD]
[/TR]
[TR]
[TD] 7.78[/TD]
[TD]5+ years[/TD]
[/TR]
[TR]
[TD] 0.42[/TD]
[TD]Less then 1 year[/TD]
[/TR]
</tbody>[/TABLE]


thank you for your help
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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