Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   Need an Excel Formula! (https://www.askmehelpdesk.com/showthread.php?t=567932)

  • Apr 4, 2011, 11:43 AM
    RLCSGT
    Need an Excel Formula!
    Hi, I know this will probably be easy to most of you? But I need to have a formula so that I can show amount of hours allocated to a task in collumn A amount used in Collumn B and the totals in Collumn C However I want it to work whether the Collumn A is greater or lower than collumn B and show this with either a + or - sign.
    So for example:

    Collumn A hours Allocated = 580
    Collumn B hours Used = 540
    Collumn C = -40

    or

    Collumn A Hours allocated = 580
    Collumn B Hours Used = 620
    Collumn C = +40

    and so on!

    All help greatly appreciated.
  • Apr 4, 2011, 01:58 PM
    Emland

    =sum(a?-b?)

    The ? Indicated the cell number. You would need to format your cells to display the positive and negative as you like.

    I used Open Office spreadsheet which is a free version very similar to Excel. It gives the minus (-) sign on negative automatically but does not give the plus (+) sign.

    Hope that helps.
  • Apr 4, 2011, 02:52 PM
    JBeaucaire

    Use the formula shown, then apply a custom number format to that cell of +0;-0.

    In C1, then copied downward:

    =B1-A1

  • All times are GMT -7. The time now is 05:12 AM.