What function do I use in order to...

plahen

New Member
Joined
Nov 3, 2004
Messages
17
In column H I have a list of 15 values in random order

In column B I have a list of 15 values in random order

This spreadsheet is locked

Here is the question

I want to take the maximum value in column H and return the value from teh same row in column B into another spreadsheet.

Thanks in advance
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

hayden

Board Regular
Joined
Sep 23, 2005
Messages
159
I think you could use a vlookup comand for this.

The syntax of vlookup is vlookup(lookup_value,table_array,col_index_num,range_lookup)

Lookup value would be max(range in col H)
Table Array would be range a1:h15 assuming that your data was in the frist 15 rows.
col_index _num would be 2 (i.e. b)
range lookup can be left out, or can be set to false. I would suggest reading the help on the vlookup command for more on this.

The one thing I don't know is if you can still get values even though the sheet is locked.

Good Luck

Hayden
 

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
How's this:

=INDEX(Sheet1!$B$1:$B$15,MATCH(MAX(Sheet1!$H$1:$H$15),Sheet1!$H$1:$H$15,0),0)

HTH,

Smitty
 

Forum statistics

Threads
1,141,924
Messages
5,709,372
Members
421,633
Latest member
Ubergribbler

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top