Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Check no cell is the same within a range

Dear all,

The range A1:A500 contains references.

What formula would I require to return a true of false answer to the
question: are all cells different?

i.e. are all references independent.


Thanking-you in advance. Kind regards,

Neil
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Check no cell is the same within a range

In any available empty column, put this formula in a cell on row 1 and fill
it down to row 500:
=IF(COUNTIF($A$1:$A$500,A1)=1,"","MULTIPLE ENTRIES")
Rather than nag you with a bunch of "TRUE" entries when the item on a row
only appears once, this leaves it blank, making the MULTIPLE ENTRIES noted
stand out better. If you want a real TRUE/FALSE output, then use
=COUNTIF($A$1:$A$10,A1)=1

Either case, when you have an entry that is repeated, each instance of it
will be marked as either "MULTIPLE ENTRIES" (first formula) or FALSE (2nd
formula).

Hope this helps.

"Neil Pearce" wrote:

Dear all,

The range A1:A500 contains references.

What formula would I require to return a true of false answer to the
question: are all cells different?

i.e. are all references independent.


Thanking-you in advance. Kind regards,

Neil

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Check no cell is the same within a range

The following array formula will return TRUE if all items in A1:A10
are distinct (no duplicates, ignoring empty cells) or FALSE if there
are duplicate values in A1:A10.

=MAX(COUNTIF(A1:A10,A1:A10))<=1

This is an array formula, so you must press CTRL SHIFT ENTER rather
than just ENTER when you first enter the cell and whenever you edit it
later. If you do this properly, Excel will display the formula
enclosed in curly braces { }. See
http://www.cpearson.com/Excel/ArrayFormulas.aspx for more information
about array formulas.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Thu, 23 Oct 2008 05:05:01 -0700, Neil Pearce
wrote:

Dear all,

The range A1:A500 contains references.

What formula would I require to return a true of false answer to the
question: are all cells different?

i.e. are all references independent.


Thanking-you in advance. Kind regards,

Neil

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Check no cell is the same within a range

An alternative to JLatham is to use the single cell array formula:

=IF(MAX(COUNTIF(A1:A500,A1:A500))1,"not all are different","all are
different")

The formula must be entered with CNTRL-SHFT-ENTER rather than just the ENTER
key.
--
Gary''s Student - gsnu200809


"Neil Pearce" wrote:

Dear all,

The range A1:A500 contains references.

What formula would I require to return a true of false answer to the
question: are all cells different?

i.e. are all references independent.


Thanking-you in advance. Kind regards,

Neil

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
Check the interval of a cell withni a range of values dakke Excel Discussion (Misc queries) 1 February 15th 08 04:00 AM
Check if text exists within a cell range and return logical vaule - possible? [email protected] Excel Discussion (Misc queries) 2 July 20th 07 02:29 AM
Check if rounded cell values fall within a range vertigo Excel Discussion (Misc queries) 2 April 24th 07 11:34 AM
Check if a cell contains text compared to a range of cells GD1226, Captain Ahab, manface Excel Discussion (Misc queries) 5 April 13th 07 01:00 AM
Check to see if cell data is within a range mwrfsu Excel Worksheet Functions 4 August 22nd 05 10:40 PM


All times are GMT +1. The time now is 05:31 AM.

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

About Us

"It's about Microsoft Excel"