I don't understand why vlookup is returning 0

Danoz

New Member
Joined
Jul 22, 2010
Messages
39
Hi

Using excel 2007

My formula is this: "=IF(I3="","",IF(ISERROR(MATCH(I3&L3,Lists!S:S,0)),"",VLOOKUP(I3&L3,Lists!S:T,2,FALSE)))"

Column S in Lists is formatted as general, column T is date. The format of the output (formula) cell is date. I3 is formatted as general, L3 date.

Let's say I3 is Danoz and L3 is 30/6/16, the formula looks up Danoz42551 in lists!S:S. Danoz42551 exists in the range, and the corresponding value in Lists!T:T is 1/7/16, so the value returned should be 42552. But wherever I put the formula, the value returned is zero, "0", or 0/01/1900.

I've tried adding concatenate where relevant, but nothing works.

Stripping it back to just the vlookup, it still returns 0.

What's really getting to me is that when I trace it through evaluate, the return value is 42552 until the final step, when it magically becomes 0.

I don't understand why, can anyone help me?

Thanks, Danoz.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I'm still really confused about what was happening, but moved the data set to columns D:E in Lists and the formulae began working.

This thread can be closed/removed.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

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