+ Reply to Thread
Results 1 to 2 of 2

How to Put Conditional Sums in macros

Hybrid View

  1. #1
    Alan P
    Guest

    How to Put Conditional Sums in macros

    I am trying to use a macro to ad a conditional sum and am unable to do it or
    decipher the VBA (alleged) help section. Usingthe wizard while in the macro
    didn't work and I can't figure out a syntax that works. Can anyone point me
    inthe right direction?

    Thanks,

    Alan

  2. #2
    Tom Ogilvy
    Guest

    Re: How to Put Conditional Sums in macros

    Range("A1").FormulaArray = "=Sum(if((B1:B200=5)*(C1:C200>6),1,0))"

    --
    Regards,
    Tom Ogilvy


    "Alan P" <AlanP@discussions.microsoft.com> wrote in message
    news:46584DA0-C680-4D51-B64E-5F5B7F3A7323@microsoft.com...
    > I am trying to use a macro to ad a conditional sum and am unable to do it

    or
    > decipher the VBA (alleged) help section. Usingthe wizard while in the

    macro
    > didn't work and I can't figure out a syntax that works. Can anyone point

    me
    > inthe right direction?
    >
    > Thanks,
    >
    > Alan




+ 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