+ Reply to Thread
Results 1 to 9 of 9

IF(SUM(COUNTIF stack overflow?

  1. #1
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Question IF(SUM(COUNTIF stack overflow?

    I think I'm close on this, but can't seem to nail it down.

    The file is attached. Please see:

    OUTCOMES tab
    C39:F47


    A47 is working correctly: =IF(SUM(COUNTIF(I27:I44,">=1"))>=3,"YES","NO")

    F47 is not working correctly yet: =IF(SUM(COUNTIF(I27:I44,">=1")>=3<>SUM(E44:F44)-SUM(C44:D44)),"YES","NO")
    I think it's almost there, but not sure how to adjust it.

    I'm trying to get F47 to return "YES","NO" based on ONLY....SUM(G44:H44)-SUM(E44:F44)">=1")>=3
    I need it to exclude SUM(E42:F42)-SUM(C42:D42)

    Please let me know if I need to clarify further. All help is welcome
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: IF(SUM(COUNTIF stack overflow?

    What are you trying to do with the SUM part? The COUNTIF() will produce a value, so you could probably do away with the SUM - it is only adding 1 number
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: IF(SUM(COUNTIF stack overflow?

    What are you trying to do here?
    SUM(G44:H44)-SUM(E44:F44)">=1")>=3

  4. #4
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: IF(SUM(COUNTIF stack overflow?

    The SUM is an important part of the code in I39:I44

    I'm not sure I understand what you are asking. There are several SUM in there. Which one(s) are you referring to?

  5. #5
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: IF(SUM(COUNTIF stack overflow?

    The SUM is an important part of the code in I39:I44

    I'm not sure I understand what you are asking. There are several SUM in there. Which one(s) are you referring to?

  6. #6
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: IF(SUM(COUNTIF stack overflow?

    I'm trying to do:

    =IF(SUM(COUNTIF(I27:I44,">=1"))>=3,"YES","NO")

    BUT

    exclude the data from SUM(E44:F44)-SUM(C44:D44), which is part of the code in Column I: =IF(C44="","",CHOOSE(COUNT(C44:H44),"",SUM(E44:F44)-SUM(C44:D44),SUM(G44:H44)-SUM(E44:F44)))

  7. #7
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: IF(SUM(COUNTIF stack overflow?

    =IF(SUM(COUNTIF(I27:I44,">=1")>=3,"YES","NO"),-SUM(E44:F44)-SUM(C44:D44))

    This is close, I think...it's giving me a #value error

  8. #8
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: IF(SUM(COUNTIF stack overflow?

    =IF(SUM(COUNTIF(I27:I44,">=1")>=3,"YES","NO"),-(SUM(E44:F44)-SUM(C44:D44)))

    #value! error

  9. #9
    Registered User
    Join Date
    08-28-2016
    Location
    Rustavi, Georgia
    MS-Off Ver
    2013
    Posts
    54

    Re: IF(SUM(COUNTIF stack overflow?

    Sorry, is my question and what I'm seeking help with unclear?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Stack overflow? PLEASE HELP
    By lazyengineer in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-29-2015, 12:25 PM
  2. [SOLVED] Stack overflow
    By aadpors in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-27-2014, 11:05 AM
  3. Stack overflow when using a VBA code compile spreadsheets.
    By Tolo06 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2013, 10:58 AM
  4. Stack overflow problem
    By g1987 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2012, 08:36 PM
  5. Keyboard Cell Delete Runs Into Stack OverFlow With Sheet Change
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2011, 06:30 PM
  6. Stack Overflow
    By DonHuff in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-07-2009, 03:30 PM
  7. stack overflow at line: .....
    By brunetto in forum Excel General
    Replies: 1
    Last Post: 11-19-2005, 07:35 PM

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