A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
My guess: the data in some or all cells (for example B2 and/or C2) is type text.
Note that I write "type", not "format". The format of the cell does not matter, and looks can be deceiving, including horiontal alignment.
Use formulas of the form =ISTEXT(B2) and =ISTEXT(C2) to determine data type.
In Excel, a text value is considered greater than any numeric value. And text is compared based the ASCII value of characters. So, for example, the string "2" is greater than the string "18".
You might convert the text data to numeric by using the Text To Columns feature on each column of data individually.