Function for detecting is a parameter is in range

rjwalker2514

New Member
Joined
Aug 4, 2018
Messages
7
[TABLE="width: 500"]
<tbody>[TR]
[TD]HEIGHT[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]WIDTH[/TD]
[TD]2100[/TD]
[/TR]
[TR]
[TD]TOTAL SIZE[/TD]
[TD]4100[/TD]
[/TR]
[TR]
[TD]DESIGN[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Out of Range[/TD]
[/TR]
</tbody>[/TABLE]

Hi I would like a function that will detect if a value is outside the design parameters.

Example:

DESIGN 1 is only compatible if the total size is between 1000 & 4000 inclusive. How can I write a formula that detects that this example if Out of Range and shows that in a nearby cell?

If the DESIGN number was to change to 2 the compatible size would now be between 1000 & 2600. Can I add to the formula to show this also?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
This formula is for the specific case you cite in your post, where Designs are numbered 1, 2, ... and can be expanded to include higher-number designs.

Note that the labels you posted are used to create named ranges by selecting A1:B4, then Formula>Defined Names>Create from Selection and make sure the Names to the left check box is ticked. The formula is in D1.
Excel Workbook
ABCD
1HEIGHT2000Out of Range
2WIDTH2100
3TOTAL SIZE4100
4DESIGN1
Sheet3
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
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