Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to figure out how to do the following: Assume you have a formula like sum (A1:A5) in cell A6. What I need to do is add a sumproduct formula to the existing formula using vba. For example, the formula in cell A6 will be updated to sum(A1:A5)/ SUMPRODUCT((C4:C8=B1)*(D4:D8=B2)) Any ideas or suggestions. Thanks, Steve |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Basic idea. Modify to suit
Sub addtoformulawithvba() With ActiveCell MsgBox .Formula ..Formula = .Formula & "+d2" End With End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "sgltaylor" wrote in message ... Hi, I am trying to figure out how to do the following: Assume you have a formula like sum (A1:A5) in cell A6. What I need to do is add a sumproduct formula to the existing formula using vba. For example, the formula in cell A6 will be updated to sum(A1:A5)/ SUMPRODUCT((C4:C8=B1)*(D4:D8=B2)) Any ideas or suggestions. Thanks, Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Add adjacent cell value to existing CountIF formula | Excel Worksheet Functions | |||
Add Cell range based on color of cell to existing formula | Excel Programming | |||
Modify an existing Cell formula using VBA | Excel Discussion (Misc queries) | |||
Subtract cell formula from existing cell formula | Excel Programming | |||
insert a new cell into an existing formula | Excel Discussion (Misc queries) |