View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
-Rocket -Rocket is offline
external usenet poster
 
Posts: 6
Default MAX & MAXA returning 0 value

So... despite formatting the cells as numbers, the mid function overrides it
as text.

Solution: value(mid(a1, 5, 2))
Where a1 is the original text cell, 5 is the first letter in the text to
copy, and 2 is the # of letters to copy.


"-Rocket" wrote:

I am trying to simply get the highest value in a column.

I have tried both MAX & MAXA functions, as well as ensured the values are
formatted as a number (although maxa doesn't seem to require this).

The values in the column are derived from another via the mid text function,
but the cells are in fact formatted as numbers.

There are 300 rows evaluated in the formula, but even when I try just 3
values, I still get the same 0 answer. I've also done the "show precedents"
arrows, and I am evaluating the correct ranges. I've even checked that I have
automatic calculation enabled. No error messages are coming up.

Any help is appreciated.