Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 204
Default Data Validation on multiple columns

I have id tag numbers in two columns (columns F and G) and I need to check
that each id tag number is only used once. (eg. if an id number is used in
column F I need to check that it is not used again in either column F or
column G).

Can I use DataValidation. Custom with some variation of the countif
formula.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Data Validation on multiple columns

Can I use DataValidation. Custom with
some variation of the countif formula.


Yes.

Assume the range of interest is F1:G10
Select the range F1:G10 starting from cell F1. Cell F1 will be the active
cell.
Use a formula like this:

=COUNTIF($F$1:$G$10,F1)<2


--
Biff
Microsoft Excel MVP


"NDBC" wrote in message
...
I have id tag numbers in two columns (columns F and G) and I need to check
that each id tag number is only used once. (eg. if an id number is used in
column F I need to check that it is not used again in either column F or
column G).

Can I use DataValidation. Custom with some variation of the countif
formula.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 204
Default Data Validation on multiple columns

Thanks Biff. I didn't realise it needed the range to be in $ for it to work.

Is it possible to select the entire columns. I know when it is only one
column you can use F:F but is there a similar code to do all of column F and G

"T. Valko" wrote:

Can I use DataValidation. Custom with
some variation of the countif formula.


Yes.

Assume the range of interest is F1:G10
Select the range F1:G10 starting from cell F1. Cell F1 will be the active
cell.
Use a formula like this:

=COUNTIF($F$1:$G$10,F1)<2


--
Biff
Microsoft Excel MVP


"NDBC" wrote in message
...
I have id tag numbers in two columns (columns F and G) and I need to check
that each id tag number is only used once. (eg. if an id number is used in
column F I need to check that it is not used again in either column F or
column G).

Can I use DataValidation. Custom with some variation of the countif
formula.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Data Validation on multiple columns

Try this:

=COUNTIF($F:$G,F1)<2

I don't know how efficient that'll be!

--
Biff
Microsoft Excel MVP


"NDBC" wrote in message
...
Thanks Biff. I didn't realise it needed the range to be in $ for it to
work.

Is it possible to select the entire columns. I know when it is only one
column you can use F:F but is there a similar code to do all of column F
and G

"T. Valko" wrote:

Can I use DataValidation. Custom with
some variation of the countif formula.


Yes.

Assume the range of interest is F1:G10
Select the range F1:G10 starting from cell F1. Cell F1 will be the active
cell.
Use a formula like this:

=COUNTIF($F$1:$G$10,F1)<2


--
Biff
Microsoft Excel MVP


"NDBC" wrote in message
...
I have id tag numbers in two columns (columns F and G) and I need to
check
that each id tag number is only used once. (eg. if an id number is used
in
column F I need to check that it is not used again in either column F
or
column G).

Can I use DataValidation. Custom with some variation of the countif
formula.

Thanks






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
Dependent list in data validation - more than 2 columns YY san.[_2_] Excel Worksheet Functions 5 March 22nd 09 05:24 PM
Data validation: wider window on 14 columns Jim C Excel Discussion (Misc queries) 3 August 28th 07 09:30 PM
Data Validation & multiple columns Bob Excel Discussion (Misc queries) 1 April 9th 07 10:24 AM
Data validation for Multiple columns NC Excel Discussion (Misc queries) 2 May 11th 05 01:51 PM
data validation list from two columns otinky Excel Discussion (Misc queries) 1 March 21st 05 01:13 PM


All times are GMT +1. The time now is 11:42 PM.

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"