+ Reply to Thread
Results 1 to 7 of 7

Adding text to a formula?

  1. #1
    Registered User
    Join Date
    03-07-2012
    Location
    US
    MS-Off Ver
    Excel 14.0
    Posts
    13

    Adding text to a formula?

    Hello,

    I'm trying to figure out how to add text "UP" or "DOWN" to the following percentage formula?

    54% UP

    =IF(B6>B7,B6*1/B8,B7*1/B8) "UP"

    54% DOWN

    =IF(D6>D7,D6*1/D8,D7*1/D8) "DOWN"

    Please advise...

    Thanks

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Adding text to a formula?

    Try these:

    =IF(B6>B7,B6*1/B8,B7*1/B8)&" UP"


    =IF(D6>D7,D6*1/D8,D7*1/D8)&" DOWN"
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Adding text to a formula?

    or inside the if statement...

    =IF(B6>B7,B6*1/B8 & " UP" , B7*1/B8&" DOWN")

    =IF(D6>D7,D6*1/D8&" DOWN", D7*1/D8&" UP") - change as needed
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Registered User
    Join Date
    03-07-2012
    Location
    US
    MS-Off Ver
    Excel 14.0
    Posts
    13

    Re: Adding text to a formula?

    Ok, I tried the =IF(D6>D7,D6*1/D8&" DOWN", D7*1/D8&" UP") but it comes up in a fractional value instead of percent.
    0.558823529411765UP

    Also tried the =IF(B6>B7,B6*1/B8,B7*1/B8)&" UP" but again the total comes up in fractional.
    0.730769230769231 UP

    I'm not sure if I explained what I'm trying to accomplish clearly... I'm trying to get either the "Up" or "Down" value according to thecalculation.

    =IF(B6>B7,B6*1/B8,B7*1/B8)

    15+14=29 or 52% Up
    14+15=29 or 52% Down

    Please advise what I'm doing wrong.

    Thanks

  5. #5
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Adding text to a formula?

    Do you mean Round up or Round down? therefore you can use =roundup() or =rounddown()

    Please post what is in B6 B7 and B8 you formula

    =IF(B6>B7,B6*1/B8,B7*1/B8)

    Doesn't match 15+14=29 or 52% Up
    at all.

    Do you want it to say "up" if a value is above X and "down" if a value is below X?

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Adding text to a formula?

    try this:

    =IF(D6>D7,TEXT(D6*1/D8,"%0.0")&" DOWN", TEXT(D7*1/D8,"%0.0")&" UP")

    because you are going to be using text instead of a number format once you add letters to your output, you need to format in the formula instead of in the cell.

  7. #7
    Registered User
    Join Date
    03-07-2012
    Location
    US
    MS-Off Ver
    Excel 14.0
    Posts
    13

    Re: Adding text to a formula?

    Ok, I got it working, Thank you everyone for your help.

+ 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