# hello i need help with an excel formula please.

#### RICK150

##### New Member
Hello

I work in logistics and a large part of my job is producing spreadsheets.

One spreadsheet i have to produce is given to me with the depot responsible for delivery set as a number. so depot 10 = newcastle and depot 12 = london.

When i input these i have to look through my list and find the depot name.

In column A i type the dopt numbers. Column B i've left blank for the formula. Way over in column G i have all the depot numbers listed and in column H i have the names of the depots that correspond to their number.

What i would ideally like to happen is when i type in the depot code in column a i'd like excel to automatically fill in column B with the corresponding Depot Name.

Anyone got any ideas they could tell me i'd be most appreciative.

Ricky

### Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the Board.

Check out the VLOOKUP function in Help.

I think this is what you are looking for. Adjust range G1:H100 to suit.

=VLOOKUP(A1,G1:H100,2,FALSE)

THANK YOU both very much i'm going to give that a try now.

Ricky

Replies
8
Views
259
Replies
8
Views
286
Replies
22
Views
645
Replies
0
Views
397
Replies
10
Views
463

1,211,710
Messages
6,103,450
Members
447,865
Latest member
Devsito

### 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.

### Which adblocker are you using?

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

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