+ Reply to Thread
Results 1 to 4 of 4

how to use sumif function to check date in 1 sheet is < 2 sheet

  1. #1
    Bharat Saboo
    Guest

    how to use sumif function to check date in 1 sheet is < 2 sheet

    I am trying to add a total in 2 sheet if date in 1 sheet is <= particular
    criteria.

    the following is my function call

    =SUMIF(List!$B$2:$B$65536,"<= A2",List!$C$2:$C$65536)

    Please explain why it does not work and how to make it work.

    The answer at present comes to zero only.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Try using this array formula

    =SUM(IF(List!B1:B23<=A1,List!C1:C23,0))

    Instead of hitting Enter after typing in the formula, press Ctrl-Shift-Enter simultaneously. That will result in the formula having curly brackets around it like.

    {=SUM(IF(List!B1:B23<=A1,List!C1:C23,0))}

    The reason your other formula was not working was that the criteria "<=A1" was not true. You can't use a cell reference in quotes. If you had entered in the actual data that appeared in A1 sya a date. "<=12/1/2005", it would have worked. I assume that the data in A1 will change.


    HTH

    Cheers,

    Steve

  3. #3
    B. R.Ramachandran
    Guest

    RE: how to use sumif function to check date in 1 sheet is < 2 sheet

    Hi,

    The formula should be

    =SUMIF(List!$B$2:$B$65536,"<="& A2,List!$C$2:$C$65536)

    Regards,
    B. R. Ramachandran


    "Bharat Saboo" wrote:

    > I am trying to add a total in 2 sheet if date in 1 sheet is <= particular
    > criteria.
    >
    > the following is my function call
    >
    > =SUMIF(List!$B$2:$B$65536,"<= A2",List!$C$2:$C$65536)
    >
    > Please explain why it does not work and how to make it work.
    >
    > The answer at present comes to zero only.
    >
    > Thanks


  4. #4
    Bharat Saboo
    Guest

    RE: how to use sumif function to check date in 1 sheet is < 2 shee

    Thanks

    It worked.

    "B. R.Ramachandran" wrote:

    > Hi,
    >
    > The formula should be
    >
    > =SUMIF(List!$B$2:$B$65536,"<="& A2,List!$C$2:$C$65536)
    >
    > Regards,
    > B. R. Ramachandran
    >
    >
    > "Bharat Saboo" wrote:
    >
    > > I am trying to add a total in 2 sheet if date in 1 sheet is <= particular
    > > criteria.
    > >
    > > the following is my function call
    > >
    > > =SUMIF(List!$B$2:$B$65536,"<= A2",List!$C$2:$C$65536)
    > >
    > > Please explain why it does not work and how to make it work.
    > >
    > > The answer at present comes to zero only.
    > >
    > > 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