+ Reply to Thread
Results 1 to 3 of 3

How to round numbers with a line break?

  1. #1
    Registered User
    Join Date
    11-17-2019
    Location
    California, United States
    MS-Off Ver
    Office 365
    Posts
    4

    How to round numbers with a line break?

    I have this following formula in a cell with Wrap Text selected in Excel:

    =(-0.870077889-0.4095)/(-0.0003)&CHAR(10)&"(1.18 hours)"

    How do I get the answer "4265.25963" to round to "4265" while keeping the line break and the "(1.18 hours)" looking the same?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,118

    Re: How to round numbers with a line break?

    Welcome to the forum.

    Try this:

    =ROUND((-0.870077889-0.4095)/(-0.0003),0)&CHAR(10)&"(1.18 hours)"
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-17-2019
    Location
    California, United States
    MS-Off Ver
    Office 365
    Posts
    4
    Quote Originally Posted by AliGW View Post
    Welcome to the forum.

    Try this:

    =ROUND((-0.870077889-0.4095)/(-0.0003),0)&CHAR(10)&"(1.18 hours)"
    Thank you!! Works!

+ 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. Replies: 4
    Last Post: 05-30-2018, 01:03 PM
  2. Replies: 12
    Last Post: 06-22-2016, 01:11 PM
  3. Copy pasting from Excel issue - NEW LINE/LINE BREAK
    By denneboom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2012, 10:18 AM
  4. Copy pasting from Excel issue - NEW LINE/LINE BREAK
    By denneboom in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-07-2012, 06:41 AM
  5. Copy pasting from Excel issue - NEW LINE/LINE BREAK
    By denneboom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2012, 06:40 AM
  6. [SOLVED] Break cell into multiple lines by line break
    By Chia in forum Excel General
    Replies: 1
    Last Post: 08-20-2006, 01:40 AM
  7. [SOLVED] line break in a cell-Is there a way to get the line break instead of a symbol?
    By luvgreen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2005, 02:05 PM

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