+ Reply to Thread
Results 1 to 2 of 2

Cell wording should change if result is +ve or -ve

  1. #1
    Registered User
    Join Date
    11-09-2004
    Posts
    11

    Cell wording should change if result is +ve or -ve

    I have a calculation with one cell containing the result. The wording next to the cell should read

    "Jane owes Peter:" if the result of the calculation is positive
    and
    "Peter owes Jane:" if the result is negative but it should show the absolute value.

    I am grateful for any help

  2. #2
    Dave Peterson
    Guest

    Re: Cell wording should change if result is +ve or -ve

    =if(a1=b1,"No debt",if(a1<b1,"Jane owes Peter: ","Peter owes Jane: "))
    & text(abs(a1-b1),"$0.00")

    You can use the text() worksheet function to give the difference a nice format.

    =if(a1=b1,"No debt",if(a1<b1,"Jane owes Peter: ","Peter owes Jane: "))
    & text(abs(a1-b1),"$0.00") & " due on: " & text(c1,"mm/dd/yyyy")

    (if you had the date in C1)

    karambos wrote:
    >
    > I have a calculation with one cell containing the result. The wording
    > next to the cell should read
    >
    > "Jane owes Peter:" if the result of the calculation is positive
    > and
    > "Peter owes Jane:" if the result is negative but it should show the
    > absolute value.
    >
    > I am grateful for any help
    >
    > --
    > karambos
    > ------------------------------------------------------------------------
    > karambos's Profile: http://www.excelforum.com/member.php...o&userid=16262
    > View this thread: http://www.excelforum.com/showthread...hreadid=541726


    --

    Dave Peterson

+ 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