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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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
cannot simply convert to text,
Glad you got it figured out because I didn't suggest that.
It's considered customary to post your own solution in case it helps someone else in the future.
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,307
Members
449,095
Latest member
Chestertim

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