Help with a pretty simple spreadsheet.

rinzler

New Member
Joined
May 29, 2015
Messages
10
Hi, Im feeling really stupid since i can't figure this out. Ill explain and post some Pictures and hopefully itll be clear enough that some genius can help me.

I have a workbook that i use for recording service jobs. So its pretty simple looking: i have a few colums with Customer, Typ of job, Products used and number of miles ive driven.

The workbook contains two spreadsheets one with all my hours recorded and one with the customer and how far it is there and back to the customer.

I want that on spreadsheet one when i pick the customer from a drop down list that it automatically filles in the miles corresponding to the customer, ill provide some Pictures to help explain.


image.jpg

image.jpg

image.jpg


How do i accomplish this? I allready have the drop downs setup to get the customer name from the spreadsheet named Mil, but now i don't know how to get it to display the miles when i choose the customer.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi, welcome to the forum.

Try

=vlookup(C2,Mil!$A$2:$B$100,2,0)

Edit : you may need to change , to ;

=vlookup(C2;Mil!$A$2:$B$100;2;0)
 
Upvote 0
Mmm, is the name of the sheet Mil just Mil or are there any spaces etc?

Try
=vlookup(C2;'Mil'!$A$2:$B$100;2;0)
 
Upvote 0
Hi, i translated it to the Swedish version and now it works, forgot to mention i have a Swedish Excel installation. Thank you so much ! :)
 
Upvote 0
Next uestion is, how do i get excel to auto fill the miles field regardless of which customer name is in the other cell? Now i have to manually Point it.
 
Upvote 0
Not sure I understand, if you change the Customer from the dropdown, the miles will auto change.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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