Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jamuck
 
Posts: n/a
Default Data validation problem


I am trying to use data validation to check whether when data is entered
if it is repeated. As the data is in a different worksheet I have
created a dynamic named range using the formula:
=OFFSET(BMs!$A$6,0,0,COUNT(BMs!$A:$A),1)
called BMs and then used a custom function in data validation to check
if the input is repeated using formula:
ISNA(VLOOKUP(B12,BMs,1,FALSE))
This gives me the same result whether an input is repeated or not.

any ideas?


--
Jamuck
------------------------------------------------------------------------
Jamuck's Profile: http://www.excelforum.com/member.php...o&userid=30545
View this thread: http://www.excelforum.com/showthread...hreadid=505299

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Data validation problem

Without looking at your formula at all, is there a reason you just don't use
List in the Data|Validation rules and point at =BMs


Jamuck wrote:

I am trying to use data validation to check whether when data is entered
if it is repeated. As the data is in a different worksheet I have
created a dynamic named range using the formula:
=OFFSET(BMs!$A$6,0,0,COUNT(BMs!$A:$A),1)
called BMs and then used a custom function in data validation to check
if the input is repeated using formula:
ISNA(VLOOKUP(B12,BMs,1,FALSE))
This gives me the same result whether an input is repeated or not.

any ideas?

--
Jamuck
------------------------------------------------------------------------
Jamuck's Profile: http://www.excelforum.com/member.php...o&userid=30545
View this thread: http://www.excelforum.com/showthread...hreadid=505299


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Jamuck
 
Posts: n/a
Default Data validation problem


But won't that then require an input that is on the list and therefore
create a duplication which is what I want to avoid?


--
Jamuck
------------------------------------------------------------------------
Jamuck's Profile: http://www.excelforum.com/member.php...o&userid=30545
View this thread: http://www.excelforum.com/showthread...hreadid=505299

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Data validation problem

Yep. Sorry, I misunderstood the point of the question.

I used this formula:
=ISERROR(MATCH(b12,BMS,0))

(=match() is just about the same as =vlookup() when you're bringing back the
first column.)

This worked so that I couldn't enter any value that was in that list of BMs.

This may be easier to see:
=COUNTIF(BMS,b12)=0

====
Did you actually have an equal sign in your formula?
ISNA(VLOOKUP(B12,BMs,1,FALSE))
(the email post didn't show one, and your formula worked when I added it.)
=ISNA(VLOOKUP(B12,BMs,1,FALSE))




Jamuck wrote:

But won't that then require an input that is on the list and therefore
create a duplication which is what I want to avoid?

--
Jamuck
------------------------------------------------------------------------
Jamuck's Profile: http://www.excelforum.com/member.php...o&userid=30545
View this thread: http://www.excelforum.com/showthread...hreadid=505299


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
Jamuck
 
Posts: n/a
Default Data validation problem


It did have an equals sign. I have figured out why it wasn't working
now - the figures in the list were linked to the inputted cells so that
every time I updated a value it found a repeat - doh! Thanks for your
help.


--
Jamuck
------------------------------------------------------------------------
Jamuck's Profile: http://www.excelforum.com/member.php...o&userid=30545
View this thread: http://www.excelforum.com/showthread...hreadid=505299

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Data validation does not seem to work with copy/paste LAF Excel Discussion (Misc queries) 1 September 15th 05 09:31 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Automatic Data Validation drop down creation Buddhapenguin Excel Discussion (Misc queries) 1 May 12th 05 08:41 PM


All times are GMT +1. The time now is 01:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"