+ Reply to Thread
Results 1 to 5 of 5

How do I ignore day and only refer to the the month?

  1. #1
    Registered User
    Join Date
    04-01-2008
    Posts
    18

    How do I ignore day and only refer to the the month?

    The attachment illustrates my problem.

    The summary page summarises the source data into how much revenue each department has made over 12 months.

    However the formula in Summary worksheet column B will only total up the amounts if the month in the Source worksheet column B is the 1st of the month. How do I change the formula in Summary worksheet column B to purely go by month and ignore the day?

    Hope that makes sense. I've been fiddling with this for a while and need a break!
    Last edited by wickerman; 03-26-2009 at 01:01 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How do I ignore day and only refer to the the month?

    Try:

    =SUMPRODUCT(--(Source!$A2:$A14=B$1),--(MONTH(Source!$B2:$B14)=MONTH($A2)),Source!$C2:$C14)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: How do I ignore day and only refer to the the month?

    Does attached file help ?
    Its is made on the assumption that month and year must be the same

    BTW a Pivot Table would also give you these results
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-01-2008
    Posts
    18

    Re: How do I ignore day and only refer to the the month?

    Thanks NBVC & Athurbr:

    Thanks for your suggestions. Arthubr answer works the best as my actual worksheet goes to over 400 rows and starts in the year 2000 so I need a formula that counts all the sums in a particular month and year. Didn't know I should have said that until I tried arthurbrs formula so thanks! You have saved many hours frustration!

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: How do I ignore day and only refer to the the month?

    Pleasure,
    and thx for indicating the thread as solved !

+ 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