ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Indirect or Vlookup or what.... (https://www.excelbanter.com/excel-discussion-misc-queries/87037-indirect-vlookup-what.html)

Jambruins

Indirect or Vlookup or what....
 
In a tab called WEEKEND I have the following:
cell Q2: LAA
cell R2: 38845-LAA
cell Q4: ATL
cell R4: 38845-ATL

In a tab called LAA:
cell S2: 38810-LAA
cell S3: 38811-LAA
cell S4: 38812-LAA
etc. all the way down to S163

Another tab call ATL has the same type of data as the LAA tab.

I would like a formula in cell S2 in the WEEKEND tab to do the following:
Find the value of cell R2 in column S of the LAA tab and enter Yes if the
corresponding cell in column B in the LAA tab says AWAY. I would then like
to be able to copy this formula into cell S4 to do the same thing but with
the ATL tab.

Let me know if you don't understand what I am asking and I will try and
explain. Thanks in advance.



Barb Reinhardt

Indirect or Vlookup or what....
 
Look at the INDEX function.

"Jambruins" wrote:

In a tab called WEEKEND I have the following:
cell Q2: LAA
cell R2: 38845-LAA
cell Q4: ATL
cell R4: 38845-ATL

In a tab called LAA:
cell S2: 38810-LAA
cell S3: 38811-LAA
cell S4: 38812-LAA
etc. all the way down to S163

Another tab call ATL has the same type of data as the LAA tab.

I would like a formula in cell S2 in the WEEKEND tab to do the following:
Find the value of cell R2 in column S of the LAA tab and enter Yes if the
corresponding cell in column B in the LAA tab says AWAY. I would then like
to be able to copy this formula into cell S4 to do the same thing but with
the ATL tab.

Let me know if you don't understand what I am asking and I will try and
explain. Thanks in advance.



galimi

Indirect or Vlookup or what....
 
The following formula should work

=IF(INDEX(LAA!$B$2:$B$170,MATCH(R2,LAA!$S$2:$S$170 ,0))="Away","Yes","No")


--
http://HelpExcel.com
1-888-INGENIO
1-888-464-3646
x0197758


"Jambruins" wrote:

In a tab called WEEKEND I have the following:
cell Q2: LAA
cell R2: 38845-LAA
cell Q4: ATL
cell R4: 38845-ATL

In a tab called LAA:
cell S2: 38810-LAA
cell S3: 38811-LAA
cell S4: 38812-LAA
etc. all the way down to S163

Another tab call ATL has the same type of data as the LAA tab.

I would like a formula in cell S2 in the WEEKEND tab to do the following:
Find the value of cell R2 in column S of the LAA tab and enter Yes if the
corresponding cell in column B in the LAA tab says AWAY. I would then like
to be able to copy this formula into cell S4 to do the same thing but with
the ATL tab.

Let me know if you don't understand what I am asking and I will try and
explain. Thanks in advance.



Jambruins

Indirect or Vlookup or what....
 
galimi, that works but I want to be able to copy it down so it works in cell
S4 which would look in the ATL tab. I need the formula to look into the tab
that corresponds with what is in cell Q. Thanks for the help.

"galimi" wrote:

The following formula should work

=IF(INDEX(LAA!$B$2:$B$170,MATCH(R2,LAA!$S$2:$S$170 ,0))="Away","Yes","No")


--
http://HelpExcel.com
1-888-INGENIO
1-888-464-3646
x0197758


"Jambruins" wrote:

In a tab called WEEKEND I have the following:
cell Q2: LAA
cell R2: 38845-LAA
cell Q4: ATL
cell R4: 38845-ATL

In a tab called LAA:
cell S2: 38810-LAA
cell S3: 38811-LAA
cell S4: 38812-LAA
etc. all the way down to S163

Another tab call ATL has the same type of data as the LAA tab.

I would like a formula in cell S2 in the WEEKEND tab to do the following:
Find the value of cell R2 in column S of the LAA tab and enter Yes if the
corresponding cell in column B in the LAA tab says AWAY. I would then like
to be able to copy this formula into cell S4 to do the same thing but with
the ATL tab.

Let me know if you don't understand what I am asking and I will try and
explain. Thanks in advance.




All times are GMT +1. The time now is 07:06 AM.

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