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

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

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

Forum statistics

Threads
1,143,637
Messages
5,719,972
Members
422,253
Latest member
frankie2016tata

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top