Mandatory data validation based on value arising in adjacent cell.

jgopal

New Member
Joined
Dec 27, 2020
Messages
23
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
  2. MacOS
Hello everyone,
Good evening.

I have a data entry worksheet with columns A:L. Only columns in green requires entry by the user.

Is it possible to run a macro when value in column K (Variance) is 1 minute (00:01) or more, then Column L (Delay Reason) has to be updated by the user from a drop down list and only then move to the next row / free cell. Column L is a drop down list with possible reasons why there was a delay.

I saw a lots of macros but nothing meets a similar criteria. Most of them are to not allow save or close the file without filing in the mandatory field. Those will not apply as this file will be in sharepoint and always set to save being online and being collaborated by 3-4 users.


Thanks
Best Regards
J




Client task tracker - ver2.xlsx
ABCDEFGHIJKL
1NODATEDAYDIVISIONREPORT NAMECODEFREQUENCYRESPONSIBLETARGET TIMECOMPLETION TIMEVARIANCEDELAY REASON
2        
3        
4        
Data
Cell Formulas
RangeFormula
A2:A4A2=IF([@DIVISION]="","",ROW()-ROW(Table1[[#Headers],[NO]]))
B2:B4B2=IF(A2<>"",IF(B2<>"",B2,NOW()),"")
C2:C4C2=IF([@DATE]="","",TEXT([@DATE],"dddd"))
F2:F4F2=IFERROR(VLOOKUP([@[REPORT NAME]],WORKING!C:D,2,FALSE),"")
G2:G4G2=IFERROR(VLOOKUP([@[REPORT NAME]],WORKING!C:E,3,FALSE),"")
H2:H4H2=IFERROR(VLOOKUP([@[REPORT NAME]],WORKING!C:F,4,FALSE),"")
I2:I4I2=IFERROR(VLOOKUP([@[REPORT NAME]],WORKING!C:G,5,FALSE),"")
K2:K4K2=IFERROR(IF([@[COMPLETION TIME]]-[@[TARGET TIME]]>0,[@[COMPLETION TIME]]-[@[TARGET TIME]], TEXT(ABS([@[COMPLETION TIME]]-[@[TARGET TIME]]),"-hh:mm")),"")
Cells with Data Validation
CellAllowCriteria
D2:D150List=WORKING!$J$2:$J$12
E2:E150List=OFFSET(WORKING!$L$1,1,MATCH($D2,WORKING!$L$1:$V$1,0)-1,COUNTA(OFFSET(WORKING!L1,1,MATCH(D2,WORKING!$L$1:$V$1,0)-1,10)),1)
L2List=WORKING!$J$17:$J$25
L3:L150List=WORKING!$J$17:$J$25
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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