+ Reply to Thread
Results 1 to 4 of 4

COUNTIFS and SUMIFS and AVERAGEIFS workbook linking

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    COUNTIFS and SUMIFS and AVERAGEIFS workbook linking

    Hi

    I hope someone can help.

    I'm trying to link to external workbook and having issues with my formula. I know I can't link with Countifs, so have tried using SUM(IF( and SUMPRODUCT but I still can get the functions to work.

    The formulas I'm using are as follows:

    {=IFERROR(COUNTIFS('S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$N$2:$N$3000,"=Inbound Email",'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$S$2:$S$3000,"=N", 'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$B$2:$B$3000,">="&EDATE(TODAY(),-12), 'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$B$2:$B$3000,"<="&TODAY()),0)}

    {=IFERROR(AVERAGEIFS('S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$Q$2:$Q$3000,'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$N$2:$N$3000,"=Inbound Email",'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$S$2:$S$3000,"=N",'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$U$2:$U$3000,"=Y",'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$B$2:$B$3000,">="&EDATE(TODAY(),-12), 'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$B$2:$B$3000,"<="&TODAY()),0)}

    {=IFERROR(SUMIFS('S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$Q$2:$Q$3000,'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$N$2:$N$3000,"=Inbound Email",'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$S$2:$S$3000,"=N", 'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$U$2:$U$3000,"=Y",'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$B$2:$B$3000,">="&EDATE(TODAY(),-12), 'S:\Company Admin\Sales & Marketing\[Master Data Sheet.xlsx]Data'!$B$2:$B$3000,"<="&TODAY()),0)}

    Any help appreciated.

    Thanks

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: COUNTIFS and SUMIFS and AVERAGEIFS workbook linking

    Instead of "=Inbound Email" use "Inbound Email" and similarly "Y" instead of "=Y" and "N" instead of "N"
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    03-05-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: COUNTIFS and SUMIFS and AVERAGEIFS workbook linking

    Hi Ace_XL

    Thanks for this.

    Tried the change but no luck with linking to the closed workbook, obviously this works when the external workbook is open, (my original formulas worked fine in this senario) but doesn't solve the problem as the values need to be pulled for a closed worksheet.

  4. #4
    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,929

    Re: COUNTIFS and SUMIFS and AVERAGEIFS workbook linking

    You have shown the COUNTIFS() etc but not the SUMPRODUCT() version?
    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

+ 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] AverageIFS (or even SUMIFS/COUNTIFS) on large data set
    By natetheblade in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-13-2013, 01:37 AM
  2. Countifs or AverageIfs
    By dreicer_Jarr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-13-2013, 02:44 AM
  3. Excel 2007 : Countifs linking to another workbook
    By ncurran217 in forum Excel General
    Replies: 5
    Last Post: 01-29-2012, 06:55 PM
  4. Countifs and Averageifs
    By tradergreg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2011, 07:20 PM
  5. Replies: 0
    Last Post: 11-15-2007, 05:24 AM

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