quick adjustment needed

jpowell79

Active Member
Joined
Apr 20, 2006
Messages
331
Hi guys,

I have the following formula which matches values from an adjacent column, but need it to look at a different column

The formula is

Code:
=IF(ISNUMBER(MATCH(B22,INDIRECT("'query"&B24&"'!A1:A100"),0)),VLOOKUP(B22,INDIRECT("'query"&B24&"'!a1:b100"),2,0),"")

It looks at column A and finds the value in adjacent column B....can anyone tell me how I adjust this to match the adjacent column F instead of B??

I thought it was just a case of changing the bit at the end from a1:b100 to a1:f100, but this makes no difference??

Any ideas?

thanks :)
 

Some videos you may like

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

jpowell79

Active Member
Joined
Apr 20, 2006
Messages
331
not to worry,

figured it out now.... changed the end bit to 6 instead of 2 then the b100 to f100 and it works now :)
 

Watch MrExcel Video

Forum statistics

Threads
1,113,953
Messages
5,545,148
Members
410,666
Latest member
Al3cs
Top