+ Reply to Thread
Results 1 to 4 of 4

Having a formula count only specific dates.

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    West Des Moines, IA
    MS-Off Ver
    Excel 2007
    Posts
    40

    Having a formula count only specific dates.

    Sorry, that title is atrocious for what I'm trying to do...

    Basic premise: On one sheet, I have two primary columns. One just has a date. It goes in order of the calendar year, but some dates may appear twice or three times in different rows, others none. They would appear sequentially. The second column just has a dollar amount.

    i.e.

    3/15/12 $10000
    3/15/12 $12000
    3/17/12 $15000


    etc.

    On a second sheet, I would like to make a formula that references what money is there for a given day.

    So, for March 15th, it would tabulate $22,000, March 16th, $0, and March 17th $15,000.

    And it would auto-adjust if I inserted new dates & numbers into the first sheet.

    I tried a couple of things and didn't have much luck, I included a sample of the first sheet for reference. Any help would be appreciated.
    Attached Files Attached Files
    Last edited by szm187; 03-15-2012 at 11:27 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Having a formula count only specific dates.

    Hi

    In Sheet2! A1, put the date that you need. Then in B1, put this formula.

    =SUMPRODUCT(('Anticipated Cash'!A2:A138=Sheet2!A1)*('Anticipated Cash'!B2:B138))

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,281

    Re: Having a formula count only specific dates.

    Hi szm187,

    This looks like a Pivot Table question to me. In your data you need to add all dates so you don't get blanks. You also need to remove the empty rows so it is an excel table. Then do a pivot on it. I've summed by date and also done a running total column. See if this works for you.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    10-15-2008
    Location
    West Des Moines, IA
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Having a formula count only specific dates.

    I'm amazed this was a "Sum" answer... works exactly like I needed. Thanks!

+ 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