Vlookup picking up random data and not exact match

Excheltenham

New Member
Joined
Sep 18, 2015
Messages
7
hi all,

I can't seem to fathom this one.

i have work book with a basic vlookup(a1,'sheet2'A:G,4,0)
where a1 is a string of digits 345678

Sadly the vlookup retruning random answers pretty much where 3,4,5,6,7,8 are present in the sheet

I thought 0 returned exact values only..

Where am I going wrong ?:confused::eek::mad:
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I don't thibnk you can have range A:G
VLOOKUP is a VERTICAL lookup.
Your range implies both vertical AND horizontal.

What are you trying to achieve?
 
Last edited:
Upvote 0
Could you post some sample data and the results of the Vlookup
 
Upvote 0
find a1 from the first sheet , to find match in row b on second sheet then move 4 cells and collect that total figure ..

data is
Account, Cost Centre, Invoice, Gst, Total..

so i want exact account no. match to return value in total column it relates to
 
Upvote 0
That would be:
vlookup(a1,'sheet2'A:G,5,0)
not
vlookup(a1,'sheet2'A:G,4,0)

since the data you want is in the 5th column of your lookup range.
 
Upvote 0

Forum statistics

Threads
1,216,177
Messages
6,129,323
Members
449,501
Latest member
Amriddin

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