+ Reply to Thread
Results 1 to 3 of 3

Using SUMPRODUCT to count values in closed workbook

  1. #1
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Using SUMPRODUCT to count values in closed workbook

    Hi there,

    I'm testing out an application using SUMPRODUCT in worksheetfunction in VBA.(reason i'm using this formula is because the lookup range increases on-going)

    What I would like to have Excel do is to give me a total count of "Yes" in a specific site selected,and output that count in cell F2 in the main opened workbook.

    The code I have so far is:

    Please Login or Register  to view this content.


    The lookup columns in data book are: These are in a closed workbook, in sheet "C"

    Status Site
    Yes c
    Yes c
    Yes c
    No c
    No c
    Yes c
    No c
    Yes c
    Yes c
    No c


    in the same closed workbook, in worksheet "B"

    Status Site
    Yes b
    Yes b
    Yes b
    No b
    No b
    Yes b
    No b
    Yes b
    Yes b
    No b

    Thank you for any input or guidance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Re: Using SUMPRODUCT to count values in closed workbook

    Hello,

    Is anybody able to help with this request?

    Thanks

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

    Re: Using SUMPRODUCT to count values in closed workbook

    This link should be helpful for you.

    http://xldynamic.com/source/xld.SUMPRODUCT.html#vba


    In short, though, your problem was that you used
    Please Login or Register  to view this content.
    and it should be
    Please Login or Register  to view this content.

+ 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