+ Reply to Thread
Results 1 to 11 of 11

Sumif

  1. #1
    Registered User
    Join Date
    12-20-2004
    Posts
    88

    Sumif

    --------------------------------------------------------------------------------

    =SUMIF(O25:O55,"= P26",J25:J55) should equal 3 in cell Q26

    I'm trying to sum the values in Column J, for the value in column P, which may be located in column O once or multiple times


    A.) How do I write this formula to use the value of cell P26? The present formula results in a blank cell?

    B.) If I substitute the value (70) for P26 the results will be correct as there is only one 70 in column O25:O55 and one value of 3 in column J25:J55.

    C.) If I substitute the value for P27 (80) in the formula, there are two 80's in column O25:O55 and two values ( one of 2 and one of 3 ) in column J25:J55, the results is a fictious number like 3.5.

    Any help is appreciated.
    Travelersway
    Last edited by travelersway; 07-25-2005 at 09:49 AM.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    This is not documented in the HELP files...

    =SUMIF(O25:O55,"= P26",J25:J55) should be:

    =SUMIF(O25:O55,"="&P26,J25:J55)

    Does it work now?
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Generally, this how to concatenate the two:
    =SUMIF(O25:O55,"="&P26,J25:J55)

    But in this case, the below will be enough:
    =SUMIF(O25:O55,P26,J25:J55)

    HTH
    Ola Sandström

  4. #4
    Registered User
    Join Date
    12-20-2004
    Posts
    88
    Thank you both !

    I edited the thread to indiate that your kindness resolved parts A & B, but part C is still a problem.

    Again, your help is appreciated.

    Travelersway

  5. #5
    Kassie
    Guest

    RE: Sumif

    Hi

    Just remove the quotation marks and = sign around P26

    =SUMIF(O25:O55, P26,J25:J55)
    --
    [email protected]ve_2nd_at. Randburg, Gauteng, South Africa


    "travelersway" wrote:

    >
    > --------------------------------------------------------------------------------
    >
    > =SUMIF(O25:O55,"= P26",J25:J55) should equal 3 in cell Q26
    >
    > I'm trying to sum the values in Column J, for the value in column P,
    > which may be located in column O once or multiple times
    >
    >
    > How do I write this formula to use the value of cell P26? The present
    > formula results in a blank cell?
    >
    > If I substitute the value (70) for P26 the results will be correct as
    > there is only one 70 in column O25:O55 and one value of 3 in column
    > J25:J55.
    >
    > If I substitute the value for P27 (80) in the formula, there are two
    > 80's in column O25:O55 and two values ( one of 2 and one of 3 ) in
    > column J25:J55, the results is a fictious number like 3.5.
    >
    > Any help is appreciated.
    > Travelersway
    >
    >
    > --
    > travelersway
    > ------------------------------------------------------------------------
    > travelersway's Profile: http://www.excelforum.com/member.php...o&userid=17623
    > View this thread: http://www.excelforum.com/showthread...hreadid=389858
    >
    >


  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    It's hard to say why C does not work.
    So instead I'll send over a link to a Workbook (zip-file) that works.

    HTH
    Ola Sandström


    Attachment: http://www.excelforum.com/attachment...tid=3622&stc=1
    Attached Files Attached Files

  7. #7
    Kassie
    Guest

    Re: Sumif

    Part C?

    Please elaborate
    --
    [email protected]ve_2nd_at. Randburg, Gauteng, South Africa


    "travelersway" wrote:

    >
    > Thank you both !
    >
    > I edited the thread to indiate that your kindness resolved parts A & B,
    > but part C is still a problem.
    >
    > Again, your help is appreciated.
    >
    > Travelersway
    >
    >
    > --
    > travelersway
    > ------------------------------------------------------------------------
    > travelersway's Profile: http://www.excelforum.com/member.php...o&userid=17623
    > View this thread: http://www.excelforum.com/showthread...hreadid=389858
    >
    >


  8. #8
    Registered User
    Join Date
    12-20-2004
    Posts
    88
    THANK YOU ALL !

    It works fine now. Olasa, thank you for the fill. That gave me an idea as to why it wasn,t functioning.

    Have a great day.
    Travelersway

  9. #9
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Happy to hear.
    Thanks for the feedback
    Ola Sandström

  10. #10
    Registered User
    Join Date
    07-29-2005
    Posts
    1
    I have a question about the SUMIF function. I'm not sure if Excel is capable of doing buy, I want it to return values in a specified range.

    For example,
    =SUMIF(A1:A20,">1",B1:B20)

    However, what I would like to do is only return values that are >1 and <200. Is it possible to do this?

    Thanks,
    Troy

  11. #11
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Try this:

    =SUMIF(A1:A20,">1",B1:B20)-SUMIF(A1:A20,">=200",B1:B20)

    Does this work for you?

    Bruce

+ 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