Vlookup should skip blank cell

onlypiyush

New Member
Joined
Sep 30, 2011
Messages
3
Hi,
I have currency codes in coloum A and some numeric values in coloum B.
e.g.

USD 456.00
GBP 1265.00
CHF 6454.00
AUT
USD 534.00
INR 8875.00
RAD
ZAB
CHF 963.00

You would notice that some cells in coloum B are blank. I want vlookup to avoid this blank value and move on to next cell till it finds the value. If there is no value then it should return zero; but that too after checking entire list. Can somebody please help me with this?

Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Where are you putting the VLOOKUP?
Do you want it to move to the next column, or the next row?

Adam
 
Upvote 0
I want it to move down the row. My criterion is currecy. If not vlookup then suggest another function or macro.
 
Upvote 0
Yeah sorry, I still don't understand what you're looking to do. Where is the VLOOKUP forumla going? What are you trying to lookup?

Adam
 
Upvote 0
Adam,

My vlookup formula would be as under.

=vlookup(G2;'Sheet2'A1:B6;2;0)

I had only given the range coloum in my 1st thread. My criterion/lookup value would be in sheet 1. So I have predefined currency values in Sheet 1. Now I need to pull the relevant values from Sheet 2. These values would change every month. However my lookup value would remain constant. Hope this clarifies.

Piyush
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

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