+ Reply to Thread
Results 1 to 12 of 12

Using <BR> In A Excel Formula

  1. #1
    Forum Contributor
    Join Date
    07-15-2007
    Location
    Bend, Oregon
    MS-Off Ver
    Office 2016 Windows
    Posts
    156

    Using <BR> In A Excel Formula

    Hello,

    I was wondering if it is possible to use <BR> in a Excel cell formula. I am using Ebay File Exchange to upload large data. The issue is File Exchange does not allow for line break or carriage return in my description field. What I have currently is,

    cell B2 contains (A102)
    cell C2 contains (This is a part item)

    ="Part Number: "&B2&C2

    Which outputs -> Part Number: A102 This is a part item.

    I need it to output:

    Part Number: A102

    This is a part item.


    Thanks Jr

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using <BR> In A Excel Formula

    How is this different from the question asked and answered at http://www.mrexcel.com/forum/showthread.php?t=584282?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-15-2007
    Location
    Bend, Oregon
    MS-Off Ver
    Office 2016 Windows
    Posts
    156

    Re: Using <BR> In A Excel Formula

    Hello,

    I do believe CHAR(10) is a carriage return. For some reason the File Manager from Ebay does not allow carriage returns.

    Thanks JR

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using <BR> In A Excel Formula

    It's a line feed.

    I can't tell from your question what you want to do.

  5. #5
    Forum Contributor
    Join Date
    07-15-2007
    Location
    Bend, Oregon
    MS-Off Ver
    Office 2016 Windows
    Posts
    156

    Re: Using <BR> In A Excel Formula

    Hello,

    The Ebay File upload manager will strip all carriage and line feeds. I need to be able to break a line such as <BR> in a a cel formula kile this,

    ="Part Number: "&B2<BR>&C2


    cell B2 contains (A102)
    cell C2 contains (This is a part item)

    Which outputs ->
    Part Number: A102
    This is a part item.

    JR

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using <BR> In A Excel Formula

    I don't know what you mean by <BR>

    If you mean that literal text, then

    ="Part Number: " & B2 & "<BR>" & C2

    The only way you're going to see it in two lines in a single cell is to use a line feed.

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Using <BR> In A Excel Formula

    @SHG

    <BR> is an HTML code that defines a single line break.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using <BR> In A Excel Formula

    Ah -- then all he needs is the literal text?

  9. #9
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Using <BR> In A Excel Formula

    @SHG

    After looking at the other post, I am confused since the solution given was said to work. Not sure how the OP would implement an HTML solution for an Excel sheet.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using <BR> In A Excel Formula

    Nary a clue, Leith.

  11. #11
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Using <BR> In A Excel Formula

    If we are guessing perhaps "<BR> puts the following text in the cell below"?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using <BR> In A Excel Formula

    Nary a clue, Mike.

+ 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