Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Activecell.Formula = "=SUMPRODUCT(--(A2:A20="value1"),--(B2:B20=17))
or Set rng1 = Range("A2:A20") Set rng2 = Range("B2:B20") Activecell.Formula = "=SUMPRODUCT(--(" & rng1.Address & "),--(" & rng2.Address & "))" -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "sgltaylor" wrote in message ... Hi, I would appreciate some help with the following. I am trying to enter a sumproduct formula in VBA but using A1 notation instead of R1C1. Could you someone provide me with an example. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
R1C1 Notation in VBA | Excel Programming | |||
Using Range with R1C1 notation in a macro | Excel Programming | |||
Absolute reference in R1C1 notation | Excel Programming | |||
R1C1 Notation | Excel Programming |