+ Reply to Thread
Results 1 to 12 of 12

How to Align Bold Word Left or Right

  1. #1
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    169

    How to Align Bold Word Left or Right

    I'm trying to do 2 things. I'm working with MS Excel 2013 with a sheet named "Proposal".

    1. What I would like to do is in Cell A30 thru A162 if a word shows up as bold I need it to align to the left. This cell is pulling information from "=Sheet1!A9 thru =Sheet1!A141" Some of the cells will show numbers, which I would like to align to the center.

    2. Starting on Line 30 thru 162 I have merge BCD as one cell. In this location if a word shows up Bold I need to align it to the right. This cell is pulling information from "=Sheet1!B9 thru =Sheet1!141.

    I would really appreciate your help on this.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: How to Align Bold Word Left or Right

    Try this code here.

    NOTE: Remember to save your file before running this code as a back-up.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    169

    Re: How to Align Bold Word Left or Right

    thanks...I copied the code and put it in a module but it didn't align anything. Got anything else?

  4. #4
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: How to Align Bold Word Left or Right

    It worked on a dummy spreadsheet I wrote.

    Are you able to provide a sample of the workbook you are working on? With all the sensitive information removed of course.

  5. #5
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    169

    Re: How to Align Bold Word Left or Right

    I was really busy last couple of days but here is a copy. I have entered some information so that it would transfer to the proposal sheet. I hope this will help you with what I would like to do. Thanks in advance.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: How to Align Bold Word Left or Right

    Right, the words there are not formatted as bold as per normal but done so using conditional formatting. The rule for the formatting seems odd but here's the code following the same logic. I.e. if the cell contains the letters b, c, w, r, e, d, s then format it as bold.

    Similarly, for the 2nd part (column BCD), the conditional formatting is based on whether the cell contains the word "total".

    I've changed the code accordingly.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    169

    Re: How to Align Bold Word Left or Right

    Thumbs Up...I appreciate it. It works great.

  8. #8
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    169

    Re: How to Align Bold Word Left or Right

    Would like to have you do one more thing if you could. Everything you have done so far works great. In Column G on the proposal sheet where the subtotal now shows up in bold and to the right, I would like for the number in column G in the same row to show up Bold. I would appreciate it a lot and it would save me a lot of time. Thanks

  9. #9
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: How to Align Bold Word Left or Right

    For that, you can use conditional formatting. Follow these steps:

    1) Select cells G30:G162
    2) Home tab --> Conditional Formatting --> New Rule...
    3) (Top half) Select a Rule Type: Use a formula to determine which cells to format
    4) (Lower half) Format values where this formula is true: Type / paste this formula in
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    5) Click on Format
    6) Font tab --> Font style: Bold

  10. #10
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    169

    Re: How to Align Bold Word Left or Right

    (Solved) Thank You so much..

    1) Select cells G30:G162
    2) Home tab --> Conditional Formatting --> New Rule...
    3) (Top half) Select a Rule Type: Use a formula to determine which cells to format
    4) (Lower half) Format values where this formula is true: Type / paste this formula in
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    5) Click on Format
    6) Font tab --> Font style: Bold[/QUOTE]

  11. #11
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    169

    Re: How to Align Bold Word Left or Right

    Solved.....Thank You so much...

  12. #12
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: How to Align Bold Word Left or Right

    Happy to help. 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. Align Left and Right in Same Cell
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-25-2014, 04:08 PM
  2. [SOLVED] Left Align Across Selection
    By Phoenix5794 in forum Excel General
    Replies: 16
    Last Post: 09-10-2012, 04:51 PM
  3. Find last row with data and autofit, bold and center align
    By daillest319 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-24-2012, 11:32 AM
  4. Align to the left or to the right (or center)
    By kaokao1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2006, 11:09 PM
  5. Left align '$' and right align numbers?
    By skeetley in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 03:12 AM
  6. Merge & align ..left?
    By Joesph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2005, 07:06 PM
  7. Left Align, selection margin
    By Candee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2005, 07:59 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