how do i referance an adjacent cell from a search?

U

UH-60 Crew Chief

i have a table in excell, Column A is the Date of the flight, Column B is the
mode (day, night, NVG) and column C is the number of hours flown.

i need the formula to find the most recent date that i flew night in one
cell and in another cell i need to find the most recent date that i flew NVG.

can anyone help?
 
E

excelent

=INDEX(A1:A30,MATCH(MAX(IF($B$1:$B$30="NVG",$A$1:$A$30,0)),$A$1:$A$30,0))

insert and hit ctrl+shift+enter (array)

"UH-60 Crew Chief" skrev:
 
U

UH-60 Crew Chief

I tried this and in the formula arguement it works perfectly but in the
spread sheet it displays #value.
 
U

UH-60 Crew Chief

Worked great in formula arguement box, but when i hit ctr-shift-enter it
gives the error "Array formulas are not valid in merged cells"
 
G

Gord Dibben

Get rid of the merged cells.

One more reason not to use merged cells............one I never ran across
before.

I'll add it to the long list of problems caused by these.


Gord Dibben MS Excel MVP
 

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