+ Reply to Thread
Results 1 to 2 of 2

"criteria" in a sumif refering to the value in another cell

Hybrid View

  1. #1
    mark
    Guest

    "criteria" in a sumif refering to the value in another cell

    I'm trying to do a sumif with the "criteria" refering to an adjacent cell
    rather than having the criteria hard keyed into the formula. For example, if
    I have a list of purchases by date and I want to sum up those that occured
    prior to 12/31/04, and 12/31/04 is the value in another cell. Can i have the
    sumif refer to that cell for the "criteria"?

  2. #2
    Ken Wright
    Guest

    Re: "criteria" in a sumif refering to the value in another cell

    =SUMIF(rng,"<="&cell_ref,rng_to_sum)

    eg

    =SUMIF(A1:A100,"<="&C1,B1:B100)

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "mark" <[email protected]> wrote in message
    news:[email protected]...
    > I'm trying to do a sumif with the "criteria" refering to an adjacent cell
    > rather than having the criteria hard keyed into the formula. For example,

    if
    > I have a list of purchases by date and I want to sum up those that occured
    > prior to 12/31/04, and 12/31/04 is the value in another cell. Can i have

    the
    > sumif refer to that cell for the "criteria"?




+ 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