hello everyone i want to make decimal number small in font size in excell for example: 123,456 : the number 456 i want to make them look smaller in size in excell please help.![]()
hello everyone i want to make decimal number small in font size in excell for example: 123,456 : the number 456 i want to make them look smaller in size in excell please help.![]()
Last edited by AliGW; 11-28-2021 at 10:01 AM. Reason: Title changed - please think more carefully about your thread titles in future!
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.
Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).
Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.
(Note: this change is not optional. As you are new here, I have done it for you this time.)
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. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
What you want to do cannot even be done manually, so I think it very unlikely indeed that it can be done with VBA, which would be your only other option.
I disagree. I'm pretty sure this can be done -- as long as the "number" is stored in the cell as a text literal. The most common scenario is where one wants to add a superscript/subscript character to a number value in Excel, but this should work for font size as well.
1) Enter the number into a cell as a text literal. If hand entering the number, you can simply add a leading apostrophe to the number to indicate text, or preformat the cell as text, or any other strategy you like for entering numbers as text. Note that you cannot simply use the TEXT() function, because none of this works on a cell containing a formula -- it only works on a cell containing a text literal. If you use VBA to do the number to text conversion, note that you will need to be extra careful when VBA writes the text to a cell, because VBA/Excel are going to strongly want to convert the text back to a number.
2) Select the desired characters (manually: F2 to enter edit mode, then select the desired characters using shift+arrow keys or the mouse. VBA: use the Characters property https://docs.microsoft.com/en-us/off...nge.Characters ) and change the font size of the desired characters.
You end up with a cell containing a number stored as text, with all of the problems and limitations that come with numbers stored as text. If this is a final calculation, then it will probably be fine. If this is an intermediate calculation and you will still need to use the number, you will probably want to do this kind of formatting on a copy of the number that won't be used in other calculations.
Originally Posted by shg
If your number is in A1 then this will change the colour, size and bolden the text after the last comma.
A1 is formatted as text so multiply by 1 before using it in any formulas.
![]()
Please Login or Register to view this content.
Last edited by mehmetcik; 11-28-2021 at 12:18 PM.
My General Rules if you want my help. Not aimed at any person in particular:
1. Please Make Requests not demands, none of us get paid here.
2. Check back on your post regularly. I will not return to a post after 4 days.
If it is not important to you then it definitely is not important to me.
Thank you very much
Thank you very much sir i will se and get back to you
@Hamibou, maybe this is what you are looking for.
With a small addition to the code of mehmetcik, you can get you "superscript":
Cheers![]()
Please Login or Register to view this content.
Erwin
I started learning VBA because I was lazy...
Still developing.... being more lazy...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks