Adding data validation to existing table - not replcating on adding new row

henryg

Board Regular
Joined
Oct 23, 2008
Messages
144
Office Version
  1. 365
Platform
  1. Windows
I am having problems adding data validation to an existing transaction table (some 200+ rows), as the custom formula validation does not get replicated when a new line is added. In this case it is to give a warning if the transaction date is not +/-30 days from the current date (=AND(A222>(TODAY()-30),A222<(TODAY()+30)).

I created a new (empty) table with the same data validation and it replicated when a new row was added.

Can anyone suggest what might be going wrong? I do not want to start from scratch, even allowing that I could paste the data across, as it is linked to a number of other sheets and tables, and shared. Something would be bound to go wrong!
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi Henryg,

I'm not sure I understand but let me give it a try. A Data Validation Custom formula should use the cell address which is the first row being checked and the Data Validation should be applied to all cells where required, even if they do not yet contain data.

For this example I selected cells B2:C2000, Data Validation, Custom with a Formula of
=AND($A2>(TODAY()-30),$A2<(TODAY()+30))
and for Error Alert I selected Warning.

Column B or C changes for rows 5,6 and 7 are allowed, others give warning if column A has a date.

ABC
1Transaction DateNameNumber
207-Jul-19Bert3
317-Jul-19Fred6
427-Jul-19Sue5
505-Sep-19Fred3
615-Sep-19Sue1
725-Sep-19Sara3
805-Oct-19Bert1
915-Oct-19Fred1
10
11
12

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2
 
Upvote 0
Thanks for your help Toadstool! When I tried to enter the validation formula for the whole column I found I already had different data validation set that I had forgotten; Excel allowed me to change the validation in the last cell but subsequent rows then had no validation, presumably because I had confused it.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

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