ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do i referance an adjacent cell from a search? (https://www.excelbanter.com/excel-discussion-misc-queries/143148-how-do-i-referance-adjacent-cell-search.html)

UH-60 Crew Chief

how do i referance an adjacent cell from a search?
 
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?

excelent

how do i referance an adjacent cell from a search?
 
=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:

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?


UH-60 Crew Chief[_2_]

how do i referance an adjacent cell from a search?
 
I tried this and in the formula arguement it works perfectly but in the
spread sheet it displays #value.

"excelent" wrote:

=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:

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?


UH-60 Crew Chief[_2_]

how do i referance an adjacent cell from a search?
 
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"

"excelent" wrote:

=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:

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?


Gord Dibben

how do i referance an adjacent cell from a search?
 
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

On Fri, 18 May 2007 06:57:01 -0700, UH-60 Crew Chief
wrote:

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"

"excelent" wrote:

=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:

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?




All times are GMT +1. The time now is 04:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com