hello!
in a list of duplicate rows, I want to count the duplicates of each different row, like in the below:
Book3.xls
how can I do this?
thanks!
hello!
in a list of duplicate rows, I want to count the duplicates of each different row, like in the below:
Book3.xls
how can I do this?
thanks!
Here, try this in F7:
=SUMPRODUCT(--($A$1:$A$300=D7),--($B$1:$B$300=E7))
Never use Merged Cells in Excel
I want it to be independent of the amount of rows
also, independent of the length of each row (so it should display below the last row)
See the formulae in this workbook, drag the table whereever you want.
Note.
D7 is different to D8, D8 can be dragged.
This just adds to what zbor stated.
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
One more, UDF approach (can be placed anywhere on the worksheet):
Last edited by WHER; 05-03-2012 at 04:51 PM.
is it possible to do it by simply click a button in any xls file?
ie, by clicking the button, to display that "report" below the last non-empty row?
can you tell me the macro code and how to trigger it?
thanks
It's a User Defined Function (UDF) not a macro, it's not "triggered" but entered like a normal function (e.g. "Sum(A1:A10)").
In the example it's entered in cell H7, then dragged sideways, then down (or vice versa).
The code can be found in the attachment: Alt+F11 will open the Visual Basic Editor, then open "Module 1", there you find the code.
![]()
Public Function splt(rng As Range, lng As Long, i As Integer) Dim arr, str, lng2 As Long, lng3 As Long, dic As Object Application.Volatile Set dic = CreateObject("Scripting.Dictionary") With dic For lng3 = 1 To rng.Rows.Count str = "" str = rng(lng3, 1) & "|" & rng(lng3, 2) .Item(str) = .Item(str) + 1 Next arr = Array(.Keys, .Items) If i = 1 Then splt = Split(arr(0)(lng - 1), "|")(0) ElseIf i = 2 Then splt = Split(arr(0)(lng - 1), "|")(1) ElseIf i = 3 Then splt = arr(1)(lng - 1) End If End With End Function
thanks but the problem with this is that I need to enter it manually
while a macro is always there, ready to be triggered
cant it be assigned somehow to a macro?
It's probably possible to re-think this as a macro, but as explained above, it only needs to be entered in 1 cell (20 seconds worth of typing), then dragged across (another 5 seconds), hardly a "problem"?
....thanks but the problem with this is that I need to enter it manually
while a macro is always there, ready to be triggered
“We do the impossible every day. Miracles take a little longer.”
A little effort goes a long way ...![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks