+ Reply to Thread
Results 1 to 3 of 3

Add to an Existing formula in a Cell using VBA

  1. #1
    Registered User
    Join Date
    11-27-2009
    Location
    melbourne australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Add to an Existing formula in a Cell using VBA

    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. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Add to an Existing formula in a Cell using VBA

    Hi Steve, and welcome to the forum. The VBA would look like this:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Add to an Existing formula in a Cell using VBA

    I made my own post because my response here, although directly related to the original post, was actually another question and I didn't see an option to delete this post. So sorry.
    Last edited by alwysonadiet; 12-14-2012 at 02:16 PM. Reason: Made a Separate Post

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1