close

Hello,

I have a column (col A) with numbers (formatted as text) which are normally
in sequential series order from 1 to 3150 (but growing every day).
Sometimes, I have to sort the spreadsheet based on an another columns
criteria, and consequently the order from the first column A is not in
sequence anymore. When I run the =MAX(A2:A3151), it returns 3145, which as I
have just discovered, is missing in the series. Nonetheless, it should have
identified 3150 as the highest number, right?

Or does the fact that the 3145 value is missing from the selection set have
to do anything?

I then copied to column over, changed the format to General, and the MAX
returned the same result, 3145, no difference.

Just to see if there was a problem with Excel, I then ran the MAX function
on a new blank spreadsheet with some test values, and it worked. When that
worked, I inserted a new column (B) in the spreadsheet that is giving
trouble, and inserted some random values, ran the MAX function, and it works.
And they are not in sequence, nor are they contigous.

Any idea why this is happening?I would have thought it would be to do with the formatting as text. Format as
Number and run the formula again. Also I would retype the figure 3150 again
just in case!
--
Rae Drysdalequot;Philquot; wrote:

gt; Hello,
gt;
gt; I have a column (col A) with numbers (formatted as text) which are normally
gt; in sequential series order from 1 to 3150 (but growing every day).
gt; Sometimes, I have to sort the spreadsheet based on an another columns
gt; criteria, and consequently the order from the first column A is not in
gt; sequence anymore. When I run the =MAX(A2:A3151), it returns 3145, which as I
gt; have just discovered, is missing in the series. Nonetheless, it should have
gt; identified 3150 as the highest number, right?
gt;
gt; Or does the fact that the 3145 value is missing from the selection set have
gt; to do anything?
gt;
gt; I then copied to column over, changed the format to General, and the MAX
gt; returned the same result, 3145, no difference.
gt;
gt; Just to see if there was a problem with Excel, I then ran the MAX function
gt; on a new blank spreadsheet with some test values, and it worked. When that
gt; worked, I inserted a new column (B) in the spreadsheet that is giving
gt; trouble, and inserted some random values, ran the MAX function, and it works.
gt; And they are not in sequence, nor are they contigous.
gt;
gt; Any idea why this is happening?
gt;

Rae,

Nope. Neither one of your suggestions panned out. Very strange.quot;Rae Drysdalequot; wrote:

gt; I would have thought it would be to do with the formatting as text. Format as
gt; Number and run the formula again. Also I would retype the figure 3150 again
gt; just in case!
gt; --
gt; Rae Drysdale
gt;
gt;
gt; quot;Philquot; wrote:
gt;
gt; gt; Hello,
gt; gt;
gt; gt; I have a column (col A) with numbers (formatted as text) which are normally
gt; gt; in sequential series order from 1 to 3150 (but growing every day).
gt; gt; Sometimes, I have to sort the spreadsheet based on an another columns
gt; gt; criteria, and consequently the order from the first column A is not in
gt; gt; sequence anymore. When I run the =MAX(A2:A3151), it returns 3145, which as I
gt; gt; have just discovered, is missing in the series. Nonetheless, it should have
gt; gt; identified 3150 as the highest number, right?
gt; gt;
gt; gt; Or does the fact that the 3145 value is missing from the selection set have
gt; gt; to do anything?
gt; gt;
gt; gt; I then copied to column over, changed the format to General, and the MAX
gt; gt; returned the same result, 3145, no difference.
gt; gt;
gt; gt; Just to see if there was a problem with Excel, I then ran the MAX function
gt; gt; on a new blank spreadsheet with some test values, and it worked. When that
gt; gt; worked, I inserted a new column (B) in the spreadsheet that is giving
gt; gt; trouble, and inserted some random values, ran the MAX function, and it works.
gt; gt; And they are not in sequence, nor are they contigous.
gt; gt;
gt; gt; Any idea why this is happening?
gt; gt;

That is a strange one. MAX should not return a value that doesn't exist.
Here's a test you can try. Do an Edit--gt;Find for the value 3145 and see if
anything shows up.

When you say all of your numbers are formatted as text, did you do this by
changing the cell format, or were the numbers entered with an apostrophe?
The apostrophe forces Excel to treat the cell contents as text regarless of
cell formatting. Thus, the MAX function would ignore these values. This
also happens sometimes when data is imported from other applications. The
apostrophe would only be visible in the formula bar, not the cell.

HTH,
Elkar

quot;Philquot; wrote:

gt; Hello,
gt;
gt; I have a column (col A) with numbers (formatted as text) which are normally
gt; in sequential series order from 1 to 3150 (but growing every day).
gt; Sometimes, I have to sort the spreadsheet based on an another columns
gt; criteria, and consequently the order from the first column A is not in
gt; sequence anymore. When I run the =MAX(A2:A3151), it returns 3145, which as I
gt; have just discovered, is missing in the series. Nonetheless, it should have
gt; identified 3150 as the highest number, right?
gt;
gt; Or does the fact that the 3145 value is missing from the selection set have
gt; to do anything?
gt;
gt; I then copied to column over, changed the format to General, and the MAX
gt; returned the same result, 3145, no difference.
gt;
gt; Just to see if there was a problem with Excel, I then ran the MAX function
gt; on a new blank spreadsheet with some test values, and it worked. When that
gt; worked, I inserted a new column (B) in the spreadsheet that is giving
gt; trouble, and inserted some random values, ran the MAX function, and it works.
gt; And they are not in sequence, nor are they contigous.
gt;
gt; Any idea why this is happening?
gt;

Elkar,

Turns out the 3145 was there. But get this. BEFORE, I found it (the 3145),
I thought I would just quot;createquot; a new 3145 entry, which I did. Then I did a
search (don't ask me why I didn't see it before - I just don't really know),
and found TWO 3145 entries; the original one that was there ALL of the time,
and the quot;newquot; one that I just put it. Realizing this, I deleted the quot;newquot;
one, leaving the original one in.

Then, I ran MAX again, and now it returns 3144! NOT 3145!

BTW, I DID check to see if there WERE any leading apostrophes (which I was
pretty sure there weren't).

Then I had an idea. Why not insert a new column next to A, then quot;recreatequot;
the index (that's what it really is meant to be) using fill, w/ series, which
I did. Then I ran the MAX function, and it works now. The last value is NOW
3150!

Oh well. Sorry to waste all you people's busy time!

Have a good weekend!

Phil.

quot;Elkarquot; wrote:

gt; That is a strange one. MAX should not return a value that doesn't exist.
gt; Here's a test you can try. Do an Edit--gt;Find for the value 3145 and see if
gt; anything shows up.
gt;
gt; When you say all of your numbers are formatted as text, did you do this by
gt; changing the cell format, or were the numbers entered with an apostrophe?
gt; The apostrophe forces Excel to treat the cell contents as text regarless of
gt; cell formatting. Thus, the MAX function would ignore these values. This
gt; also happens sometimes when data is imported from other applications. The
gt; apostrophe would only be visible in the formula bar, not the cell.
gt;
gt; HTH,
gt; Elkar
gt;
gt;
gt;
gt;
gt; quot;Philquot; wrote:
gt;
gt; gt; Hello,
gt; gt;
gt; gt; I have a column (col A) with numbers (formatted as text) which are normally
gt; gt; in sequential series order from 1 to 3150 (but growing every day).
gt; gt; Sometimes, I have to sort the spreadsheet based on an another columns
gt; gt; criteria, and consequently the order from the first column A is not in
gt; gt; sequence anymore. When I run the =MAX(A2:A3151), it returns 3145, which as I
gt; gt; have just discovered, is missing in the series. Nonetheless, it should have
gt; gt; identified 3150 as the highest number, right?
gt; gt;
gt; gt; Or does the fact that the 3145 value is missing from the selection set have
gt; gt; to do anything?
gt; gt;
gt; gt; I then copied to column over, changed the format to General, and the MAX
gt; gt; returned the same result, 3145, no difference.
gt; gt;
gt; gt; Just to see if there was a problem with Excel, I then ran the MAX function
gt; gt; on a new blank spreadsheet with some test values, and it worked. When that
gt; gt; worked, I inserted a new column (B) in the spreadsheet that is giving
gt; gt; trouble, and inserted some random values, ran the MAX function, and it works.
gt; gt; And they are not in sequence, nor are they contigous.
gt; gt;
gt; gt; Any idea why this is happening?
gt; gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()