Manditory field

robrobedin

New Member
Joined
Mar 29, 2013
Messages
1
Hi

are you able to advise how I can code my worksheet for the following requirement


I have a worksheet that I update on a daily basis, there are 5 columns and the worksheet has a lot of other information on the rows above.

I want to be able to make column E manditory before closure when columns A - D are complete.

also baring in mind that this sheet will be updated daily so its a continuous workbook.


is this possible?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

RJPotts

Board Regular
Joined
Apr 11, 2007
Messages
139
I think the approach I would take is;

Add an additional column and in there enter the formula (as it would be on row 2, adjust to suit first row of your data) =IF(AND(COUNTA(A2:D2)>0,E2=""),1,"")

Then add a cell showing the sum of that column. Add a macro with a before close event to check for the presence of anything exceeding 0 in that cell.

Best regards
Richard
 

Watch MrExcel Video

Forum statistics

Threads
1,130,119
Messages
5,640,219
Members
417,131
Latest member
Seanr19871

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
Top