+ Reply to Thread
Results 1 to 7 of 7

Determining number of calculations on a spreadsheet

  1. #1
    Registered User
    Join Date
    07-28-2017
    Location
    Ormond Beach
    MS-Off Ver
    richardblum
    Posts
    3

    Determining number of calculations on a spreadsheet

    Is there a way to determine the number of calculations contained in a spreadsheet? For example:

    1. addition of two single numbers would result in one calculation.
    2. additional of two double numbers would result in two calculations
    3. multiplication of two single digits would result in one calculation
    4. multiplication of two double digits would result in seven calculations.
    I think that you get the picture.
    I would like to know the number of calculations that an iteration method uses to determine the root of a polynomial equation to "n" decimal places.

    Any help would be appreciated. I could do this by hand, but, it would be rather tedious and time consuming.

    Thanks in advance for any help,

    Rick

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Determining number of calculations on a spreadsheet

    Adding, subtracting, multiplying, or dividing a pair of numbers takes one calculation regardless of the number of digits. Multiplication and division take more cycles, but it's still a single calculation performed in the ALU.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-28-2017
    Location
    Ormond Beach
    MS-Off Ver
    richardblum
    Posts
    3

    Re: Determining number of calculations on a spreadsheet

    I suppose that I need to make my request clearer. If I had to replicate the steps on the spreadsheet by hand, how many steps would it take to get the same answer? When I multiply 2 digits by 2 digits, for example:

    1 2
    x 1 3
    ____
    3 6
    1 2
    _____
    1 5 6
    1. multiply 3 x 2
    2. multiply 3 x 1
    3. multiply 1 x 2
    4. multiply 1 x 1
    5. Add 6 + 0
    6. Add 3 + 2
    7. Add 0 + 1

    There are seven calculations. This is the type of count that I am looking for.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Determining number of calculations on a spreadsheet

    That might be how you would do it by hand, but it's not how your computer works, and the result would not be an analog of computational complexity.

  5. #5
    Registered User
    Join Date
    07-28-2017
    Location
    Ormond Beach
    MS-Off Ver
    richardblum
    Posts
    3

    Re: Determining number of calculations on a spreadsheet

    So basically, you are saying that there is no way possible to get the count that I am looking for directly from excel and need to do the count by hand?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Determining number of calculations on a spreadsheet

    Whatever count your looking for, I reckon so.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Determining number of calculations on a spreadsheet

    On my five-year-old laptop, adding two numbers between 0 and 9 takes 160ns. Dividing two 15-digit numbers takes 3% (that's 3%, not 3 times) longer.
    Last edited by shg; 07-29-2017 at 11:30 AM.

+ 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. Determining Row Number of a Cell
    By hal w in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-14-2016, 10:48 AM
  2. Number of calculations in a spreadsheet
    By Bigmal70 in forum Excel General
    Replies: 6
    Last Post: 03-29-2014, 07:01 AM
  3. [SOLVED] Determining Number of Occurrences of Data in Large Spreadsheet
    By Stellabella in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-21-2012, 07:00 PM
  4. Determining number of pages
    By bhofsetz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2006, 05:15 PM
  5. [SOLVED] Determining volume/number.
    By Jim Smith in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-20-2006, 09:30 AM
  6. Determining the highest number in a row
    By Jaydubs in forum Excel General
    Replies: 4
    Last Post: 12-07-2005, 11:15 AM
  7. need help determining a row number
    By Gary Keramidas in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2005, 11:54 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