Validating if an alphanumeric value falls between defined min and max

brianclark75

New Member
Joined
Jun 28, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I am trying to validate if an alphanumeric value (list of multiple ID numbers format: B125625) falls with a range of four separate Min and max values. Due to the fact that they are alphanumeric, my formulas are not yielding the right results. I've tried formulas such as:

=if(Min1cell<targetcell<max1cell, TRUE,FALSE)

I've tried to use a helper column and take the numeric digits to use the same formula as above (=RIGHT(targetcell),6), but the result is still in text form which doesn't work with the formula.

I've also tried using the Value function =value(right(targetcell,6))

Mins and Maxs

1687964696432.png


List to be validated as values between the mins and max's
1687964739509.png
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
The helper column was formatted as numbers? I would expect the formula to work if it was. If not, perhaps you can convert the text value to a number with Value function before passing it to the Min function (i.e. wrap Value within Min function).
 
Upvote 0
(=RIGHT(targetcell),6)
that keeps it as text
so
(=RIGHT(targetcell),6)*1
or
(=RIGHT(targetcell),6)+0
etc will convert to a number , then allow you to use the MIn/Max
 
Upvote 0
The helper column was formatted as numbers? I would expect the formula to work if it was. If not, perhaps you can convert the text value to a number with Value function before passing it to the Min function (i.e. wrap Value within Min function).
cannot simply convert to text, as the values in the list are copied from a raw data paste into another cell. This is why I am looking for a formula that can either convert to numbers or can interpret the range between to alphanumerical limits.
 
Upvote 0
(=RIGHT(targetcell),6)
that keeps it as text
so
(=RIGHT(targetcell),6)*1
or
(=RIGHT(targetcell),6)+0
etc will convert to a number , then allow you to use the MIn/Max
multiplying by 1 or adding zero did not seem to convert to numbers.
 
Upvote 0

Forum statistics

Threads
1,224,750
Messages
6,180,740
Members
452,996
Latest member
nelsonsix66

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