Vlookup #REF

jdotbonk

New Member
Joined
Feb 26, 2022
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hello All, my formula is working in relation to finding and pulling the correct values/cell I was expecting, but I am getting the below #REF value instead of the actual value I am looking up on the other sheet and expect to see. Is there a formatting issue or could it be something else? Thanks!

example.jpeg
 

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.
The 2nd argument is a single column, but you are telling it to return the 3rd column.
 
Upvote 0
you are using reference columns as B to B
and then say use column 3 - but you are not giving column 3

soi that would need B:D to be reference
as B is the 1st column as first in the range and 3 - is D counting from B

$B$377:$D$20375

which will look down column B and return the matching result from D
 
Upvote 0
you are using reference columns as B to B
and then say use column 3 - but you are not giving column 3

soi that would need B:D to be reference
as B is the 1st column as first in the range and 3 - is D counting from B

$B$377:$D$20375

which will look down column B and return the matching result from D
Thank you. I also have two sheets (Borrow & Loans) and am trying to run a vlookup on the loan sheet to search the whole borrow sheet and bring over any symbols that are the exact same and present on both. Is there a way to do this without getting an error?

loan sheet:
loans.jpeg



borrow sheet:
borrow .jpeg
 

Attachments

  • loan .jpeg
    loan .jpeg
    72.3 KB · Views: 4
Upvote 0
images are too small for me to see

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

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
images are too small for me to see

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

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
Sorry, including example below. Thanks!

#1 loan sheet: trying to use vlookup in column E to search the security link in column B on the borrow sheet
#Security LinkSymbolContract IDCross vlookup
982987654321AAPL:US380295778#N/A
458987654321DIS:US380295851#N/A
637987654321MSFT:US380295685#N/A
534123456789DRL:US380295783#N/A
123123456789SPY:US580295783#N/A
456123456789CPC:US680295783#N/A
789123456789SOXX:US480295783#N/A

#2 borrow sheet: if the security link on the loan sheet is present in the borrow sheet table searched, i need the security link to populate back on the loan sheet lookup column so i know which ones are on both.
#Security LinkSymbolContract ID
982987654321AAPL:US380295778
657123784596TBT:US380295851
238123784596MSFT:US380295685
534123456789DRL:US380295783
123123456789SPY:US580295783
456123456789CPC:US680295783
789123456789SOXX:US480295783
 
Upvote 0
you could just use a countif()
bit if you want to pull across the same number
vlookup() or index/match or xlookup

=VLOOKUP(B2,borrow!$B$2:$B$100,1,FALSE)

BUT that is just looking for the key and will not matter where it finds it in the column
if not found then a n/a will be returned
BUT does it need to also match another field at all

LOAN
Book15
ABCDE
1#Security LinkSymbolContract IDCross vlookup
2982987654321AAPL:US380295778987654321
3458987654321DIS:US380295851987654321
4637987654321MSFT:US380295685987654321
5534123456789DRL:US380295783123456789
6123123456789SPY:US580295783123456789
7456123456789CPC:US680295783123456789
8789123456789SOXX:US480295783123456789
loan
Cell Formulas
RangeFormula
E2:E8E2=VLOOKUP(B2,borrow!$B$2:$B$100,1,FALSE)


BORROW
Book15
ABCD
1#Security LinkSymbolContract ID
29829.88E+08AAPL:US3.8E+08
36571.24E+08TBT:US3.8E+08
42381.24E+08MSFT:US3.8E+08
55341.23E+08DRL:US3.8E+08
61231.23E+08SPY:US5.8E+08
74561.23E+08CPC:US6.8E+08
87891.23E+08SOXX:US4.8E+08
borrow



on a share dropbox- ONLY will be on for a few days
 
Upvote 0

Forum statistics

Threads
1,215,143
Messages
6,123,277
Members
449,093
Latest member
Vincent Khandagale

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