hi i need help with the following
in column D I need to know how many smiths there are and if the phone number matches the same surname
if the phone number doesn't match its is differance smith and so on down column D
i have included a file
hi i need help with the following
in column D I need to know how many smiths there are and if the phone number matches the same surname
if the phone number doesn't match its is differance smith and so on down column D
i have included a file
Last edited by Duckie; 12-09-2009 at 08:03 AM.
Here, try this: =SUMPRODUCT(--($B$4:$B$19=B4),--($C$4:$C$19=C4))
Or this for empty cells between:
=IF(COUNTIF($C$4:C4,C4)>1,"",SUMPRODUCT(--($B$4:$B$19=B4),--($C$4:$C$19=C4)))
hi
its telling me that i have 2 smiths in D4 and D5 i only need to tell me once not twice
zbor's revised version should account for your prior post.
If you're using XL2007 you should (IMO) really use COUNTIFS in this instance
change ranges to suit requirementsPlease Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
thank you zbor the second on worked
=if(match($b4,b$4:$b4,0)>=row($a1),countifs(b$4:b$19,$b4,c$4:c$19,$c4),"")
Last edited by contaminated; 12-09-2009 at 08:21 AM.
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, ?Born in USSR?
Vusal M Dadashev
Baku, Azerbaijan
True to an extent - the sort order is irrelevant - what is important is that the data is "grouped" together based on combinations.Originally Posted by CWE
And yes this was the assumption made in my formula - given this was the implied setup in the original.
Thanks for taking the time to review & adapt though of course you need to search for the combination of B & C not just B.
Worth adding perhaps that the exact MATCH test (0) to handle unsorted data would be slower so if not needed don't use it.
True also...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks