Excel returning wrong logic

mike4777

Board Regular
Joined
Apr 12, 2011
Messages
124
I have a simple formula X>X where the values of X are decimal numbers returned from an API from CoinMarketCap (cryptocurrency prices).

Excel is telling me that .0001 is greater than .0002

I tried using the max formula too and that worked for some cells and not for others (no pattern to this).

Never seen this before. Any ideas?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
what are those values to 15 decimal places

what is your real formula X>X is always going to be false

if they were negative values, what you have is true
 
Upvote 0
there are a lot of cells of decimals but one example:

.00003953>.00003500 is being returned as false.

I should also mention, I have another column of numbers from this api table (returned to another sheet with index/match functions). These numbers are dollar amounts that will not allow me to change the format from .15 to $.15 (currency format) despite the fact that it says it is on currency format.

The X>X IS the formula expressed abstractly.
 
Upvote 0
I just confirmed that the formula returns the right logic when I make another column next the the API column values and type all the same values in the new column. Is there a setting that will allow the index/match values from the API table to function correctly?
 
Upvote 0
are any of the api values coming in as text, test with =ISNUMBER(cell ref) should be TRUE. visually if there are no cell formatting, data to the right in a column is numeric, to the left is text
 
Upvote 0
there are a number of things
I think financial rounding, dosen't always work as expected
you might try double minus --X>--X which forces text to numeric
TRUNC could shorten what you see as values (not ideal in finance)
Index/Match has 0 and 1 for exact and nearest
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top