Google sheets vlookup

gammaves

New Member
Joined
Mar 20, 2017
Messages
28
I have a vlookup in Google Sheets that isn't making sense to me.

=MID(A3,search("(",A3,1)+1,6)
returns 263972

=vlookup(263972,$S$3:$X$158,3,0)
returns the expected result

=vlookup(MID(A3,search("(",A3,1)+1,6),$S$3:$X$158,3,0)
returns N/A. (
Did not find value '263972' in VLOOKUP evaluation.)





Does anybody know why I can't combine the two formulas? Is this just a downside to using Google?

Thanks for your help!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I really can't say a lot about Google sheets, but in Excel, you might have an issue with comparing a text value with a numeric value. Try:

=vlookup(MID(A3,search("(",A3,1)+1,6)+0,$S$3:$X$158,3,0)

The +0 converts a number stored as text into a number.
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,458
Members
452,644
Latest member
gjcase

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