I've created a simple invoice worksheet which looks up prices of items from another worksheet.
I've copied and pasted the VLOOKUP formula into column H in worksheet1 which looks up the price of an item in a table created in worksheet2 when I enter the item name in column A of worksheet1.
This works perfectly when there's a value (item) typed into column A (worksheet1). However if there is no value in column A column H returns an error #N/A.
What I want is for the cell in column H to remain empty(blank) if the relative cell in Column A is empty(blank) without having to remove the embedded formula.
i.e. if cell A1 contains a product name (value) column H1 should look up and return the price from the table in worksheet2, which it does just fine.
but if cell A2 is empty I want cell H2 to also remain empty and not return #N/A.
Is there a workround for this.
here's my formula in column H
=VLOOKUP(A17,Sheet2!$A$2:$B$22,2,FALSE)
Thanks
Bookmarks