Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-05-2014, 08:16 PM
excelledsoftware excelledsoftware is offline VLook up search Windows 7 64bit VLook up search Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

The Vlookup can be combined with other formulas but not for ranges so if I understand right this can be done in 1 of 2 ways.
VBA or making another column of data to make the vlookup work.

Since we are on the Excel forum I will show you how you can do this by making another column.

On Tab 1 you will need to insert a column to the left of A. This will push your original data to column B. Now write the formula in cell A2
Code:
=MID(B2,18,5)+0
and drag that all the way down. Now this is assuming that all of your employee numbers are 5 characters. It that is not the case it is certainly possible to write a combination of mid and search formulas to extract out the number but I personally would just do it in VBA.

After you have this column you can then use your vlookup to pull the data that you need. Remember the + 0 so can you convert the mid text value into a number or the vlookup will not work.


If anyone has a different approach to do this with formulas I would love to see it since I've already done quite a few experiments to grab it and they havent worked.

Thanks
Reply With Quote
 

Tags
vlookup



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search for date and then apply mutliple search criteria in huge dataset maxtymo Excel 2 12-01-2013 04:52 AM
Looking for Windows Search app with ability to search by content gopher_everett Office 1 02-28-2013 09:23 PM
VLook up search AND/OR/NOT-search joblo108 Excel 3 09-09-2011 04:23 AM
Instant Search's "Display search results as I type when possible" with Exchange lwc Outlook 0 06-01-2011 01:56 AM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft