+ Reply to Thread
Results 1 to 5 of 5

VBA macro for "power" with 15> digits accuracy

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    italy
    MS-Off Ver
    Excel 2003
    Posts
    8

    Question VBA macro for "power" with 15> digits accuracy

    Hi everybody!
    I need a marco to make powers whose results are accurate and longer than 15 digits.

    For example:
    23^32

    Accurate result: 37.608.910.510.519.071.039.902.074.217.516.707.306.379.521
    Excel result using "=power" formula 3,76089E+43 <--it is not accurate. For my needs I need the complete and exact number.

    I know that Excel has a 15 digits accuracy, but I hope to bypass the problem using VBA.
    Can someone suggest me a macro who can help me?
    Thank you!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,356

    Re: VBA macro for "power" with 15> digits accuracy

    Hi aolo,

    I find http://precisioncalc.com/What_is_xlPrecision.html searching the net. See if this works for you.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: VBA macro for "power" with 15> digits accuracy

    I would seriously consider using a different program than Excel. There are work-arounds, like the link that Marvin posted, but Excel is built for 15 digit accuracy. Your life might be easier if you used a program designed for number crunching instead.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    11-28-2012
    Location
    italy
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: VBA macro for "power" with 15> digits accuracy

    Thank you MarvinP.
    It could have been perfect, but I can't install this excellent add-in cause I don't have administrator's credentials.
    By now I think a macro can be the only way.
    Thanks again!

  5. #5
    Registered User
    Join Date
    11-28-2012
    Location
    italy
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: VBA macro for "power" with 15> digits accuracy

    Thank you mikerickson. Unfortunately I can only use Excel with no other add-in. Just VBA...

+ 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. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. [SOLVED] "IF" function that only requires partial accuracy or contains a character
    By ReallyCoolGuyYeah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-03-2013, 07:24 PM
  5. [SOLVED] Find "__"x"__" regardless of digits. The anti-concatenate....
    By esmithqg in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-02-2013, 10:42 PM
  6. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM
  7. "Excel 2003 Power Programming With VBA" John Walkenbach - pls share
    By al007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2006, 01:15 PM
  8. [SOLVED] how do you type squares or "to the power" in excel??
    By Hyperyoda in forum Excel General
    Replies: 4
    Last Post: 12-03-2005, 06:10 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