Results 1 to 2 of 2

Thread: Profit and Loss

  1. #1

    Profit and Loss



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Dear Friends..

    I am pretty bad at excel and I looking forward for some help.

    Basically I have to create a spreadsheet with below fields and the calculation to be like below.

    Item Cost | Item Sale | Profit | Loss | Total

    Here if the item cost is greater than item sale then the difference value should appear in the loss column and if the item sale is greater than Item cost then the difference amount should appear in Profit.

    Actually when I tried it does appear with values but the value is appearing in both the cells. For example.. if item sale is 300 and item cost is 250 , 50 should appear in profit and it does appear in profit but in loss it is appearing as -50 which we don't want.. if the deal is profit then the loss column should be null and vice versa..

    Can somebody please help me on this.

  2. #2
    Super Moderator Bob Phillips's Avatar
    Join Date
    Mar 2011
    Posts
    1,819
    Articles
    0
    Excel Version
    O365
    Profit: =IF(A2<B2,B2-A2,"")
    Loss: =IF(A2>B2,A2-B2,"")

    I would just have one column, =A2-B2 and format it as #,##0.00;[Red](#,##0.00)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •