+ Reply to Thread
Results 1 to 6 of 6

=IFERROR / SUMPRODUCT - Search for year total?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    =IFERROR / SUMPRODUCT - Search for year total?

    =IFERROR(SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)*('Overview - 2013'!$J$15:$J$9999="yes"))/(SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)*('Overview - 2013'!$J$15:$J$9999="yes"))+SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)*('Overview - 2013'!$J$15:$J$9999="No")+('Overview - 2013'!$K$15:$K$9999="Yes"))),"")
    Rather than look at specific month (one highlighted in black), I want to look at ALL months in the year 2014. How do I modify this formula to do this?

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: =IFERROR / SUMPRODUCT - Search for year total?

    There doesn't appear to be anything highlighted in black.

    Can you attach a sample so we can see what you're trying to do? Feel free to use line breaks to keep your formulas organized. Makes troubleshooting much easier.

    =SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)*
    		 ('Overview - 2013'!$J$15:$J$9999="yes"))/
           	(SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)*
    			 ('Overview - 2013'!$J$15:$J$9999="yes"))+
    	 SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)*
    			 ('Overview - 2013'!$J$15:$J$9999="No")+
    			 ('Overview - 2013'!$K$15:$K$9999="Yes")))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: =IFERROR / SUMPRODUCT - Search for year total?

    Advice => use a pivot table for that question instead of the sumproduct formula.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: =IFERROR / SUMPRODUCT - Search for year total?

    [deleted due to corruption of the content]
    Last edited by joeu2004; 05-19-2014 at 01:27 PM. Reason: cosmetic

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: =IFERROR / SUMPRODUCT - Search for year total?

    [reposted to try to eliminate some corruption of the content]
    Quote Originally Posted by domgilberto View Post
    =IFERROR(SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)
    *('Overview - 2013'!$J$15:$J$9999="yes"))/(SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)*('Overview - 2013'!$J$15:$J$9999="yes"))+SUMPRODUCT((TEXT('Overview - 2013'!$D$15:$D$9999,"mmmm")=B$3)
    *('Overview - 2013'!$J$15:$J$9999="No")+('Overview - 2013'!$K$15:$K$9999="Yes"))),"")
    Rather than look at specific month (one highlighted in black), I want to look at ALL months in the year 2014. How do I modify this formula to do this?
    Try:

    =IFERROR(
    SUMPRODUCT((YEAR('Overview - 2013'!$D$15:$D$9999)=B$3)*('Overview - 2013'!$J$15:$J$9999="yes"))
    / ( SUMPRODUCT((YEAR('Overview - 2013'!$D$15:$D$9999)=B$3)*('Overview - 2013'!$J$15:$J$9999="yes"))
      + SUMPRODUCT((YEAR('Overview - 2013'!$D$15:$D$9999)=B$3)*('Overview - 2013'!$J$15:$J$9999="No")
                   + ('Overview - 2013'!$K$15:$K$9999="Yes")) ),"")
    Of course, this presumes that you change B3 to a year number (e.g. 2014, not a date like 1/1/2014) instead of a month name (e.g. "January").

  6. #6
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: =IFERROR / SUMPRODUCT - Search for year total?

    Quote Originally Posted by joeu2004 View Post
    [reposted to try to eliminate some corruption of the content]


    Try:

    =IFERROR(
    SUMPRODUCT((YEAR('Overview - 2013'!$D$15:$D$9999)=B$3)*('Overview - 2013'!$J$15:$J$9999="yes"))
    / ( SUMPRODUCT((YEAR('Overview - 2013'!$D$15:$D$9999)=B$3)*('Overview - 2013'!$J$15:$J$9999="yes"))
      + SUMPRODUCT((YEAR('Overview - 2013'!$D$15:$D$9999)=B$3)*('Overview - 2013'!$J$15:$J$9999="No")
                   + ('Overview - 2013'!$K$15:$K$9999="Yes")) ),"")
    Of course, this presumes that you change B3 to a year number (e.g. 2014, not a date like 1/1/2014) instead of a month name (e.g. "January").
    This has worked perfectly. Thank you kindly for your help!!

+ 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. Replies: 1
    Last Post: 01-26-2014, 05:37 PM
  2. Replies: 7
    Last Post: 08-14-2013, 07:04 PM
  3. Pivot Chart Running Total - Removing Current Year Future Total
    By car3489 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-27-2013, 03:35 AM
  4. xlfn.IFERROR or IFERROR don't work in Excel 98-2003
    By dj_danu01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2013, 02:53 AM
  5. Need help with formula =IF(IFERROR(SEARCH
    By ibrown9 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2013, 04:15 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