+ Reply to Thread
Results 1 to 2 of 2

create an underline equal to number of characters in cell below

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    create an underline equal to number of characters in cell below

    I want to underline a number but I want the number of characters underlined to be equal to the number of characters in the cell below.

    For example, I have data in cells A1:A5 as follows:
    20,000
    500
    500
    50
    21,050

    If I underline the 50 the result is:
    20,000
    500
    500
    50
    __
    21,050

    If I put a line in the cell the result is:
    20,000
    500
    500
    50
    ________
    21,050

    The desired result is:
    20,000
    500
    500
    50
    ______
    21,050

    Is there a way to do this? Example attached if needed. Thanks for any comments.
    Attached Files Attached Files
    Last edited by maacmaac; 09-19-2011 at 03:48 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: create an underline equal to number of characters in cell below

    it's not a good idea to store numbers as text for purely cosmetic reasons.

    Possibly the best you will get is,select the cell, then Format > Format Cells ...
    Font > Underline:= Double Accounting
    Border >Top
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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