+ Reply to Thread
Results 1 to 4 of 4

SUMIF criteria using the AND function

  1. #1
    Registered User
    Join Date
    03-13-2010
    Location
    Bedfordshire, England
    MS-Off Ver
    Excel 2010
    Posts
    60

    SUMIF criteria using the AND function

    I am using this formula in a spreadsheet


    Please Login or Register  to view this content.
    If A6 to A45 contains data it sums the corresponding numbers in B6 to B45. I would also like to only sum the numbers that are smaller than 1. I thought I could use the AND function combined with SUMIF but cannot get it to work. Something like this

    Please Login or Register  to view this content.
    Any ideas/help greatly appreciated.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: SUMIF criteria using the AND function

    I need a clarification...are you looking to:
    • sum Col_CW values on another sheet
    where the corresponding Col_A cells on the current sheet:
    • are not blank
    • are less than 1
    ?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: SUMIF criteria using the AND function

    Try SUMPRODUCT function:

    =SUMPRODUCT(--('PUPIL DATA'!$A$6:$A$45<>""),--('PUPIL DATA'!$A$6:$A$45<1),CW$117:CW$155))

    BUT your ranges must be same:

    6-45
    117-155

    is not same...

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: SUMIF criteria using the AND function

    perhaps

    =SUMPRODUCT(--(A6:A45<>"")*(B6:B45<1), B6:B45)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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