+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : 'Right' function for numbers

  1. #1
    Registered User
    Join Date
    01-12-2011
    Location
    Kent, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    'Right' function for numbers

    Good afternoon people,

    I have a spreadsheet that works out payment instalments, with each payment worked out where the first instalment will usually be an odd amount and the rest calculated with standard amounts.

    For instance, if a total payment of £226.64 is to be paid in instalments, the first payment would be £26.64 and the remaining 10 would be £20 each.

    I have created a formula which works for odd amounts (such as the example above) but does not when the amount involves 0 change ie £220.00. The function I am using is the 'RIGHT' function ( =RIGHT(S23,4) ), which does not seem to work correctly for numbers where the decimal is .00.

    Does anyone have a suggestion on how to capture the last four digits of a number correctly?

    Cheers,
    Matt
    Last edited by Matt Parsons; 10-11-2011 at 11:22 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: 'Right' function for numbers

    Is it always 11 payments?
    Remember what the dormouse said
    Feed your head

  3. #3
    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: 'Right' function for numbers

    Try this
    Please Login or Register  to view this content.
    Format the cells "Currency".

    Is that what you mean?
    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.

  4. #4
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Re: 'Right' function for numbers

    If you format the cell to text and then type it then 220.00 will display correctly as 220.00 in the cell.
    Plus, you'll need to change your right formula to =RIGHT(S23,5) as the dot is considered to be a character in the text.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: 'Right' function for numbers

    You can try converting to text first within a formula...

    e.g.

    =RIGHT(TEXT(S23,"#.00"),5)+0

    formatted as necessary to show the decimals....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    01-12-2011
    Location
    Kent, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: 'Right' function for numbers

    Wow, thanks! I didn't realise there were so many ways to accomplish this!

    romperstomper: no it's not always 11 payments, it can be anything as the amount can be varied and the payment instalments can be varied also.

    Marcol, Nikeyg & NVBC: Thanks, all of these methods work!

    Cheers people!

+ 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