+ Reply to Thread
Results 1 to 8 of 8

"Better/Worse" text based on a postive/negative value

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    "Better/Worse" text based on a postive/negative value

    Hello. How could I modify the following formula to return "million WORSE" when the value is negative. Right now it's returning "million BETTER" regardless if the value is positive or negative. Thanks.


    ="Home Warranty reported a "&TEXT(H196,"$0.0")&" million pre-tax profit for "&TEXT(newPnLdate,"Mmmm yyyy")&" which is "&IF(ROUND(Q196,1)=0,"flat to last ",TEXT(Q196,"$0.0")&" million better than last ")&TEXT(newPnLdate,"Mmmm")&" and "&TEXT(L196,"$0.0")&" million better than the "&whichfcstnewPnL&" forecast. "

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,436

    Re: "Better/Worse" text based on a postive/negative value

    Maybe you could change one of the million better to read million worse?


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,436

    Re: "Better/Worse" text based on a postive/negative value

    Ah, and you probably need another IF in there to check for less than zero.

  4. #4
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: "Better/Worse" text based on a postive/negative value

    No, I want to do it, using an if statment, so I don't have to manually change the better worse. Right now if it's 0 it returns "flat to last", but if it's not 0, it returns "better". I want to add another If statement in there but I don't know how to. HELP!!!!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,436

    Re: "Better/Worse" text based on a postive/negative value

    Post a sample workbook with some sample data. That will make it easier to get it right.

    Regards, TMS

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: "Better/Worse" text based on a postive/negative value

    Try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: "Better/Worse" text based on a postive/negative value

    Perfect, except can you add the if statement for the last part too? &" and "&TEXT(L196,"$0.0")&" million better than the "&whichfcstnewPnL&" forecast. ") This part compares to prior year but it's the same concept. Thanks

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: "Better/Worse" text based on a postive/negative value

    I think that I got it but I can't test it.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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