+ Reply to Thread
Results 1 to 5 of 5

IF and Concatenate functions combined, how do I add space and/or color

  1. #1
    Registered User
    Join Date
    10-28-2014
    Location
    arizona
    MS-Off Ver
    ms office 2010
    Posts
    2

    IF and Concatenate functions combined, how do I add space and/or color

    Please Login or Register  to view this content.
    I am trying to get a space between E8 and G8, it returns a value as such "CMG-29.3%"
    I would like it to look like "CMG -29.3%" with the -29.3% in red and if that was to be positive then in black
    thanks

  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,058

    Re: IF and Concatenate functions combined, how do I add space and/or color

    To insert a space, you'd use
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    You cannot format part of the result of a formula.


    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 Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: IF and Concatenate functions combined, how do I add space and/or color

    Welcome to the board.

    I am trying to get a space between E8 and G8
    = IF('DT Growth EW'!H8<-7%, 'DT Growth EW'!E8 & TEXT('DT Growth EW'!G8," 0.0%"))

    with the -29.3% in red
    Can't be done. You could use conditional formatting to make the font for the entire cell red if G8 is negative.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    10-28-2014
    Location
    arizona
    MS-Off Ver
    ms office 2010
    Posts
    2

    Re: IF and Concatenate functions combined, how do I add space and/or color

    Awesome thanks

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,729

    Re: IF and Concatenate functions combined, how do I add space and/or color

    You can either just concatenate a space in between

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


    Or bake it into your format:

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


    The result of a formula cannot have multiple formats. You are stuck with one color.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VLOOKUP combined with CONCATENATE faulty result
    By microbase in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-17-2014, 10:56 AM
  2. [SOLVED] concatenate text boxes to find combined value and copy paste alternative value into wb
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2014, 12:19 PM
  3. Concatenate, If , And Functions combined
    By medlock_1989 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-30-2013, 06:46 PM
  4. =concatenate With A Space
    By nander in forum Excel Formulas & Functions
    Replies: 41
    Last Post: 09-06-2005, 07:05 PM
  5. Combined Functions
    By fncuis in forum Excel General
    Replies: 4
    Last Post: 08-22-2005, 07:16 PM

Tags for this Thread

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