+ Reply to Thread
Results 1 to 11 of 11

Can't calculate after decimal point.

  1. #1
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Can't calculate after decimal point.

    Hi all, does anyone advise how I can multiply a TextBox contents after the decimal point?

    So essentially I need -

    Please Login or Register  to view this content.
    Many Thanks

  2. #2
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    101

    Re: Can't calculate after decimal point.

    I dont think I quite understand. Please explain 'after the decimal point'. Your code above should work even with decimal points.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Can't calculate after decimal point.

    I'd like to omit the first figure so , TextBox3.Value * 2.369 would be:

    TextBox3.Value * .369

  4. #4
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    101

    Re: Can't calculate after decimal point.

    Quote Originally Posted by bralew View Post
    I'd like to omit the first figure so , TextBox3.Value * 2.369 would be:

    TextBox3.Value * .369
    Would something like the following be what you are looking for?
    The first is a straight multiplication.
    The second does a search for the decimal place and omit everything in front of it including the decimal.
    The third is the same as the second except it includes the decimal.

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Can't calculate after decimal point.

    Please Login or Register  to view this content.
    ?

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Can't calculate after decimal point.

    Hi,

    You might use
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  7. #7
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Can't calculate after decimal point.

    Thanks frabulator, I'm looking for something a little easier to maintain, but thank you.

    Hi Jindon, the code doesn't come up with the required figure?

  8. #8
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    101

    Re: Can't calculate after decimal point.

    xlnitwit's code is actually a condensed version of mine. It should be a lot easier to maintain

  9. #9
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Can't calculate after decimal point.

    Depending on your decimal seperator 1 of this 2 can do

    Please Login or Register  to view this content.
    Kind regards
    Leo

  10. #10
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: Can't calculate after decimal point.

    Thanks lads, ;-)

  11. #11
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Can't calculate after decimal point.

    or

    Please Login or Register  to view this content.
    cheers
    Leo

+ 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. Decimal Point where it belongs AND Decimal Point where comma belongs #VALUE
    By fred3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2016, 10:29 PM
  2. Replies: 2
    Last Post: 06-29-2012, 07:52 PM
  3. Replies: 2
    Last Post: 01-18-2012, 03:54 PM
  4. Replies: 4
    Last Post: 06-10-2009, 12:50 PM
  5. Format display decimal values but no decimal point
    By BecParko in forum Excel General
    Replies: 1
    Last Post: 10-18-2007, 04:42 AM
  6. Replies: 3
    Last Post: 03-18-2006, 02:25 PM
  7. Replies: 3
    Last Post: 07-06-2005, 09:05 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