Issues I've never considered before in Excel / LibreOffice Calc

mikeymikec

Lifer
May 19, 2011
17,714
9,592
136
Before I start, I should point out that working with spreadsheets has never been my 'bread and butter' professionally (though I've used spreadsheets for professional purposes plenty of times), so to some these points may come as no surprise.

I don't have a newer version of Excel to test in, hence 2007 (SP3, fully up-to-date). I'm using LibreOffice 5.3.1.6.

I can't believe I haven't noticed this issue sooner, but anyway. Take a blank spreadsheet and put a currency value (such as $31.20, needs to have the second decimal place as a zero) into a cell, format it as currency so you can see the second decimal place.

Select another cell, then do Ctrl+F and type in 31.20. Not found. I understand why of course: Mathematically, 31.20 is 31.2, so Ctrl+F finds 31.2 no problem.

I just would have thought for usability reasons (say doing a series of comparisons between two sources of information) that a spreadsheet program would treat a search for a number in a similarly mathematical manner rather than a literal string search.

Out of curiosity, I tried something else, searching for $31.2. Excel throws an error saying I shouldn't have symbols in the search string (fair enough). LibreOffice just acts like it can't find what I'm searching for (LO doesn't throw an error, just no reaction to the search request, normal LO behaviour for 'search string not found').

I then went one further and made a simple formula: Adding the contents of two cells together, then searching for the resulting figure in Ctrl+F. No result from Excel, however I get a correct result in LO. For Excel I assume this is the result of the contents of the cells being searched (in this case, the formula is searched rather than the calculated result).

Can someone try all of this in a newer version of Excel and/or another spreadsheet program? I'm just curious.
 

Nashemon

Senior member
Jun 14, 2012
889
86
91
Same result in Excel 2013. I clicked on Options, Format, and chose Currency, and it does the same. I then searched for $31.20, and it says to try changing the search option to "Look in: Values", which I did, and it still couldn't find it no matter how I typed it. I then went back into Format and changed the drop down under Currency, for Symbol, from None, to $. Still didn't find it. Finally changed the "negative numbers" selection to the red colored one in parenthesis, and it found it when I typed 31.20. Great Success!
 

mikeymikec

Lifer
May 19, 2011
17,714
9,592
136
Same result in Excel 2013. I clicked on Options, Format, and chose Currency, and it does the same. I then searched for $31.20, and it says to try changing the search option to "Look in: Values", which I did, and it still couldn't find it no matter how I typed it. I then went back into Format and changed the drop down under Currency, for Symbol, from None, to $. Still didn't find it. Finally changed the "negative numbers" selection to the red colored one in parenthesis, and it found it when I typed 31.20. Great Success!

Sorry, do you mean by changing the cell formatting to the negative + red option it worked by searching for 31.20? Bizarre. Doesn't work in Excel 2007.