A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MAX & MAXA returning 0 value



 
 
Thread Tools Display Modes
  #1  
Old March 19th, 2007, 03:52 PM posted to microsoft.public.excel.misc
-Rocket
external usenet poster
 
Posts: 6
Default MAX & MAXA returning 0 value

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.


  #2  
Old March 19th, 2007, 04:05 PM posted to microsoft.public.excel.misc
-Rocket
external usenet poster
 
Posts: 6
Default MAX & MAXA returning 0 value

Totally mystified...

I type a number into a cell, and another number in the cell below.
I type max(a1, a2).
I get an answer of 0.

"-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.


  #3  
Old March 19th, 2007, 04:05 PM posted to microsoft.public.excel.misc
bj
external usenet poster
 
Posts: 1,451
Default MAX & MAXA returning 0 value

just because the cells are formatted as numbers, does not mean the contents
are numbers even if they look like it

in your equations using mid()
change to =value(mid(xxx))
"-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.


  #4  
Old March 19th, 2007, 04:17 PM posted to microsoft.public.excel.misc
-Rocket
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.


  #5  
Old March 19th, 2007, 05:28 PM posted to microsoft.public.excel.misc
bj
external usenet poster
 
Posts: 1,451
Default MAX & MAXA returning 0 value

should work. I am personally disapointed in the description of Maxa. it is
easy to imply that it would look at "2" and read it as 2 rather than 0

"-Rocket" wrote:

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.


  #6  
Old March 19th, 2007, 05:30 PM posted to microsoft.public.excel.misc
bj
external usenet poster
 
Posts: 1,451
Default MAX & MAXA returning 0 value

if there is a chance that there would be a leading or trailing space in your
mid function use
=value(trim(mid(a1, 5, 2)))

"-Rocket" wrote:

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.


  #7  
Old March 19th, 2007, 05:31 PM posted to microsoft.public.excel.misc
-Rocket
external usenet poster
 
Posts: 6
Default MAX & MAXA returning 0 value

Many thanks!

"bj" wrote:

should work. I am personally disapointed in the description of Maxa. it is
easy to imply that it would look at "2" and read it as 2 rather than 0

"-Rocket" wrote:

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.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.