+ Reply to Thread
Results 1 to 9 of 9

Trouble Formatting Cells in a specific way

Hybrid View

  1. #1
    Registered User
    Join Date
    03-27-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    76

    Post Trouble Formatting Cells in a specific way

    Hi all.

    For a maths module at university I have developed a model that accounts for range deviation in a specific problem. However, I cant get Excel to show this answer in the desired format.

    I want it to say 'Value in B2' 'plus minus' 'Value in B3' in one cell.

    I have attached a workbook better showing the problem.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Trouble Formatting Cells in a specific way

    Use this:
    Formula: copy to clipboard
    =B2 & "±" & B3


    The ampersand & is a concatenation operator, which joins together different items (values, text, cell references, whatever). Anything which isn't a number or a cell reference needs to be in inverted commas.
    The above formula will give (using the figures from your sample sheet): 10±2
    If you want spaces before and after the ± then just add them inside the inverted commas:
    Formula: copy to clipboard
    =B2 & " ± " & B3


    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    03-27-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    76

    Re: Trouble Formatting Cells in a specific way

    Thank you. That's really helpful.

    In cell b3 and b2 my actual values are like 5 decimal places (10.29172). If I format these to 0 decimal places, it still appears as five decimal places in the bottom cell.
    B2 = 10.29172 -----> 10
    B3 = 1.9892832 ----> 2
    B5 = 10.29172 ± 1.9892832

    Ideally B5 would say 10 ± 2

    Thanks

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,755

    Re: Trouble Formatting Cells in a specific way

    Try
    =FIXED(B2,0)&" ± "&FIXED(B3,0)

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Trouble Formatting Cells in a specific way

    In that case, include the ROUND function, like this:
    Formula: copy to clipboard
    =ROUND(B2,0) & " ± " & ROUND(B3,0)


    ROUND(B2,0) rounds B2 to the nearest number with 0 decimal places, so 10.29172 becomes 10. ROUND(B2,1) would round to the nearest 1 decimal place, to give 10.3, etc.
    x.5 will round up. If you specifically want to always round up or round down, then use ROUNDUP or ROUNDDOWN instead. e.g. ROUNDDOWN(B2,0) will give 10 for 10.0000000000001 to 10.9999999999999.

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,278

    Re: Trouble Formatting Cells in a specific way

    Try
    Formula: copy to clipboard
    =TEXT(ROUND(B2,2),"0")&" ± "&TEXT(ROUND(B3,2),"0")


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Registered User
    Join Date
    03-27-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    76

    Re: Trouble Formatting Cells in a specific way

    Thanks everyone. All methods worked.

    Much appreciated.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,755

    Re: Trouble Formatting Cells in a specific way

    Glad to help & thanks for the feedback

  9. #9
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Trouble Formatting Cells in a specific way

    You're welcome, glad we could help and thanks for the rep.

+ 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. Remove Conditional Formatting from Specific Cells
    By Merf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2018, 10:06 AM
  2. Trouble using macro to automatically send e-mail with specific word in cells
    By BioBCCK in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-15-2018, 10:49 AM
  3. Formatting cells below a specific cell
    By Clem2003 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-14-2016, 12:35 PM
  4. [SOLVED] Conditional Formatting - Highlighting specific cells
    By jlo33 in forum Excel General
    Replies: 4
    Last Post: 06-07-2013, 04:50 PM
  5. Conditional Formatting for Specific Cells
    By amoto in forum Excel General
    Replies: 7
    Last Post: 04-13-2013, 11:59 AM
  6. I'm having trouble pasting data into specific cells in a table
    By phanjoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2012, 11:36 PM
  7. [SOLVED] conditional formatting on specific text in cells
    By kwkhoo in forum Excel General
    Replies: 3
    Last Post: 06-21-2005, 12: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