+ Reply to Thread
Results 1 to 3 of 3

Array Formulas Using the Sum Function

  1. #1
    Registered User
    Join Date
    11-21-2007
    Posts
    15

    Array Formulas Using the Sum Function

    When I use this formula to return the result of Jan & North which should be 100 , I am getting result for the three instances of North which is 450. I am unable to get the formula to isolate just Jan & North. Does anyone have a suggestion what I should do to get the desired result? Your help is greatly appreciated.


    =SUM((B98:B106="Jan"),(C98:C106="North")*D98:D106)

    Month Region Sales
    Jan North 100
    Jan South 200
    Jan West 300
    Feb North 150
    Feb South 250
    Feb West 350
    Mar North 200
    Mar South 300
    Mar West 400

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =SUMPRODUCT(--(B98:B106="Jan")*(C98:C106="North")*(D98:D106))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-21-2007
    Posts
    15

    Array Formula Using the Sum

    Thanks VBA Noob for the quick response. I should have pasted this very code and note that it does not return the desired result. It returns zero.

    =SUMPRODUCT(--(B98:B106="Jan")*(C98:C106="North")*(D98:D106))

+ 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