+ Reply to Thread
Results 1 to 10 of 10

Combining a simple formula with text concatenation produces to many decimal points.

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2007
    Posts
    5

    Combining a simple formula with text concatenation produces to many decimal points.

    This is my formula with concatenation: =K3/K1*100 & "c" & " Each"

    This is the result of the values in K3 divided by K1: 6.41666666666667c Each

    I would like to limit the decimal places to two: 6.41c Each.

    I have tried to format the cell and none of the formatting options have any effect.

    If possible I would like to use the rounding function but I do not know how to combine the formula + text + rounding.

    Thank you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    Hi and welcome to the forum

    Maybe this?

    =text(K3/K1*100,"0.00") & "c Each"

    Not sure if that will take care of the rounding, test it. If not, then....

    =text(round(K3/K1*100,2),"0.00") & "c Each"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    try this text(K3/K1*100,""0.00")&"C Each")
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,240

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    Perhaps?

    =Round(K3/K1*100,2) & "c" & " Each"
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Registered User
    Join Date
    02-18-2014
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    Thanks for welcoming me to the forum!

    Your first suggestion worked perfectly! I checked the solution with my hand calculator and your formula rounded the number up correctly.

    Many thanks!

  7. #7
    Registered User
    Join Date
    02-18-2014
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    Worked perfectly. Thanks for the quick response...........!


  8. #8
    Registered User
    Join Date
    02-18-2014
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    Gave me exactly what I needed. Had one extra quotation mark and Excel gave me a message to change something in the equation. I am not complaining though. The help is very very appreciated.

    Thank you..........!

  9. #9
    Registered User
    Join Date
    02-18-2014
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    Thank you all for your help. Every one of your solutions worked!

    I learned a lot from this!

    Thanks again!

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Combining a simple formula with text concatenation produces to many decimal points.

    Happy you got what you wanted, and thanks for the feedback and kind words

+ 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. Forcing 2 decimal points to value added to text string
    By Brelin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2014, 07:19 PM
  2. Formating the formula to display two decimal points
    By chrism_production in forum Excel General
    Replies: 5
    Last Post: 02-14-2014, 01:09 AM
  3. Help with concatenation/combining cells...
    By adamjohnson182 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-18-2012, 11:59 PM
  4. Decimal places in a concatenation
    By ResulG in forum Excel General
    Replies: 9
    Last Post: 11-24-2006, 07:59 AM
  5. [SOLVED] Converting concatenation formula to text
    By FrigidDigit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2005, 05:05 AM

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