ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Cross referencing (https://www.excelbanter.com/excel-worksheet-functions/167754-cross-referencing.html)

Mervyn Edwards

Cross referencing
 
I am trying to pull the information from the cell at the intersection between
a particular row and column. The identifier for which row and column needs to
come from an input value. I have tried various incarnations of vlookup and
hlookup with match, but cannot get a result.

Example: Input Values would be 200 and FL310 to establish an answer of 177

FL300 FL310 FL320
100 180 178 176
200 179 177 175
300 175 174 172

Any help would be much appreciated.

Mike H

Cross referencing
 
Mervyn

Maybe:-
Col A B C D
FL300 FL310 FL320
100 180 178 176
200 179 177 175
300 175 174 172


=SUMPRODUCT((A2:A4=F1)*(B1:D1=F2)*(B2:D4))

Where f1 & F2 are your 2 input values.

Mike
"Mervyn Edwards" wrote:

I am trying to pull the information from the cell at the intersection between
a particular row and column. The identifier for which row and column needs to
come from an input value. I have tried various incarnations of vlookup and
hlookup with match, but cannot get a result.

Example: Input Values would be 200 and FL310 to establish an answer of 177

FL300 FL310 FL320
100 180 178 176
200 179 177 175
300 175 174 172

Any help would be much appreciated.


Teethless mama

Cross referencing
 
Criterias
F1: holds 200
F2: holds FL310

Pick any one of these formulas will do the trick

=INDEX(A1:D4,MATCH(F1,A1:A4,0),MATCH(F2,A1:D1,0))
or
=HLOOKUP(F2,A1:D4,MATCH(F1,A1:A4,0),0)
or
=VLOOKUP(F1,A1:D4,MATCH(F2,A1:D1,0),0)


"Mervyn Edwards" wrote:

I am trying to pull the information from the cell at the intersection between
a particular row and column. The identifier for which row and column needs to
come from an input value. I have tried various incarnations of vlookup and
hlookup with match, but cannot get a result.

Example: Input Values would be 200 and FL310 to establish an answer of 177

FL300 FL310 FL320
100 180 178 176
200 179 177 175
300 175 174 172

Any help would be much appreciated.


Mervyn Edwards

Cross referencing
 
Hi,

This example is exactly how I was trying to get v and hlookup to work, but I
always receive an error saying "value not available". I have looked at what
can cause the error but none of the suggested reasons exist on the
spreadsheet. Weird!

Thanks
Mervyn

"Teethless mama" wrote:

Criterias
F1: holds 200
F2: holds FL310

Pick any one of these formulas will do the trick

=INDEX(A1:D4,MATCH(F1,A1:A4,0),MATCH(F2,A1:D1,0))
or
=HLOOKUP(F2,A1:D4,MATCH(F1,A1:A4,0),0)
or
=VLOOKUP(F1,A1:D4,MATCH(F2,A1:D1,0),0)


"Mervyn Edwards" wrote:

I am trying to pull the information from the cell at the intersection between
a particular row and column. The identifier for which row and column needs to
come from an input value. I have tried various incarnations of vlookup and
hlookup with match, but cannot get a result.

Example: Input Values would be 200 and FL310 to establish an answer of 177

FL300 FL310 FL320
100 180 178 176
200 179 177 175
300 175 174 172

Any help would be much appreciated.


Stephen[_2_]

Cross referencing
 
These formulas all work for me. The usual reason for such formulas
apparently not working is different types for lookup value and table data.
In the example below, the 200 in cell F1 and the 200 in cell A3 must both be
numbers or both text. If one is a number and the other text you will get
#N/A. You can test for this with these formulas (in spare cells somewhere):
=ISTEXT(F1)
=ISTEXT(A3)

"Mervyn Edwards" wrote in message
...
Hi,

This example is exactly how I was trying to get v and hlookup to work, but
I
always receive an error saying "value not available". I have looked at
what
can cause the error but none of the suggested reasons exist on the
spreadsheet. Weird!

Thanks
Mervyn

"Teethless mama" wrote:

Criterias
F1: holds 200
F2: holds FL310

Pick any one of these formulas will do the trick

=INDEX(A1:D4,MATCH(F1,A1:A4,0),MATCH(F2,A1:D1,0))
or
=HLOOKUP(F2,A1:D4,MATCH(F1,A1:A4,0),0)
or
=VLOOKUP(F1,A1:D4,MATCH(F2,A1:D1,0),0)


"Mervyn Edwards" wrote:

I am trying to pull the information from the cell at the intersection
between
a particular row and column. The identifier for which row and column
needs to
come from an input value. I have tried various incarnations of vlookup
and
hlookup with match, but cannot get a result.

Example: Input Values would be 200 and FL310 to establish an answer of
177

FL300 FL310 FL320
100 180 178 176
200 179 177 175
300 175 174 172

Any help would be much appreciated.




Mervyn Edwards

Cross referencing
 
Thanks for the confirmation. This is really weird as I have checked all cells
that are referenced and they are all formatted as number, with no decimal
places. I changed the title row to numbers also i.e. 300, 310 & 320 but I am
still getting the "value not available" error with #N/A. I have also checked
there are values in each cell that is referenced.

Any ideas please.

Regards
Mervyn

"Stephen" wrote:

These formulas all work for me. The usual reason for such formulas
apparently not working is different types for lookup value and table data.
In the example below, the 200 in cell F1 and the 200 in cell A3 must both be
numbers or both text. If one is a number and the other text you will get
#N/A. You can test for this with these formulas (in spare cells somewhere):
=ISTEXT(F1)
=ISTEXT(A3)

"Mervyn Edwards" wrote in message
...
Hi,

This example is exactly how I was trying to get v and hlookup to work, but
I
always receive an error saying "value not available". I have looked at
what
can cause the error but none of the suggested reasons exist on the
spreadsheet. Weird!

Thanks
Mervyn

"Teethless mama" wrote:

Criterias
F1: holds 200
F2: holds FL310

Pick any one of these formulas will do the trick

=INDEX(A1:D4,MATCH(F1,A1:A4,0),MATCH(F2,A1:D1,0))
or
=HLOOKUP(F2,A1:D4,MATCH(F1,A1:A4,0),0)
or
=VLOOKUP(F1,A1:D4,MATCH(F2,A1:D1,0),0)


"Mervyn Edwards" wrote:

I am trying to pull the information from the cell at the intersection
between
a particular row and column. The identifier for which row and column
needs to
come from an input value. I have tried various incarnations of vlookup
and
hlookup with match, but cannot get a result.

Example: Input Values would be 200 and FL310 to establish an answer of
177

FL300 FL310 FL320
100 180 178 176
200 179 177 175
300 175 174 172

Any help would be much appreciated.






All times are GMT +1. The time now is 04:08 PM.

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