Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Problem finding duplicate values


I am using an if statement to find duplicate values in a column , now there
is a problem I can't work out.

A21 and A22 both contain the value 322 (copied from another sheet) and the
script doesn't pick them up them as identical values.

However if I do =A21-A22 the answer is zero, edit/find 322 picks up both
cells, the formats are identical as far as I can see.

If I type 322 in A21 and re run the script they are picked up as identical,
but if I type 322 in A22 and re run the script they are not picked up as
identical.

I'm baffled, I'd welcome any suggestions.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Problem finding duplicate values

Nicoll,

Sounds like one is text and one is numeric. Try using VALUE(A21)-VALUE(A22)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"nicoll" wrote in message
...

I am using an if statement to find duplicate values in a column , now

there
is a problem I can't work out.

A21 and A22 both contain the value 322 (copied from another sheet) and the
script doesn't pick them up them as identical values.

However if I do =A21-A22 the answer is zero, edit/find 322 picks up both
cells, the formats are identical as far as I can see.

If I type 322 in A21 and re run the script they are picked up as

identical,
but if I type 322 in A22 and re run the script they are not picked up as
identical.

I'm baffled, I'd welcome any suggestions.

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
Sort by Large, Offset from Match, Duplicate values problem JWC Excel Excel Discussion (Misc queries) 2 March 17th 10 11:14 AM
Finding duplicate value Ayo Excel Discussion (Misc queries) 2 October 27th 08 07:49 PM
Trouble Finding Duplicate Values with Conditional Formatting Diane Excel Discussion (Misc queries) 2 May 20th 07 04:00 PM
Finding Duplicate Values Scott Halper Excel Worksheet Functions 5 March 28th 07 05:43 PM
Finding a Duplicate using Vb Rocky McKinley Excel Programming 1 August 26th 03 09:29 PM


All times are GMT +1. The time now is 08:04 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"