Return-Path: X-Original-To: apmail-openoffice-users-archive@www.apache.org Delivered-To: apmail-openoffice-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3BF1107F5 for ; Thu, 3 Oct 2013 18:10:38 +0000 (UTC) Received: (qmail 52700 invoked by uid 500); 3 Oct 2013 18:10:37 -0000 Delivered-To: apmail-openoffice-users-archive@openoffice.apache.org Received: (qmail 52629 invoked by uid 500); 3 Oct 2013 18:10:35 -0000 Mailing-List: contact users-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openoffice.apache.org Delivered-To: mailing list users@openoffice.apache.org Received: (qmail 52621 invoked by uid 99); 3 Oct 2013 18:10:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2013 18:10:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.213.179] (HELO mail-ye0-f179.google.com) (209.85.213.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2013 18:10:25 +0000 Received: by mail-ye0-f179.google.com with SMTP id r6so697777yen.10 for ; Thu, 03 Oct 2013 11:10:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ASJPaXgA0Z2DR05k3QUfI0WqdutuWmeWTBJuAEREc+w=; b=g4mpZq6+eA+4PDg/hG2LzU9xYpw6tFKlzZk71IUfiIt6LphKw4Hl6SicvK2983Lb9p XLKPBK/P1DU5Ly1yS1TJTn3JBTYlsrWgbvxwQDLXuqLNe799MWZ6StXBgYuEc4gaPEXs JIlqGWckpuT4xBH1NOKdMc83uL/BW9sLmOnXEo8KGnVFkemuRLxZmMW9mJeaN1kNSUyh WJZkwuhTJuYoSTkT53tNOWCa1g2PgJDB2z4ZKBxwDAdi9He8kp6ivpJS/5MkBJm6mpkt 5SBrXcY3hundVwM4pDJINm8b+uIXKaA6ZnEAfYNI+nN8Qdy4BTwYgW94Rf5LgL0XWTB4 7xgA== X-Gm-Message-State: ALoCoQlxslk4NcdRe39ABf+oAoi84n/OXa2JYlzIFGdRqqPkKklmBkzRuLTvlDlv3x95cARdFSVc X-Received: by 10.236.148.138 with SMTP id v10mr8031080yhj.27.1380823804912; Thu, 03 Oct 2013 11:10:04 -0700 (PDT) Received: from [10.10.45.49] (63-233-139-42.dia.static.qwest.net. [63.233.139.42]) by mx.google.com with ESMTPSA id s46sm12470360yha.27.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 11:10:04 -0700 (PDT) Message-ID: <524DB209.1060901@pueblocomputing.com> Date: Thu, 03 Oct 2013 12:06:01 -0600 From: John Meyer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: users@openoffice.apache.org Subject: Re: Indirect and Address problem (from VLOOKUP and Macros) References: <524d9d3f.47c5440a.05b6.7c98SMTPIN_ADDED_BROKEN@mx.google.com> <524DA27F.3090601@pueblocomputing.com> <524dacc7.66f5440a.6fb5.ffffcf43SMTPIN_ADDED_BROKEN@mx.google.com> <524DB000.1060506@pueblocomputing.com> In-Reply-To: <524DB000.1060506@pueblocomputing.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Strike that last e-mail, it worked. On 10/3/2013 11:57 AM, John Meyer wrote: > On 10/3/2013 11:42 AM, Brian Barker wrote: >> At 10:59 03/10/2013 -0600, John Meyer wrote: >>> After looking over this problem a bit, I decided to scrap the sheet >>> name idea and just have all sales on one sheet. >>> >>> sales are in this format: >>> DummyField, Date, DummyField, DummyField, SalesRep >>> >>> For this table, I want to get the number of sales generated for a >>> particular agent by date. >>> >>> Sales Rep 10/1/13 10/2/13 10/3/13 >>> 12345 ## ## ## >>> 45678 ## ## ## >>> >>> Would this lend itself to a DCOUNT solution (and to answer the >>> obvious question, I can't use a database at work). >> >> I think I'd use SUMPRODUCT(). Suppopse your second table starts in >> AA1. Then try something like: >> =SUMPRODUCT($B$2:$B$999=AB$1;$E$2:$E$999=$AA2) >> >> The individual parameters are logical expressions, and taking the >> product of these ANDs them. >> >> I trust this helps. >> >> Brian Barker >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org >> For additional commands, e-mail: users-help@openoffice.apache.org >> > > > Thanks, though I'll have to look this up more: > > =SUMPRODUCT(Sales.$B$2:$B$655=C$1;Sales.$E$2:$E$655=$A2) returns zero > even when there is data > > Sales has the Sales data > C1 has the date to check > B is the column in sales with the date > A2 has the Emp ID > E is the column in sales with the Employee ID. > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@openoffice.apache.org For additional commands, e-mail: users-help@openoffice.apache.org