Drag formula question

Spraggs

Well-known Member
Joined
Jan 19, 2007
Messages
704
Evening All,
Am I missing something here ?

I've got a simple VLOOKUP in cell B2...
=VLOOKUP($A2,Sheet4!$A$2:$BB$92,2,FALSE)

I now want to drag this formula across to column BB and then down to row 135.
The LOOKUP value is always column A (row to suit Table array) but the column index number needs to change with formula.

Q. How can I do this ?

Many Thanks Jase
 

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.
Jonmo 1,
That's great, just one issue....
How do I avoid #N/A ?

When I use VLOOKUP I get away with like...
Example.
=IF(ISNA(VLOOKUP(C4,Sheet1,2,FALSE)),"", VLOOKUP(C4,Sheet1,2,FALSE))

Thanks
 
Upvote 0
The same way...
But it's easier with Index/Match, you only have to test the Match part, not the whole formula...

Try

=If(ISNA(MATCH($A2,Sheet4!$A$2:$A$92,0)),"",INDEX(Sheet4!B$2:B$92,MATCH($A2,Sheet4!$A$2:$A$92,0)))
 
Upvote 0
Actually, for performance purposes since this formula is being repeated so many times...

Put the match in an available column (say column BC)

In BC2 and filled down put
=MATCH($A2,Sheet4!$A$2:$A$92,0))

Then your formula in B2 and Filled Right/Down is

=If(ISNA($BC2),"",INDEX(Sheet4!B$2:B$92,$BC2))

This will reduce the amount of calculations tremendousely.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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