Vijay wrote:
The largest positive number which Excel can show is 9.99999999999999E+307.
No, that is the largest value that Excel permits us to
enter.
The largest value that Excel can "show" (calculate) is about 1.79769313486232E+308, which we can calculate with the following formula:
=10*1.79769313486231E+307 + "5.79E+293"
Vijay wrote:
largest factorial which you get is for 170.
=FACT(170) = 7.257415615308E+306
But we might also note that Excel cannot represent such large factorials accurately.
FACT(22) is the largest factorial that Excel can represent accurately, although it is displayed inaccurately because Excel formats only up to 15 significant digit (rounded).
And with VBA type Decimal, we can calculate only up to factorial 27 exactly. But if that value were stored as a number into an Excel cell, it would be stored with an
approximate type Double value.
If you do a google search, you might find an Excel add-in that will permit you to calculate large factorials accurately. But again, those values must be stored as strings, not numbers, in Excel.
It has been suggested by others that if you need to work with such large numbers, perhaps Excel is not the right product for you to use.