+ Reply to Thread
Results 1 to 4 of 4

sumif query

  1. #1
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    sumif query

    I have the following formula:

    Please Login or Register  to view this content.
    which means if R2 is less than Q2 then multiply R2 x U2 x V2, and if not then multiply O2 x T2 x U2 x V2

    I've done something strage (again), please help.

    thanks
    Last edited by Christopherdj; 05-25-2012 at 01:37 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: sumif query

    No need for SUM... just IF

    =IF(r2<Q2,o2*R2*U2*V2,O2*T2*U2*V2)
    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 Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Re: sumif query

    Thanks again for your help. It is late here - after 3am and I just couldn't sleep because this complex payment system I'm working on has been doing my head in.
    But on a brighter note, I got most formulas myself, and this site helped me so quickly with the rest. What a great helpfull place this is.

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: sumif query

    What you're describing is a regular IF(), not SUMIF()

    what you're describing with "which means" is something like,

    Please Login or Register  to view this content.
    But that is not how SUMIF() thinks.

    SUMIF() takes the form:

    SUMIF( range test, conditional test, range to sum )

    (range to sum is implicitly the ranged tested if the third array isn't entered),

    and it adds, not multiplies.

    What do you WANT the formula to do?

+ 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