The following:
=IFERROR(VLOOKUP(Master!C3,Admin!J:K,2,FALSE),"")
Uses the sheet "Master" in the formula.Can this be changed to use "ThisWorksheet" or whatever sheet the formula is on?
So if the worksheet is duplicated, copied the formula looks on the current worksheet.
Cheers
VLookup
-
- Administrator
- Posts: 78463
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: VLookup
Simply omit the reference to the worksheet:
=IFERROR(VLOOKUP(C3,Admin!J:K,2,FALSE),"")
=IFERROR(VLOOKUP(C3,Admin!J:K,2,FALSE),"")
Best wishes,
Hans
Hans
-
- SilverLounger
- Posts: 1728
- Joined: 25 Jan 2010, 08:34
- Location: Stoke on Trent - Staffordshire - England
-
- SilverLounger
- Posts: 1728
- Joined: 25 Jan 2010, 08:34
- Location: Stoke on Trent - Staffordshire - England
Re: VLookup
Its not a good day today...
In one cell, I'm adding the formula as above and I see a result instead of the formula.
I've checked the properties of the column cells, they are "General" and have selected the "Show Formulas" from the ribbon.
All I see once I've entered the formula is the result, if I copy the cell down using the handle the result shows in all cells..
Once I enter the formula in the cell and press return the result shows, when I select the cell again and expect to see the formula in the formula bar I only see the result.
If I enter the formula in a new column or cell it is fine.
Is there a setting preventing me from fixing this?
In one cell, I'm adding the formula as above and I see a result instead of the formula.
I've checked the properties of the column cells, they are "General" and have selected the "Show Formulas" from the ribbon.
All I see once I've entered the formula is the result, if I copy the cell down using the handle the result shows in all cells..
Once I enter the formula in the cell and press return the result shows, when I select the cell again and expect to see the formula in the formula bar I only see the result.
If I enter the formula in a new column or cell it is fine.
Is there a setting preventing me from fixing this?
Cheers ...
Dave.
Dave.
-
- Administrator
- Posts: 78463
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: VLookup
If you have turned on "Show Formulas", you'll see formulas instead of results of course.
If a cell has been formatted as Text, anything you enter into it will be displayed as entered, including formulas.
If a formula spontaneously changes to its result, there might be code that causes this problem, or an add-in.
If a cell has been formatted as Text, anything you enter into it will be displayed as entered, including formulas.
If a formula spontaneously changes to its result, there might be code that causes this problem, or an add-in.
Best wishes,
Hans
Hans
-
- SilverLounger
- Posts: 1728
- Joined: 25 Jan 2010, 08:34
- Location: Stoke on Trent - Staffordshire - England
Re: VLookup
Got it, its this:
As the G column is the problem!!
Pheww !!!!!
Thanks
Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Intersect(Target, Range("G3:G23")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target.Value = UCase(Target.Value)
Application.EnableEvents = True
End Sub
Pheww !!!!!
Thanks
Cheers ...
Dave.
Dave.
-
- Administrator
- Posts: 78463
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands