if match enter info in another cell

SDKBRK

Board Regular
Joined
Feb 1, 2003
Messages
162
I want to know how to enter a formula or what formula do I use.

I have database and in the first column is the FILE#, 2nd column CITY, 3rd column DRIVERS NAME.

This is what I need as a formula.

In a different worksheet in cell A1 I type the FILE#, in cell B2 I want a formula that will lookup the FILE# and put the DRIVERS NAME that matches the FILE# that is in my database.

EXAMPLE DATABASE
A B C
1 File # DESTINATION EMPLOYEE NAME
2 001 Murfeesboro, TN Dana Jeanes
3 002 Nashville, TN Jack Salmon
4 003 Murfeesboro, TN Steve Ledford


This is the other worksheet. Need the formula in

driver name: formula
file number: 001


Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
This is a perfect candidate for VLOOKUP:

=VLOOKUP(A1,Sheet1!A1:C100,3,FALSE)

Assuming that your database is in a sheet named "Sheet1". Adjust the lookup range as needed.
 
Last edited:
Upvote 0
Excel Workbook
ABC
1File #DESTINATIONEMPLOYEE NAME
2001Murfeesboro, TNDana Jeanes
3002Nashville, TNJack Salmon
4003Murfeesboro, TNSteve Ledford
Sheet1
Excel 2007
Excel Workbook
AB
1002
2Jack Salmon
Sheet2
Excel 2007
Cell Formulas
RangeFormula
B2=VLOOKUP(A1,Sheet1!$A$2:$C$4,3,FALSE)
 
Upvote 0
SDKBRK,

Something like this?


Excel Workbook
ABC
1File #DESTINATIONEMPLOYEE NAME
2001Murfeesboro, TNDana Jeanes
3002Nashville, TNJack Salmon
4003Murfeesboro, TNSteve Ledford
5
DATABASE





Excel Workbook
A
1001
2Dana Jeanes
3
Search
 
Last edited:
Upvote 0
Thank you so much. I have never used that formula. It works like a charm.

Thanks guys.

di
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,839
Members
449,193
Latest member
MikeVol

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