Works if I copy F Col to A Col

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello from Steved

The below formula works ok If I use the lookup reference in A column.

I need this to use the below in F column in stead off A Please.

=IF(ISNA(VLOOKUP(--A7,Sheet2!$A$2:$H$50000,2,FALSE)),"
",VLOOKUP(--A7,Sheet2!$A$2:$H$50000,2,FALSE)).

Thankyou.
 
Could you provide more information on your problem? Are you trying to
copy the formula from column A to F or trying to lookup values in
column F instead of A?
 
Hello From Steved

trying to lookup values in column F instead of A?

What I done was to insert a column in A then copied the F Col to check to
see if the formula would work and it does now i've put the information back
in Column F.
 
The lookup value must be in the first column of the range.

From help on vlookup:

Syntax

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

Lookup_value is the value to be found in the first column of the array.
Lookup_value can be a value, a reference, or a text string.
 
Thanks Carlos I thought this may be the case.

Carlos Antenna said:
The lookup value must be in the first column of the range.

From help on vlookup:

Syntax

VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

Lookup_value is the value to be found in the first column of the array.
Lookup_value can be a value, a reference, or a text string.
 
Then, just use the Index() & Match() combo:

=IF(ISNA(MATCH(--A7,Sheet2!$F$2:$F$50000,0)),"",INDEX(Sheet2!$A$2:$H$50000,M
ATCH(--A7,Sheet2!$F$2:$F$50000,0),2))

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

Thanks Carlos I thought this may be the case.
 
Excellent and Thankyou.

RagDyeR said:
Then, just use the Index() & Match() combo:

=IF(ISNA(MATCH(--A7,Sheet2!$F$2:$F$50000,0)),"",INDEX(Sheet2!$A$2:$H$50000,M
ATCH(--A7,Sheet2!$F$2:$F$50000,0),2))

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

Thanks Carlos I thought this may be the case.
 

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

Back
Top