G
Guest
I have a sheet with a SUMPRODUCT formula that works great. The problem I am
running into is the row limitation in Excel. Is there a way to do the same
kind of task in Access? I am actually performing a query in Access first
that pulls the fields I am working with, and then linking that into Excel.
The Excel formula is
=IF($D3="SA",SUMPRODUCT(--($A$2:$A$19=$A3),--($B$2:$B$19<$B3)),"").
An sample of my data is below:
A B C D
Customer Contact date Campaign Code Appointment Result Code
A0500751 20060330 MC0001 PR
A0500751 20060410 AA0001 TS
A0500751 20060412 DM2625 SA
A0500751 20060412 DM2625 SA
A0500751 20060417 HK0002 FT
A0500751 20060421 HK0002 FT
27200841 20060207 PR0002 RR
27200841 20060418 DM2625 SA
27200841 20060418 DM2625 SA
27200841 20060418 DM2625 SA
27200841 20060418 DM2625 SA
27200841 20060420 HK0001 TS
27200841 20060629 AA0001 RT
27200845 20060207 PR0002 RR
27200845 20060418 DM2625 SA
What I would like to accomplish is get a count of the number of visits a
customer had before the sale (Appointment Result Code=SA). For example,
Customer A0500751 would have a count of 2 and 24200841 would have a count of
1 and so on. Can this be done in Access?
running into is the row limitation in Excel. Is there a way to do the same
kind of task in Access? I am actually performing a query in Access first
that pulls the fields I am working with, and then linking that into Excel.
The Excel formula is
=IF($D3="SA",SUMPRODUCT(--($A$2:$A$19=$A3),--($B$2:$B$19<$B3)),"").
An sample of my data is below:
A B C D
Customer Contact date Campaign Code Appointment Result Code
A0500751 20060330 MC0001 PR
A0500751 20060410 AA0001 TS
A0500751 20060412 DM2625 SA
A0500751 20060412 DM2625 SA
A0500751 20060417 HK0002 FT
A0500751 20060421 HK0002 FT
27200841 20060207 PR0002 RR
27200841 20060418 DM2625 SA
27200841 20060418 DM2625 SA
27200841 20060418 DM2625 SA
27200841 20060418 DM2625 SA
27200841 20060420 HK0001 TS
27200841 20060629 AA0001 RT
27200845 20060207 PR0002 RR
27200845 20060418 DM2625 SA
What I would like to accomplish is get a count of the number of visits a
customer had before the sale (Appointment Result Code=SA). For example,
Customer A0500751 would have a count of 2 and 24200841 would have a count of
1 and so on. Can this be done in Access?