Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Researching single pairof data problem...

I've got a worksheet with a column of data like A:

A B
4 Match
5 Mismatch
4 Match
4 Mismatch
6 Match
2 Mismatch
1 Mismatch
6 Match

I'm trying to find a formula or a macro that could give me an output
like in column B....The big problem is that i need to find only single pairs
of data (E.G: the first two "4" are matching, the third one is mismatching
because there isn't another one in column A). I've tried with countif and
offset but they doesn't work.

Someone could give me an hint on a formula or a macro?
Thanks for your time.

Live Long and Prosper,
Xerses from Home.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Researching single pairof data problem...

=IF(COUNTIF(A:A,A1)1,"Match","Mismatch")

--
Patrick Molloy
Microsoft Excel MVP
---------------------------------
I Feel Great!
---------------------------------
"Xerses" wrote in message
...
I've got a worksheet with a column of data like A:

A B
4 Match
5 Mismatch
4 Match
4 Mismatch
6 Match
2 Mismatch
1 Mismatch
6 Match

I'm trying to find a formula or a macro that could give me an output
like in column B....The big problem is that i need to find only single
pairs
of data (E.G: the first two "4" are matching, the third one is mismatching
because there isn't another one in column A). I've tried with countif and
offset but they doesn't work.

Someone could give me an hint on a formula or a macro?
Thanks for your time.

Live Long and Prosper,
Xerses from Home.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Researching single pairof data problem...

Patrick's solution doesn't quite get what you want because the 3rd "4" does
not have a second match, but his formula says it does. This formula will
test to see if COUNTIF is ODD or EVEN and determine if this line has a
second match.

=IF(MOD(COUNTIF(A:A,A1),2)=0,"Match",IF(MOD(COUNTI F($A$1:A1,A1),2)0,IF(COUN
TIF($A$1:A1,A1)=COUNTIF(A:A,A1),"Mismatch","Match" ),"Match"))

Put this formula in B1 and fill down the column.
MIke F
"Xerses" wrote in message
...
I've got a worksheet with a column of data like A:

A B
4 Match
5 Mismatch
4 Match
4 Mismatch
6 Match
2 Mismatch
1 Mismatch
6 Match

I'm trying to find a formula or a macro that could give me an output
like in column B....The big problem is that i need to find only single

pairs
of data (E.G: the first two "4" are matching, the third one is mismatching
because there isn't another one in column A). I've tried with countif and
offset but they doesn't work.

Someone could give me an hint on a formula or a macro?
Thanks for your time.

Live Long and Prosper,
Xerses from Home.





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
Email (LDAP) data download into a single Excel cell - data separat MSA Excel Worksheet Functions 1 March 4th 08 05:14 PM
combining multiple rows of data into one single row of data myersjl Excel Worksheet Functions 0 March 30th 06 10:39 PM
Displaying single and multiple data series.Single data series Donald Macleod Charts and Charting in Excel 2 January 30th 06 02:52 AM
Return Single Row of Numeric Data to Single Column Sam via OfficeKB.com Excel Worksheet Functions 4 December 17th 05 12:31 AM
Problem with creating numerous shapes on a single sheet Youpicola Excel Programming 0 August 12th 04 01:08 PM


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