+ Reply to Thread
Results 1 to 3 of 3

Help with adding Sum Formula

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    Stoke on Trent, England
    MS-Off Ver
    2010
    Posts
    58

    Help with adding Sum Formula

    Hi. Could anyone please help with a formula.

    We are creating a spreadsheet at work for employees holidays.
    If someone puts in a request, the number of days is added to column C until it is approved by a manager

    I am trying to add a sum formula to cell D8 which subtracts the number of day's holiday someone has from the Total days allocated in cell B5 and inserts the result into Cell D8 Balance Remaining.
    The formula I have so far is =IFERROR(B5-$C$8,"")



    1.JPG



    Below shows it has taken off the two days. If I copy the formula down it goes wrong.
    Another thing I am trying to do is to keep the Balance Remaining column Empty until someone enters a Y in the Approved Column.
    It will then show the days left in column C when more days are entered in the cell below


    2.JPG

    The formula I have is probably completely wrong, so if someone could please point me in the right direction I would be very grateful.

    Thanks for looking.

    Graham

  2. #2
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Help with adding Sum Formula

    Hi,

    Does this help, formula copied down:

    Excel 2016 (Windows) 64 bit
    B
    C
    D
    E
    5
    30
    6
    7
    8
    2
    28
    Y
    9
    3
    10
    5
    N
    11
    4
    24
    Y
    Sheet: Sheet108

    Excel 2016 (Windows) 64 bit
    D
    8
    =IF(OR(E8={"","N"}),"",B$5-SUMIF(E$8:E8,"Y",C$8:C8))
    Sheet: Sheet108

  3. #3
    Registered User
    Join Date
    08-04-2015
    Location
    Stoke on Trent, England
    MS-Off Ver
    2010
    Posts
    58

    Re: Help with adding Sum Formula

    Hi.

    That is exactly what I was looking for.

    Thank you very much for your help

    Regards,

    Graham

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 08-06-2018, 07:54 AM
  2. Adding Hyperlink formula to existing formula
    By Shawna11 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-18-2018, 01:46 PM
  3. [SOLVED] Formula for adding a percentage from one cell and adding the total of 2 others
    By Kandra in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 06:48 AM
  4. adding Indirect formula to my current sum if array formula
    By Eastbay2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-13-2013, 09:41 AM
  5. Replies: 1
    Last Post: 02-24-2013, 06:27 PM
  6. [SOLVED] Adding a match formula to an existing formula
    By pauldaddyadams in forum Excel General
    Replies: 8
    Last Post: 08-16-2012, 05:14 PM
  7. Replies: 8
    Last Post: 03-21-2012, 12:04 PM

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