vlookup

Phill W

New Member
Joined
Aug 14, 2009
Messages
25
if a cell has a VLOOKUP formular in it, can i lock this cell so I can type in it with affecting the formular ?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Don't you mean that you want to lock the cell so that you can't type in it?
 
Upvote 0
naaa if cell is blank after vlookup, i may want to type a comment in cell, but do not want to loose formular in cell
 
Upvote 0
So why not use the inbuilt Insert Comment functionality of Excel?
 
Upvote 0
Not really, if you type over a cell, its original contents are lost....

You can incorporate a sort of error handling statement into your Vlookup though:

=IF(Vlookup(value,range,offset,false)="","your comment",vlookup(value,range,offset,false))

Both the Vlookup statements are the same, if it returns a "" (blank) value, your text will be displayed instead....

I have used it with "", isna, iserror, its quite effective at removing grubby looking errors off your sheets!
 
Upvote 0
Or you could use a cell reference instead of the "your comment", that way you could type in to the target cell whatever you want displayed that day...
 
Upvote 0
can vlookup, look up 2 cells but search same table ?
Using what logic?

Is it going to be vlookup when cell1 = contents of column B and where cell2 = contents of column C

Or do you mean: vlookup using cell1, but if that fails then do vlookup using cell2

?

If you describe your questions more clearly, it would be a help.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,854
Members
452,948
Latest member
UsmanAli786

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