Data Validation Question

MichaelRSnow

Active Member
Joined
Aug 3, 2010
Messages
409
Hi There<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Anyone know if you can put data validation based on value of cell not formula lenght?<o:p></o:p>
<o:p></o:p>
i.e.<o:p></o:p>
<o:p></o:p>
Cell A1 has the following formula =AA1&"%" & " 2Yr Fix"<o:p></o:p>
<o:p></o:p>
Result of formula is [4.99% 2Y Fix]<o:p></o:p>
<o:p></o:p>
Data validation should read 12 characters (including spaces) and not 20 characters which is the text length of the formula?

any ideas?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I think this may work. In Data Validation, select "Custom" (under Allow) and your formula is
Code:
Len(A1)<=12
 
Upvote 0
Your formula and your text don't match. One is 12 characters the other is 13. Cell Validation works on the cell value, not the formula length.

4.99% 2Yr Fix
is the 13 char one.
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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