Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Marking Dupes

I have this formula: =IF(COUNTIF($A:$A,$A871)1,"TRUE","FALSE"), which
works OK, but I only want the second instance of the dupe marked as
false not the first. In other words with this formula, if there are 2
instances of 1000 in COL "A", the formula column shows TRUE for both. I
want FALSE for the 1st instance and TRUE for the 2nd. TIA

Greg

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Marking Dupes

=IF(COUNTIF($A$1:$A1,$A1)1,"TRUE","FALSE")

in B1 for example, then drag fill down the column

--
Regards,
Tom Ogilvy


"GregR" wrote in message
oups.com...
I have this formula: =IF(COUNTIF($A:$A,$A871)1,"TRUE","FALSE"), which
works OK, but I only want the second instance of the dupe marked as
false not the first. In other words with this formula, if there are 2
instances of 1000 in COL "A", the formula column shows TRUE for both. I
want FALSE for the 1st instance and TRUE for the 2nd. TIA

Greg



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Marking Dupes

Thanks Tom, but then I tried to count the values in Col "B" with "TRUE"
and the result is 0, I expected 1. The formula I used was
countif($B$1:$B$100,"TRUE"), where there is 1 TRUE Value in the range.
TIA

Greg

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Marking Dupes

That isn't anything like the formula I gave you:

=if(countif($B$1:$B1,$B1)1,True,False)

or if you want the text values True and False rather than the boolean values
=if(countif($B$1:$B1,$B1)1,"True","False")

put in C1, then drag fill down to C100

--
Regards,
Tom Ogilvy


"GregR" wrote in message
ups.com...
Thanks Tom, but then I tried to count the values in Col "B" with "TRUE"
and the result is 0, I expected 1. The formula I used was
countif($B$1:$B$100,"TRUE"), where there is 1 TRUE Value in the range.
TIA

Greg



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Marking Dupes

Tom, sorry for the misunderstanding. What you gave me was perfect. What
I further want to do is, as a result of your formula, to now count the
values in B1:B100 that are returned as "True". The formula I used was
countif($B$1:$B$100,"TRUE"), where there is 1 TRUE Value in the range.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Marking Dupes

=COUNTIF(B:B,"*TRUE*")

Possibly. It migh be easier change the orginal to be

True,False) rather than "True","False")

then use

=Countif(B:B,True)



--
Regards,
Tom Ogilvy


"GregR" wrote in message
oups.com...
Tom, sorry for the misunderstanding. What you gave me was perfect. What
I further want to do is, as a result of your formula, to now count the
values in B1:B100 that are returned as "True". The formula I used was
countif($B$1:$B$100,"TRUE"), where there is 1 TRUE Value in the range.



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
vlookup & sum? or maybe summing dupes? blswes Excel Discussion (Misc queries) 1 September 22nd 08 04:31 PM
macro for dupes shaji Excel Discussion (Misc queries) 2 June 17th 08 04:51 PM
Checking for Dupes TKnTexas Excel Discussion (Misc queries) 4 November 3rd 06 02:43 AM
deleting dupes/certain values slliks Excel Programming 1 October 22nd 04 03:11 AM
delete dupes in column BigRog Excel Programming 3 March 6th 04 06:13 AM


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