prevsheet lookup error, what am I doing wrong?

SafeDave

New Member
Joined
Jun 22, 2016
Messages
2
Hi all, first post by a novice hope someone can help. We have a fleet fuel workbook with tabs for each month. Data arrives in .csv form and I straighten it out with a macro to clean up the columns and order it by vehicle registration.
Each car fills up a different number of times each month, so my attack was to VLOOKUP the vehicle reg on current sheet in E2 using the criteria in D2 and refer back to the first matching value found on the previous sheet, which would be column D, then take the value from the cell to the right of that (prevsheet col E) and fill current sheet E2 with the result.

I'm using
=VLOOKUP(D2,PrevSheet!D2:E300,2,FALSE)

But all I get is a popup titled "Update Values: PrevSheet"

I guess I'm missing something basic but don't know what - any suggestions?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I should have said, the info I'm trying to retrieve is the driver name, which doesn't come in on the fuel card data so I want to input it on the first sheet then pull it through subsequent sheets automatically.

Hi all, first post by a novice hope someone can help. We have a fleet fuel workbook with tabs for each month. Data arrives in .csv form and I straighten it out with a macro to clean up the columns and order it by vehicle registration.
Each car fills up a different number of times each month, so my attack was to VLOOKUP the vehicle reg on current sheet in E2 using the criteria in D2 and refer back to the first matching value found on the previous sheet, which would be column D, then take the value from the cell to the right of that (prevsheet col E) and fill current sheet E2 with the result.

I'm using
=VLOOKUP(D2,PrevSheet!D2:E300,2,FALSE)

But all I get is a popup titled "Update Values: PrevSheet"

I guess I'm missing something basic but don't know what - any suggestions?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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