Unable to place VLOOKUP code in address bar for worksheet cell

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,883
Office Version
  1. 2007
Platform
  1. Windows
Please see attached screenshot
I select the cell C20 which is the green one in image.
In the address bar i paste & also typed =IFERROR(VLOOKUP($B20,$F:$H,3,FALSE),"")
but when i the hit enter to have it applied when i click in cell C20 nothing is shown.

I expect to see the type formula there.
Im trying to have the cell populate the text from the yellow cells top right.



EaseUS_2025_01_27_14_42_09.jpg
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
you will only see the formula in the formula bar - in the cell should be the results - in this case a blank as it will produce an error

change to
=VLOOKUP($B20,$F:$H,3,FALSE)
and you should see N/A
 
Upvote 0
Are you sre because the cell to the right is empty.
I click in it & see formula in address bar & cell not have N/A

SEE image so im trying to do the same. without N/A

EaseUS_2025_01_27_14_53_59.jpg
 
Upvote 0
yes , but you have an IFERROR to show a blank if not found
if vlookup cannot find anything it returns N/A , which is the case and because you have an iferror to return a "" - then its blank

either try as i posted and you will get N/A
OR
put somehting in B20 - that is in the list
like
asda
toolstation etc
 
Upvote 0
I make selection in column B
I enter formula in address bar for next column & i see value but formula now gone.

It doesnt do that for the following column
 
Upvote 0
In column A I make selection from drop down box. The selection list is taken from column F

At the time in column D I had the formula to add value in the cell taken from column G

So now I wish to make use of column C to take value from column H

Example.
In the next row in column B I select LOCKING POST OFFICE.

I now expect in the next 2 columns to see 4 & POST PARCEL


This is my issue.
When I put the formula for column C in place then hit enter it’s gone.
 
Upvote 0
i guess we need to see a copy of the spreadsheet to understand, at least i do - other members maybe able to work out from description and image - i'm afraid i cannot
not going to get anything from images
not sure xl2bb will help here anyway


MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
If the formula is being removed, then either code is doing that, or you have a userform with a control linked to that cell.
 
Upvote 0
If the formula is being removed, then either code is doing that, or you have a userform with a control linked to that cell.

Morning.
I removed all the code on that sheet in question.
I then add my Formula & then copied it down the sheet,so far all is fine.
I then put all the code back on that sheet, so far all fine.
So that over come the issue once saved.

My table where the values are taken from are shown below.
The mileage value & formula used works fine.

The cells in column H at present some are empty.

The formula use is =IFERROR(VLOOKUP($B3,$F:$H,3,FALSE),"")

But as we know it will return 0 as nothing was found.

How can the formula be written without IFERROR or what can i do so 0 & N/A isnt entered into the cell, or is that impossible ?

Thansk
 

Attachments

  • EaseUS_2025_01_28_09_32_43.jpg
    EaseUS_2025_01_28_09_32_43.jpg
    21.2 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,226,049
Messages
6,188,567
Members
453,484
Latest member
jlo1673

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