+ Reply to Thread
Results 1 to 8 of 8

Find amount under budget.

  1. #1
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Find amount under budget.

    I know this should be simple but I have not had any luck. I need to find the amount that I am under budget. The problem is that other fields in the column are messing with the total. I know there is a way to get this done without changing the formula each time but cant find out how. Probably because I don't know how to ask the question. I am uploading a sample worksheet. The number in green is what I want. The only problem is, I have to change the formula each month. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Find amount under budget.

    one way
    =SUMIF(B4:B17,"<>"&"",D4:D17)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find amount under budget.

    Second way...

    =SUMIF(B4:B15,">0",D4:D15)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Find amount under budget.

    Thanks to both of you it works great both ways. I knew it would be easy. I have one question though. When we do this formula How does it know that we only want to sum the ones that are greater then zero. It looks like it should say don't sum any because some of them are not true. And I don't understand what the & sign is doing. <>"&"

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find amount under budget.

    =SUMIF(B4:B15,">0",D4:D15)

    Formula "says". Add all the values in range d4:d15, IF the values in the same row in range B4:B15, are biggest than 0.

    =SUMIF(B4:B15,"<0",D4:D15)

    This one "says" to add the less than 0 values.

    Sorry for my poor English.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Find amount under budget.

    <> means ,does not =

  7. #7
    Registered User
    Join Date
    03-02-2012
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Find amount under budget.

    "does not = "&" What does "&" do? Thanks Bob

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Find amount under budget.

    it says "<>"&"" ie doesnot = blank..
    & joins the 2 bits together ,its just the way it's done in sumif
    =SUMIF(A1:A10,"<>""",B1:B10) doesnt work with "" which is text so we use =SUMIF(A1:A10,"<>"&"",B1:B10)
    but either work with a number
    =SUMIF($A$1:$A$10,"<>0",$B$1:$B$10)
    =SUMIF($A$1:$A$10,"<>"&0,$B$1:$B$10)

+ 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