+ Reply to Thread
Results 1 to 4 of 4

Vba sum formule

  1. #1
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Vba sum formule

    Hello,

    I have this:

    Please Login or Register  to view this content.
    Although when i execute the formule, instead of appear "19 250"

    It shows a different Value, can someone help me on this?

    You can check in the file attach

    I need that the cell format would be like "1 000" or "100 000"

    Separated with spaces, i formatted the cell as: "# ##0"
    I want it to be in Units like
    1,5 = 2
    1,4 = 2
    100,55 = 101
    15125,515 = 15 126
    Always for the next unit above.

    Hope someone can help
    Attached Files Attached Files

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Vba sum formule

    The code is dimensioning MetrosLineares as a string. It should be a Double.

    Adding ROUNDUP to the code will produce the results that you want.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Vba sum formule

    Quote Originally Posted by mikerickson View Post
    The code is dimensioning MetrosLineares as a string. It should be a Double.

    Adding ROUNDUP to the code will produce the results that you want.
    I don't know what you mean about roundup. How can i do that?

    I can do as well dimenstion metroslineares as double..

  4. #4
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Vba sum formule

    I already dimentioned MetrosLineares to Double and it solved the problem.

    Thanks

+ 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. Formule =ALS
    By mazaike in forum Non English Excel
    Replies: 3
    Last Post: 06-27-2015, 07:55 AM
  2. Formule =ALS
    By mazaike in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2015, 05:37 AM
  3. result formule
    By fla-ts in forum Excel General
    Replies: 2
    Last Post: 12-15-2014, 10:11 AM
  4. More than one value in MID formule
    By Teddymanne in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-08-2014, 12:13 PM
  5. Als nested formule
    By Rmverbaan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-10-2014, 02:02 PM
  6. dynamic formule
    By glda19 in forum Excel General
    Replies: 2
    Last Post: 12-25-2012, 01:06 PM
  7. Need a formule for this....
    By Jerin John in forum Excel General
    Replies: 1
    Last Post: 03-23-2011, 12:38 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