find largest number

K

kevin carter

hi,
i have a spreadsheet containing 2 grids of data relating to an op
the grid range for grid1 is B6:bb56

grid 2 is B64:BB113

in a third grid i have this formula

(MAX(VLOOKUP($B$6,R6:R56,2,FALSE),VLOOKUP($B$64,R64:R113,2,FALSE))),0)



i am trying to search a column for a fault ie op 10 which is in colulm
B in both grids,
when i find the match in both grids i want to look at a range of
cells and compare
the values in the cells and return the largest


any ideas

thanks

kevin
 
B

Bob Phillips

Isn't it just

=MAX(VLOOKUP($10,B6:C56,2,FALSE),VLOOKUP(10,B64:C113,2,FALSE),0)
 
K

kevin carter

thanks for reply
i tried the fomula below
it errors on the dollar sign
if i remove the dollar it returns N?A
 
P

Pete_UK

It might be that the 10 you are looking for is actually a text value
in your grids (most people call them tables) - try it like this:

=MAX(VLOOKUP("10",B6:C56,2,FALSE),VLOOKUP("10",B64:C113,2,FALSE),0)

Hope this helps.

Pete
 
K

kevin carter

thanks bob
but will that formula work when the text is in column be and the
numeric valus in column S or any column up to bb?
 
K

kevin carter

sorry pete sent reply
thanks bob
but will that formula work when the text is in column be and the
numeric valus in column S or any column up to bb?




- Show quoted text -
 
B

Bob Phillips

sorry, my typo

--
__________________________________
HTH

Bob

thanks for reply
i tried the fomula below
it errors on the dollar sign
if i remove the dollar it returns N?A
 
K

kevin carter

I may not have explained correctly
i have a two tables of data table 1 B6:bb56
table 2 B64:bb113
the op numbers are in column B
the numeric values are in columns c to bb
the formula provided works fine with column C
but fails on columns D to BB
How do i modify to formula to find the op in column b and compare the
values in columns c then columns d etc..

thanks

kevin
 
B

Bob Phillips

Try this

=MAX(INDEX(C6:BB56,MATCH(lookup_val,B6:B56,0),0),INDEX(C64:BB113,MATCH(lookup_val,B64:B113,0),0))
 
K

kevin carter

Try this

=MAX(INDEX(C6:BB56,MATCH(lookup_val,B6:B56,0),0),INDEX(C64:BB113,MATCH(look­up_val,B64:B113,0),0))

--
__________________________________
HTH

Bob
Thanks Bob
Works a treat

one question
how can i stop N/A if the op is not in one of the tables
i tried iserror but i am failing

thanks
kevin
 
B

Bob Phillips

If all values are positive, try

=MAX(IF(ISNUMBER(MATCH(lookup_val,B6:B56,0)),INDEX(C6:BB56,MATCH(lookup_val,B6:B56,0),0),0),
IF(ISNUMBER(MATCH(lookup_val,B64:B113,0)),INDEX(C64:BB113,MATCH(lookup_val,B64:B113,0),0),0))

--
__________________________________
HTH

Bob

Try this

=MAX(INDEX(C6:BB56,MATCH(lookup_val,B6:B56,0),0),INDEX(C64:BB113,MATCH(look­up_val,B64:B113,0),0))

--
__________________________________
HTH

Bob
Thanks Bob
Works a treat

one question
how can i stop N/A if the op is not in one of the tables
i tried iserror but i am failing

thanks
kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top