Thats disappointing. Is there something different about what I'm trying to do compared to the other examples here? I really wouldn't have a clue where to start with VBA/SQL for this problem.
For a separate issue, I've managed to use SUM(IF in an array and SUMPRODUCT to count multiple conditions using the same 50,000 rows. My main difficultly here is trying to only count these conditions alongside the unique values specified in column A.
Even if it it would be slow, I'd appreciate help in giving it a shot! I'm out of other options.
Given the sample you posted...
[TABLE="width: 457"]
<COLGROUP><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 2929" width=82><COL style="WIDTH: 85pt; mso-width-source: userset; mso-width-alt: 4039" width=114><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 2958" width=83><COL style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 3953" width=111><COL style="WIDTH: 80pt; mso-width-source: userset; mso-width-alt: 3783" width=106><COL style="WIDTH: 85pt; mso-width-source: userset; mso-width-alt: 4010" width=113><TBODY>[TR]
[TD="class: xl65, width: 82, bgcolor: transparent"]
Field-1[/TD]
[TD="class: xl65, width: 114, bgcolor: transparent"]
Field-2[/TD]
[TD="class: xl65, width: 83, bgcolor: transparent"]
Field-3[/TD]
[TD="class: xl65, width: 111, bgcolor: transparent"]
Field-4[/TD]
[TD="class: xl65, width: 106, bgcolor: transparent"]
Field-5[/TD]
[TD="class: xl65, width: 113, bgcolor: transparent"]
Field-6[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: transparent, align: right"]
90010[/TD]
[TD="class: xl67, bgcolor: transparent"]
Admission[/TD]
[TD="class: xl67, bgcolor: transparent"]
HospA[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
29-Nov-12[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
1-Apr-13[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
5-May-13[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: transparent, align: right"]
90010[/TD]
[TD="class: xl67, bgcolor: transparent"]
Discharge[/TD]
[TD="class: xl67, bgcolor: transparent"]
HospA[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
30-Nov-12[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
7-Jan-12[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
2-Jan-13[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: transparent, align: right"]
90011[/TD]
[TD="class: xl67, bgcolor: transparent"]
Admission[/TD]
[TD="class: xl67, bgcolor: transparent"]
HospA[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
12-Apr-14[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
8-Dec-13[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
13-Jul-13[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: transparent, align: right"]
90013[/TD]
[TD="class: xl67, bgcolor: transparent"]
Discharge[/TD]
[TD="class: xl67, bgcolor: transparent"]
HospA[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
4-Mar-13[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
27-Jul-13[/TD]
[TD="class: xl69, bgcolor: transparent, align: right"]
29-Dec-13[/TD]
[/TR]
</TBODY>[/TABLE]
What are the conditions and on which field do we apply/run the distinct count? Assume that the above sample is located in A1:F5, the headers included.