+ Reply to Thread
Results 1 to 3 of 3

Sumproduct with if and or condition

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    Wales UK
    MS-Off Ver
    Excel 2003
    Posts
    26

    Sumproduct with if and or condition

    Hi,

    I've got this formula

    =SUMPRODUCT(--($H$1:$H$1016=5),--($I$1:$I$1016=5),--($J$1:$J$1016=5)) so that it counts the number of records where there is a 5 in each of the columns H I and J.

    If anyone could help me change this to include another condition that would be great

    I would like to be able to count records where there is a 5 in both H and I but additionally either a 5 in J and or K

    Hopefully this makes some sense

    Cheers
    Diddy
    Attached Files Attached Files

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Sumproduct with if and or condition

    Hi,

    When you're working with arrays, * gives an AND condition whilst + gives an OR condition. So a variation like these:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    08-05-2009
    Location
    Wales UK
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Sumproduct with if and or condition

    Never said thank you - sorry much appreciated

+ 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