How do I get the same VLOOKUP formula in all cells

Woblypegs

New Member
Joined
Apr 16, 2020
Messages
26
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm creating a spreadsheet where I need the formula =IF([@Code]="","",VLOOKUP([@Code],'Class Info'!A2:F300,2,0)) to go in every cell from b2 to b3000. When in either copy and paste or select and drag it changes the values in the formula. Is there a way of stopping this from happening. I need what's written above to be in those 3000 cells as it's written.
As I'm quite new to excel there is the probability that I'm missing something quite simple.

Many Thanks
Wobly
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi and welcome to MrExcel!
How about

=IF([@Code]="","",VLOOKUP([@Code],'Class Info'!$A$2:$F$300,2,0))
 
Upvote 0
Thank you very much DanteAmor I thought it would be something quite simple but just couldn't get it.
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,411
Members
448,894
Latest member
spenstar

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