two Conditional formatting

faizee

Board Regular
Joined
Jan 28, 2009
Messages
214
Office Version
  1. 2016
Platform
  1. Windows
allow to enter value in cell, only if
1. data contain 1 time "x" value between two numeric value . & both numeric values should not be more than 99,
e.g
34x45.5, (allow)......
21x56.44 (allow)
23c45.5, (not allow).
23 x 45.5 (any space not allow)
101x22 (numeric more than 99 not allow)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,

Are you talking about Conditional Formatting ... or about Data Validation ... ???
 
Upvote 0
looking for both options, conditional formatting and data validation..
 
Upvote 0
Excel Formula:
=NOT(IFERROR(AND(VALUE(REPLACE(B1,SEARCH("x",B1),95,""))<=99,VALUE(REPLACE(B1,1,SEARCH("x",B1),""))<=99,SEARCH("x",B1)>=1,ISERROR(SEARCH(" ",B1))),FALSE))
 

Attachments

  • 1674748506346.png
    1674748506346.png
    27.4 KB · Views: 12
Upvote 0
THANK YOU, so much. can we use it in data validation?
 
Upvote 0
Excel Formula:
=NOT(IFERROR(AND(VALUE(REPLACE(B1,SEARCH("x",B1),95,""))<=99,VALUE(REPLACE(B1,1,SEARCH("x",B1),""))<=99,SEARCH("x",B1)>=1,ISERROR(SEARCH(" ",B1))),FALSE))
need opposite of this,
its not allowing required value
but allowing, not required vlaues
 
Upvote 0
it's for conditional formatting not for data validation. idk how to do with data validation
 
Upvote 0

Forum statistics

Threads
1,223,738
Messages
6,174,213
Members
452,551
Latest member
croud

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