+ Reply to Thread
Results 1 to 7 of 7

Sumproduct & Len Function

  1. #1
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Sumproduct & Len Function

    Can someone help me with why this formula is returning a #NA?

    =IF(SUMPRODUCT((Revisions!$C$3:$C$410=$B5)*(LEN(Revisions!$F$3:$F$411)=0)),"Y","")


    Essentially what I'm trying to do is look at the Revisions tab, and if at any spot where column C (Revisions Tab) has the same contract number as $B5, and all cells in "F" (Revisions Tab), marked with a "Y", then it would say "Yes" - meaning we have received all revisions. If there is a blank value in column F, or a "N", it would say "No". Indicating not all revisions are returned.

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

    Re: Sumproduct & Len Function

    Try entering it with Ctrl-Shift-Enter.

    You also might want to move a parenthesis, Do you want =IF(SUMPRODUCT(...)=0, "Y", "") or =IF(SUMPRODUCT(...), "y", "")
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Re: Sumproduct & Len Function

    Sorry, I'm still confused. I'm not sure exactly what I want formula wise as I can't get the current function to do what I'm trying. Essentially on the revisions tab, we enter a contract number, then 1, 2, 3, 4, etc for the number of changes to the contract. When the Revision is signed, I mark a "Y" column F of the revisions tab. If anywhere on the Revisions tab, where Column C is equal to contract value in Column B (Master Tab), and column "F", does not have a "Y", then it would say "NO". If anywhere where the contract value is found and they are all marked "Y", then it would say "Yes". Does that make sense? Sort of confusing to explain.

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

    Re: Sumproduct & Len Function

    which of those cells holds the formula.

    Is this formula on the Master sheet, reflecting whether a Y has been entered in all the appropriate rows of the Revisions sheet?

  5. #5
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Re: Sumproduct & Len Function

    Cell AY is holding the Formula in the "Master" Tab.

    Master Tab:
    B4:B120 - This holds individual contract numbers
    AY4:AY120 - this is the cells holding the formula seeing if all revisions are collected.

    Revisions Tab:
    C4:C300 - These cells are the contract numbers. Each revision (can be many to a contract) is listed as a seperate line. The contract # is always listed in column C.
    F4:F300 - This listed a "Y", "N", or Blank, which is indicating if we have received the revision back. N and blank mean the samething, not returned.

    Basically if any line in the revisions tab has the same contract number as the row we are looking at on Masters, and has a "N", or Blank Space, then it would return a "NO" - indicating not all revisions with that contract number are marked with a "Y".

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

    Re: Sumproduct & Len Function

    Try in AY4

    =IF(COUNTIFS(Revisions$C$4:$C$300, $B4, Revisions!$F$4:$F300, "<>Y")>1, "some not yes", "all yes")

  7. #7
    Forum Contributor
    Join Date
    05-15-2015
    Location
    Orlando, FL
    MS-Off Ver
    Office Standard 2016
    Posts
    266

    Re: Sumproduct & Len Function

    Hi Mike, this is not working. If you take a look at the attached screen shot, i have the same contract # is blank and another row with a "N". The formula is returning "All Yes" right now.
    Capture.PNG


    I think i fix it, it needs to be "Greater than 0".
    Last edited by jharvey87; 08-12-2016 at 10:19 AM.

+ 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. [SOLVED] Sumproduct UDF function in VBA
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2016, 03:01 PM
  2. [SOLVED] Sumproduct Function with Other Function References
    By T86157 in forum Outlook Formatting & Functions
    Replies: 4
    Last Post: 07-30-2012, 04:56 PM
  3. Replies: 9
    Last Post: 07-02-2012, 07:02 PM
  4. Is this a sumproduct function?
    By kiapiggy in forum Excel General
    Replies: 4
    Last Post: 03-16-2011, 10:01 AM
  5. Replies: 10
    Last Post: 11-11-2010, 03:49 PM
  6. [SOLVED] SUMIF Function Inside SUMPRODUCT Function
    By Abdul Waheed in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-19-2005, 12:05 PM
  7. Sumproduct function
    By neil in forum Excel General
    Replies: 1
    Last Post: 08-11-2005, 05:05 AM

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