Data Validation Problem

Shayooluwah

New Member
Joined
Jan 14, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I'm trying to create a form, but I'm facing some challenges.
Registration Number should start with an R and have max of 13 characters e.g R1234567891234. I was able to use custom data validation =EXACT(LEFT(D5,2), "R-")
to enforce it starting with R but not for character length.

Then I want some cells(J2:M2) to be un-fillable until others(E2:H2) have text in them. But the problem is that (J2:M2) & (E2:H2) already have this formula/variations of this formula =IF(ISBLANK($I2),"",IF(TODAY()>$I$2+183,"Exam due","")) in them

I tried using this =IF(OR(ISBLANK(L2),ISBLANK(F2),ISBLANK(G3),ISBLANK(H4)),"NEY",IF(ISBLANK($I2),"",IF(TODAY()>$I$2+183,"Exam due","")))

But it doesn't work cause (J2:M2) & (E2:H2) have data validations in them that allows the cells to accept only whole numbers.

So how can I retain the numeric data validation for (J2:M2) & (E2:H2) and still have it to be un-fillable if previous cells are still blank?
 

Attachments

  • SSCHT.png
    SSCHT.png
    191.9 KB · Views: 11

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Registration Number should start with an R and have max of 13 characters e.g R1234567891234. I was able to use custom data validation =EXACT(LEFT(D5,2), "R-")
to enforce it starting with R but not for character length.

How about
=AND(LEN(D5)<=13,LEFT(D5,1)="R",ISNUMBER(VALUE(RIGHT(D5,LEN(D5)-1))))
 
Upvote 0
Why did you post the image?
- it tells us nothing useful :unsure:
Your post refers to various ranges
- but you have hidden all row numbers and column numbers in the image :oops:
 
Upvote 0
Why did you post the image?
- it tells us nothing useful :unsure:
Your post refers to various ranges
- but you have hidden all row numbers and column numbers in the image :oops:
Sorry that was not intentional, picture got cropped and I did not notice.
 
Upvote 0

Forum statistics

Threads
1,215,810
Messages
6,127,015
Members
449,351
Latest member
Sylvine

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