+ Reply to Thread
Results 1 to 5 of 5

SUMIF Variation

  1. #1
    Forum Contributor
    Join Date
    04-11-2008
    Posts
    156

    SUMIF Variation

    Hi there,

    Please can you help me adjust this formula so that it simply returns "1" if true and "0" if false.

    =SUMIF($BL$2:$BL$1665,$BL27,$CG$2:$CG$1665)

    Thank you

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

    Re: SUMIF Variation

    Hi,

    Do you mean 1 per item which matches BL27?

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

    Colin

    RAD Excel Blog

  3. #3
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: SUMIF Variation

    What are the conditions that would be true or false?

    =If(SUMIF($BL$2:$BL$1665,$BL27,$CG$2:$CG$1665) = 0,0,1)

  4. #4
    Forum Contributor
    Join Date
    04-11-2008
    Posts
    156

    Re: SUMIF Variation

    Thank you for your response.

    Not quite what I'm after.

    In Example 1, =SUMIF($A$1:$A$3,$A1,$B$1:$B$3) would return 7 against A and 0 against B. What I want to do is return 1 if any value against a group is >1 and 0 if blank or 0 - so A would be 1 and B would 0 as in Example 2.

    Example 1
    A 2 7
    A 2 7
    A 3 7
    B 0 0
    B 0 0

    Example 2
    A 2 1
    A 2 1
    A 3 1
    B 0 0
    B 0 0


    Thank you

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

    Re: SUMIF Variation

    Hi,
    What I want to do is return 1 if any value against a group is >1 and 0 if blank or 0
    I assume it should return 1 if any value against a group is >= 1.

    If you are using Excel 2007 or later then you can use this formula:
    Please Login or Register  to view this content.
    If you are using Excel 2003 or earlier then you can use this formula instead:
    Please Login or Register  to view this content.
    Last edited by Colin Legg; 04-02-2011 at 06:34 AM.

+ 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