+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT breakdown by date

  1. #1
    Aaron Saulisberry
    Guest

    SUMPRODUCT breakdown by date

    I'm currently using the formula below to breake it down by month but I also
    need to have it breakdown those months by year.

    SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)

    This formula compares two columns and if those columns have the same data
    for the same month then it returns the sum of the data. The only problem is
    is does not distingush between year, which I need it to do so.

    Any help is appreciated.

    1-JAN-05

  2. #2
    Arvi Laanemets
    Guest

    Re: SUMPRODUCT breakdown by date

    Hi


    SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)


    --
    Arvi Laanemets
    ( My real mail address: arvi.laanemets<at>tarkon.ee )



    "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    message news:0D738431-0FEE-4B13-BD07-8369C3059A7C@microsoft.com...
    > I'm currently using the formula below to breake it down by month but I
    > also
    > need to have it breakdown those months by year.
    >
    > SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    >
    > This formula compares two columns and if those columns have the same data
    > for the same month then it returns the sum of the data. The only problem
    > is
    > is does not distingush between year, which I need it to do so.
    >
    > Any help is appreciated.
    >
    > 1-JAN-05




  3. #3
    Aaron Saulisberry
    Guest

    Re: SUMPRODUCT breakdown by date

    This keeps returning zero... does the date in column A have to be in the
    format "yyyy.mm"?

    "Arvi Laanemets" wrote:

    > Hi
    >
    >
    > SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    >
    >
    > --
    > Arvi Laanemets
    > ( My real mail address: arvi.laanemets<at>tarkon.ee )
    >
    >
    >
    > "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    > message news:0D738431-0FEE-4B13-BD07-8369C3059A7C@microsoft.com...
    > > I'm currently using the formula below to breake it down by month but I
    > > also
    > > need to have it breakdown those months by year.
    > >
    > > SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    > >
    > > This formula compares two columns and if those columns have the same data
    > > for the same month then it returns the sum of the data. The only problem
    > > is
    > > is does not distingush between year, which I need it to do so.
    > >
    > > Any help is appreciated.
    > >
    > > 1-JAN-05

    >
    >
    >


  4. #4
    Bob Phillips
    Guest

    Re: SUMPRODUCT breakdown by date

    SUMPRODUCT(--(YEAR(Sheet!A1:A10)=2005),(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B
    1:B10=Sheet1!C1:C10),Sheet1B1:B10)

    is an alternative

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    message news:9EF7E05C-7F15-4167-B380-BE6E66964525@microsoft.com...
    > This keeps returning zero... does the date in column A have to be in the
    > format "yyyy.mm"?
    >
    > "Arvi Laanemets" wrote:
    >
    > > Hi
    > >
    > >
    > >

    SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1
    !C1:C10),Sheet1B1:B10)
    > >
    > >
    > > --
    > > Arvi Laanemets
    > > ( My real mail address: arvi.laanemets<at>tarkon.ee )
    > >
    > >
    > >
    > > "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote

    in
    > > message news:0D738431-0FEE-4B13-BD07-8369C3059A7C@microsoft.com...
    > > > I'm currently using the formula below to breake it down by month but I
    > > > also
    > > > need to have it breakdown those months by year.
    > > >
    > > >

    SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1
    :B10)
    > > >
    > > > This formula compares two columns and if those columns have the same

    data
    > > > for the same month then it returns the sum of the data. The only

    problem
    > > > is
    > > > is does not distingush between year, which I need it to do so.
    > > >
    > > > Any help is appreciated.
    > > >
    > > > 1-JAN-05

    > >
    > >
    > >




  5. #5
    Arvi Laanemets
    Guest

    Re: SUMPRODUCT breakdown by date

    Hi


    "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    message news:9EF7E05C-7F15-4167-B380-BE6E66964525@microsoft.com...
    > This keeps returning zero... does the date in column A have to be in the
    > format "yyyy.mm"?


    No. It simply must be in any valid date format. I just checked to be sure,
    and it even worked when instead dates in column A were date strings (column
    A formatted as text).


    --
    Arvi Laanemets
    ( My real mail address: arvi.laanemets<at>tarkon.ee )



    >
    > "Arvi Laanemets" wrote:
    >
    >> Hi
    >>
    >>
    >> SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    >>
    >>
    >> --
    >> Arvi Laanemets
    >> ( My real mail address: arvi.laanemets<at>tarkon.ee )
    >>
    >>
    >>
    >> "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    >> message news:0D738431-0FEE-4B13-BD07-8369C3059A7C@microsoft.com...
    >> > I'm currently using the formula below to breake it down by month but I
    >> > also
    >> > need to have it breakdown those months by year.
    >> >
    >> > SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    >> >
    >> > This formula compares two columns and if those columns have the same
    >> > data
    >> > for the same month then it returns the sum of the data. The only
    >> > problem
    >> > is
    >> > is does not distingush between year, which I need it to do so.
    >> >
    >> > Any help is appreciated.
    >> >
    >> > 1-JAN-05

    >>
    >>
    >>




  6. #6
    Arvi Laanemets
    Guest

    Re: SUMPRODUCT breakdown by date

    PS. To check, is a date in valid format, change the cell format to General -
    the date must be displayed as number now (p.e. todays date will be displayed
    as 38741)


    --
    Arvi Laanemets
    ( My real mail address: arvi.laanemets<at>tarkon.ee )


    "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    message news:9EF7E05C-7F15-4167-B380-BE6E66964525@microsoft.com...
    > This keeps returning zero... does the date in column A have to be in the
    > format "yyyy.mm"?
    >
    > "Arvi Laanemets" wrote:
    >
    >> Hi
    >>
    >>
    >> SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    >>
    >>
    >> --
    >> Arvi Laanemets
    >> ( My real mail address: arvi.laanemets<at>tarkon.ee )
    >>
    >>
    >>
    >> "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    >> message news:0D738431-0FEE-4B13-BD07-8369C3059A7C@microsoft.com...
    >> > I'm currently using the formula below to breake it down by month but I
    >> > also
    >> > need to have it breakdown those months by year.
    >> >
    >> > SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    >> >
    >> > This formula compares two columns and if those columns have the same
    >> > data
    >> > for the same month then it returns the sum of the data. The only
    >> > problem
    >> > is
    >> > is does not distingush between year, which I need it to do so.
    >> >
    >> > Any help is appreciated.
    >> >
    >> > 1-JAN-05

    >>
    >>
    >>




  7. #7
    Aaron Saulisberry
    Guest

    Re: SUMPRODUCT breakdown by date

    I need to be a little more patient when hitting the reply button... not even
    two minutes after I posted my reply I figured it out.

    Thanks for the help everybody... greatly appriciated.

    "Arvi Laanemets" wrote:

    > PS. To check, is a date in valid format, change the cell format to General -
    > the date must be displayed as number now (p.e. todays date will be displayed
    > as 38741)
    >
    >
    > --
    > Arvi Laanemets
    > ( My real mail address: arvi.laanemets<at>tarkon.ee )
    >
    >
    > "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    > message news:9EF7E05C-7F15-4167-B380-BE6E66964525@microsoft.com...
    > > This keeps returning zero... does the date in column A have to be in the
    > > format "yyyy.mm"?
    > >
    > > "Arvi Laanemets" wrote:
    > >
    > >> Hi
    > >>
    > >>
    > >> SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    > >>
    > >>
    > >> --
    > >> Arvi Laanemets
    > >> ( My real mail address: arvi.laanemets<at>tarkon.ee )
    > >>
    > >>
    > >>
    > >> "Aaron Saulisberry" <AaronSaulisberry@discussions.microsoft.com> wrote in
    > >> message news:0D738431-0FEE-4B13-BD07-8369C3059A7C@microsoft.com...
    > >> > I'm currently using the formula below to breake it down by month but I
    > >> > also
    > >> > need to have it breakdown those months by year.
    > >> >
    > >> > SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)
    > >> >
    > >> > This formula compares two columns and if those columns have the same
    > >> > data
    > >> > for the same month then it returns the sum of the data. The only
    > >> > problem
    > >> > is
    > >> > is does not distingush between year, which I need it to do so.
    > >> >
    > >> > Any help is appreciated.
    > >> >
    > >> > 1-JAN-05
    > >>
    > >>
    > >>

    >
    >
    >


+ 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