Excel Find the Max Value in a column even when?
-
the cell contains both a numerical value "50" and also a text value Such as "Gallons The function is returning 0 because all 600 cells in the column also contain the word"Gallons" Thank you
-
Answer:
3 parts 1. Use Find and Replace, find "Gallons" replace with nothing (leave blank) 2. Make custom format (CTRL+1) select custom then enter #" Gallons" apply to column 3 In a cell enter =MAX(A:A) or whichever column you have used
toms r at Yahoo! Answers Visit the source
Other answers
You'll need to separate the numeric information from the text and place that information into a separate column. If the number is separated from the text by a space then a formula like this will work: =IF(ISNUMBER(A1),A1,VALUE(LEFT(A1,FIND (" ",A1)))) If its not then a beastly array formula like this will separate the numbers out: =1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID (A1,ROW($1:$9),1)),0),COUNT(1*MID (A1,ROW($1:$9),1))) (you have to press ctrl-shift-enter when entering array formulas) Then you can find the max of the new row of data.
Blackened
Use a helper column next to your list with this formula: =VALUE(LEFT(A1, FIND(" ", A1, 1))) This will extract the numbers to the left of " Gallons" so long as they all have a space between them Then just use the max function on the helper column =MAX(B1:B600) Change that to fit your exact range. The array formula from Blackened almost works, just make a slight modification: =1*MID(A1, MATCH(TRUE, ISNUMBER(1*MID(A1, ROW($1:9), 1)), 0), COUNT(1*MID(A1, ROW($1:9), 1))) Note the $'s to make ROW 1 absolute. If this isn't done, it fails if you copy it down due to the row #'s changing, and ROW 1 must remain as ROW 1.
Greg G
Related Q & A:
- How do you find a Yahoo group when you know the exact name of the group?Best solution by Yahoo! Answers
- How can a person even get a credit card when they never had any credit before?Best solution by credit.com
- Why does Yahoo now sign me into chat even when I say No thanks?Best solution by Yahoo! Answers
- How to find the value of a stock?Best solution by Yahoo! Answers
- How would I find the present value of a short position zero coupon bond?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.