quick adjustment needed

jpowell79

Active Member
Joined
Apr 20, 2006
Messages
336
Office Version
  1. 2021
Platform
  1. Windows
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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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 :)
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,144
Members
448,552
Latest member
WORKINGWITHNOLEADER

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
Back
Top