Is it possible to make data validation using sources from another workbooks?

Leorand

New Member
Joined
Nov 25, 2022
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello Masters,
I would like to ask about data validation like title above, let say I want to make data validation formula using combined count if to prevent duplicated data in one sheet and for the source I set it to different workbooks,

The formula is like this :
=COUNTIF('[Workbook2.xlsx]Sheet1'!$A$1:$A$1000,A1)+COUNTIF($A$1:$A$1000,A1)=1

but i got error message while try to apply those formulas.

I had done search on google how to solve this case, but it just not helping at all.

Can you help me with this problems?

Any help will be appreciated. Thank you.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
try this

Excel Formula:
=COUNTIF([Workbook2.xlsx]Sheet1!$A$1:$A$100,A1)+COUNTIF(A1:A100,1)
 
Upvote 0
You could put the formula in B1:B1000 that does this count. Then set a data validation up that if the cell changes to a 2 when you add data to the range.
Highlight A1:A1000: Make sure A1 is active
custom validation
Use the formula =B1<2
See if that works
 
Upvote 0
Hello Masters,
I would like to ask about data validation like title above, let say I want to make data validation formula using combined count if to prevent duplicated data in one sheet and for the source I set it to different workbooks,

The formula is like this :
=COUNTIF('[Workbook2.xlsx]Sheet1'!$A$1:$A$1000,A1)+COUNTIF($A$1:$A$1000,A1)=1

but i got error message while try to apply those formulas.

I had done search on google how to solve this case, but it just not helping at all.

Can you help me with this problems?

Any help will be appreciated. Thank you.
The error massage i got is "you may not use references to other workbooks for data validation criteria".
 
Upvote 0
What is the value of "A1"? Is it 1? Or is it another value? And do you want to find value 1 of column A in activeworkbook and in Workbook 2?
 
Upvote 0
What is the value of "A1"? Is it 1? Or is it another value? And do you want to find value 1 of column A in activeworkbook and in Workbook 2?
For the value of "A1" is another value like combined serial number. And yes, i want to find the value on A1:A1000 in workbooks 2 and active workbooks, to check if there is any serial number that has been insert into those column, and prevent the same serial number to insert into active column.
 
Upvote 0
You could put the formula in B1:B1000 that does this count. Then set a data validation up that if the cell changes to a 2 when you add data to the range.
Highlight A1:A1000: Make sure A1 is active
custom validation
Use the formula =B1<2
See if that works
I will try this.
Thank you.
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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