Need help with VLOOKUP

Joefried

New Member
Joined
Aug 5, 2011
Messages
37
thanks for trying to help me

if the lookup Value of my Vlookup is 0. i.e, If the answer of Vlookup is 0 then my formula should search for next lookup_value in my table_array. Is it possible.

Eg.
Table
abc 0
rty 2
asd 0
qwe 12
abc 34
uio 21

so in the above table =VLOOKUP("abc",A:B,2,0) should be 34 and not 0."




Best Regards
Joe
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
thanks for trying to help me

if the lookup Value of my Vlookup is 0. i.e, If the answer of Vlookup is 0 then my formula should search for next lookup_value in my table_array. Is it possible.

Eg.
Table
abc 0
rty 2
asd 0
qwe 12
abc 34
uio 21

so in the above table =VLOOKUP("abc",A:B,2,0) should be 34 and not 0."




Best Regards
Joe
Try this array formula**:

=INDEX(B2:B7,MATCH(1,IF(A2:A7="abc",IF(B2:B7<>0,1)),0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
this is what i tried and the answer is N/A
please tell me if i did it wrong

=VLOOKUP(A:A,INDEX('Ebay Report'!J:J,MATCH(1,IF('Ebay Report'!C:C=A19,IF('Ebay Report'!J:J<>0,1)),0)),8,FALSE)
 
Upvote 0
this is what i tried and the answer is N/A
please tell me if i did it wrong

=VLOOKUP(A:A,INDEX('Ebay Report'!J:J,MATCH(1,IF('Ebay Report'!C:C=A19,IF('Ebay Report'!J:J<>0,1)),0)),8,FALSE)
VLOOKUP won't work for this.

Try it like I suggested.
 
Upvote 0

Forum statistics

Threads
1,224,523
Messages
6,179,301
Members
452,904
Latest member
CodeMasterX

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