+ Reply to Thread
Results 1 to 5 of 5

Using PRODUCT for large data set

  1. #1
    Registered User
    Join Date
    10-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    2

    Using PRODUCT for large data set

    I have a set of 5,800+ data points between 0 and 1 that I would like to multiply together. When I use PRODUCT for the whole set, the formula returns 0. However, I can use a smaller subset of the data to return a very small number. I'm curious if Excel has a closest-number-to-0 or number-of-cells-for-PRODUCT limitation. Is there another way to perform this calculation?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Using PRODUCT for large data set

    Is the zero in the cell or the formula bar? how many decimal places are you showing? What's the cell format?
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    10-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    2

    Re: Using PRODUCT for large data set

    Everything in the sheet is formatted as a number. I have the specific PRODUCT cell formatted in scientific notation with 4 decimals. When I calculate =PRODUCT(N6:N5863), it returns 0.0000E+00. If I calculate =PRODUCT(N1:N500), it returns 8.6668E-248, so I realize I am dealing with really small numbers and theorize that I am getting so small that Excel is just telling me it's basically 0...

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Using PRODUCT for large data set

    Perhaps you are the "victim" of Floating point arithmetic as used by MS

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Using PRODUCT for large data set

    Or, perhaps more specifically, according to Excel specifications and limits (http://office.microsoft.com/en-us/ex...495.aspx?CTT=1), the smallest value excel can work with is 2.2251E-308. Anything smaller than this is identically 0. I'm not sure if this is part of the IEEE double precision standard, or if this is specific to Excel.

    (On edit: Pepe Le Mokko's link confirms that this is an accepted part of the IEEE standard, so this will be a limitation of most any program/programming language that uses the IEEE double precision standard).

    If you want to perform this calculation in Excel, you will probably have to review what scientific notation means, review rules for manipulating exponents, and such. Then build formulas to:

    1) Separate the value into mantissa and exponent parts
    2) Use the PRODUCT() function to multiply the mantissas
    3) Use the SUM() function to add up the exponents.
    4) Display as desired, though you will need to recognize that you will not be able to recombine the answer into a single value (a text string will be ok, but not a number).
    Last edited by MrShorty; 01-07-2014 at 01:37 PM.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Replies: 10
    Last Post: 01-02-2013, 10:56 AM
  2. [SOLVED] Find Product Details in Another Sheet based on Product ID and Copy some Fields From there
    By kevalkothari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2012, 10:43 AM
  3. [SOLVED] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 AM
  4. Replies: 2
    Last Post: 04-02-2009, 05:56 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