+ Reply to Thread
Results 1 to 5 of 5

conditional formula, if date entered, include in totals

  1. #1
    Registered User
    Join Date
    11-24-2012
    Location
    Iowa, United Sates
    MS-Off Ver
    Excel 2007
    Posts
    2

    conditional formula, if date entered, include in totals

    This may be too easy but I'm just sort of teaching myself excell and I can't figure this out. I have bill amounts in column B and the date that bill is paid in column G so I have a cell that I want to total just the column B amounts where G has the date filled in.

    So if there is a date in G then include B of that row in this total. Does someone know how to write that formula?

  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: conditional formula, if date entered, include in totals

    =SUMIF(G2:G100,">0",B2:B100) as long as cells in g are blank or dates
    "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
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: conditional formula, if date entered, include in totals

    i think what you need to use is the sumif() function. without seeing you're data, something like...

    =SUMIF(G:G,"<>"&"",B:B).

    It would be better if you just used the range needed rather than entire columds though
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-24-2012
    Location
    Iowa, United Sates
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: conditional formula, if date entered, include in totals

    Thank you! I as almost there I just had brackets where i didn't need them. And thank you for the tutorial link.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: conditional formula, if date entered, include in totals

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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