Mar 14 2022 09:13 AM
Hello I wrote a custom function in excel,
but when I use large numbers (250,000) it comes back as #=NUM!
Only relevant info I found seems to be here:
https://support.microsoft.com/en-us/office/how-to-correct-a-num-error-f5193bfc-4400-43f4-88c4-8e1dcc...
Yet I have absolutely no idea how or where to do that.
Clicking on "show calculations steps" just shows me this.
I tried changing from an INTEGER to a DOUBLE, but 250,000 should clearly fit inside of an integer.. so im really confused
Mar 14 2022 09:29 AM
SolutionThe range of Integer is -32768 to +32767.
Use Double or Currency for BaseCost, and Long for NumOwned.
Mar 14 2022 09:33 AM
Mar 14 2022 12:58 PM
That is correct. See Data type summary
Mar 14 2022 09:29 AM
SolutionThe range of Integer is -32768 to +32767.
Use Double or Currency for BaseCost, and Long for NumOwned.