+ Reply to Thread
Results 1 to 26 of 26

Custom Number Format

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60

    Custom Number Format

    Hi,

    I know with formulas you can reduce characters in a cell.

    What I want to do is just show the last digit in a cell with custom formatting because I use 4 digit values and when I create a chart with 2 sets of values take into account the single digit values as well.

    So rather than doing that, I thought if I can reduce the cell number to last digit only with custom formatting, maybe it could work.

    Any thoughts?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Custom Number Format

    Formatting does not change the underlying value of a cell, it is just the way XL shows you your data.
    If you need to work with only the last digit you'll have to extract it with a formula
    Perhaps post a sample sheet to show us what you want to achieve ( see yellow banner for how-to)

    BTW are you still using XL2003? If not please adapt your profile as answers are often tailored to the OP's XL version

  3. #3
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60
    Hi,

    Thanks for replying. I updated my profile since I use excel 2016. Number formatting is what I need since I don't want the value to change.

    The idea is to show the last digit from the amount colum as a data lable in chart since my amount values are 4 digits and have 2 or 3 dicimals I don't want the full value to appear as data lable.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    Where's the chart???
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    Pepe has already told you that formatting ONLY changes how the cell contents look to the human eye. 619.3454 will REMAIN 619.3454. If your custom formatting IS actually possible... it will LOOK like 4, but that's all.

    What use is an ambiguous data label anyway?? You have two 4s, 5s and 0s.

    This is very confusing.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    Getting the last digit is, of course, fairly straightforward:

    =RIGHT(B2)

    will do that. But I don't see what that achieves.

  7. #7
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60
    Hi, sorry for not attaching the chart before.

    I revised the sheet so you can understand better.

    One of the two price values will have a negative value so to plot it on the same level is too complicated for me.

    So I decided to have separate data series for positive and negative and use two different color formate to visually identify them. And for the purpose of this price sheet I only want to visualize the last digit of the price.

    So 619.3454 as 4 is exactly what I need.

    Thank you
    Attached Files Attached Files
    Last edited by vonmunchy; 01-11-2022 at 05:16 AM.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    ?? Is this what you wanted?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60

    Re: Custom Number Format

    Hi,

    Not as value from cell. Because I want to formate the lable for each of the series separately.

    It needs the last digit of the value of it's series because my main sheet will have 1000s of prices so to manually color code it would be too time consuming

  10. #10
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60
    Attached is a screenshot of what im trying to achive

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Custom Number Format

    If there is a number format code that will do this, it would be documented here: https://support.microsoft.com/en-us/...7-9c9354dd99f5 I do not see any way to display only the rightmost digit of a number, however.

    Since you are already extracting the rightmost digit into column D, I would simply use column D as the data labels (see "use cell values as data labels" here: https://support.microsoft.com/en-us/...2-f467c9f4eb2d ).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  12. #12
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60

    Re: Custom Number Format

    What is the point to have me give a full a explanation,post the sheet twice only to be given a documentation link?

    Even I know the custom formatting is possible, since both of you said that as well and asked me for futher explanation is the reason why I did all that.

    If you don't have the solution just don't make people do unnecessary things like this and end up giving them the documentation link.

    Thanks

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    vonmunchy, your ill-tempered comments do not encourage anyone help.... especially since it was ME that asked for an explanation and Mr Shorty who supplied the link.

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Custom Number Format

    Quote Originally Posted by vonmunchy View Post
    What is the point to have me give a full a explanation,post the sheet twice only to be given a documentation link?

    Even I know the custom formatting is possible, since both of you said that as well and asked me for futher explanation is the reason why I did all that.

    If you don't have the solution just don't make people do unnecessary things like this and end up giving them the documentation link.

    Thanks
    I don't see where Glenn or Mr S have said the formatting you describe IS possible. They've both said 'IF' it is possible.
    Personally I don't think Excel custom formatting can do this. It might be possible to write a macro to interact with the chart series values and apply the background colour to all but the last character of each value. IF that is possible I sense it's not a two minute piece of coding. As Glenn implied a bit of humility wouldn't go amiss.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  15. #15
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60

    Re: Custom Number Format

    Okey. Sorry if I came off rude.

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    I've been away all day and am only looking at this again, now.

    In my attachment, Post 8, the data labels ARE the last digit of the value. If I understand what you want, the only thing MISSING from what you want ... is a line joining sequential datapoints. Is that correct? Or am I missing something important.

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    So another guess...

    Any closer? Formulae in shaded cells. I added another dataset (all) with no markers, just a line.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60
    Quote Originally Posted by Glenn Kennedy View Post
    So another guess...

    Any closer? Formulae in shaded cells. I added another dataset (all) with no markers, just a line.
    Thanks. That's kinda of where I got stuck. Anyways thanks for replying. Il figure an alternative

  19. #19
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60

    Re: Custom Number Format

    Rather an alternative what I can think of trying to achive what I want is to have two "cell from values". That way I can use two different sets of data because currently when I choose cell from values I'm only able to use 1

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    Can you explain again where it is incorrec and what you expect to see that is different.. I'm clearly misunderstanding what you want. However, I'm only here for about the next 10 mins... It's time to find a restaurant for dinner!!

  21. #21
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60
    I want last digit for each of the cloum to appear separately so I can use series formatting to give it a color like that
    Attached Images Attached Images
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60
    Hi, appogies again for not being clear enough before. I was under the impression the "value from cell" is for all data labels and didn't know I can have separate ones for each data series.

    Below attached is much clearer example of what I was trying to achieve and I managed to do so, but now a new minor issue. It doesn't show the first values from range
    Attached Images Attached Images
    Attached Files Attached Files

  23. #23
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    Is this it???
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60

    Re: Custom Number Format

    I resolved it. Will Close the thread. Thanks

  25. #25
    Registered User
    Join Date
    04-10-2013
    Location
    Maldives
    MS-Off Ver
    Office 365
    Posts
    60

    Re: Custom Number Format

    Quote Originally Posted by Glenn Kennedy View Post
    Is this it???
    Yes perfect Thanks a lot. Appreciate it

  26. #26
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Custom Number Format

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Format Cells -> Custom Number with Custom Color
    By Cardan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2021, 08:19 AM
  2. Replies: 5
    Last Post: 01-25-2020, 05:18 PM
  3. Replies: 6
    Last Post: 12-08-2018, 09:26 PM
  4. Need formula or code to convert number(s) from custom format to number format
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2015, 07:44 PM
  5. how do I add phone number format as a permanent custom format?
    By frustratedagain in forum Excel General
    Replies: 3
    Last Post: 02-03-2006, 11:52 PM
  6. Format a cell with a custom number format
    By Armor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2006, 07:30 PM
  7. Custom number format always defaults last number to 0.
    By scubadave in forum Excel General
    Replies: 2
    Last Post: 06-15-2005, 06: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