Forum Discussion
Katie Short
Aug 31, 2018Copper Contributor
Problems with =VLOOKUP formula
I have a budget spreadsheet I am trying to improve. In one section, I have a dropdown menu of locations and I want the next column over to auto populate km once a selection has been made (and then the column over calculates a mileage rate in $). I have a table with all the locations and km on a different sheet.
I think I nee to use =VLOOKUP in the column I want autopopulated, but I am having trouble with the exact formula needed.
Any suggestions?
5 Replies
Sort By
- Lorenzo KimBronze Contributor
Ms. Short
attached is a revised sample.
it has 2 approaches..
First sheet = by VBA
2nd sheet = by Formula
hope this helps
thanks
- Katie ShortCopper Contributor
Thanks very much Lorenzo! I will give that a go. Appreciate the help!
- Lorenzo KimBronze Contributor
Ms. Short
Welcome. hope it helps...
- Lorenzo KimBronze Contributor
- Lorenzo KimBronze Contributorcolumns A & B should be populated equally - meaning they should be of same row number..
because I computed the lastrow under column A
thanks