r. venkataraman

J

Jaladino

Thanks,

And what if I want to have it blank if no entry is made in the relavent cell
(instead of N/A #)
 
M

Max

Extending further what R.Venkataraman suggested in your earlier post
(btw, you should have stayed within the same thread, otherwise your post
here would not make much sense <g>)

You could try instead in C21:

=IF(ISNA(MATCH($B21,$J$21:$J$37,0)),"",VLOOKUP($B21,$J$21:$L$37,COLUMNS($A$1
:A1)+1,FALSE))

The above will return the product description in C21 for the product code in
B21. Any unmatched product codes in B21 will return blank: "".

If you also want to likewise return the price for the product code in B21
in D21, just copy C21 across to D21, then format D21 as currency

And if you have yet other product codes in B22, B23, etc
just select C21:D21 and fill down

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
Jaladino said:
Thanks,

And what if I want to have it blank if no entry is made in the relavent cell
(instead of N/A #)

--- pasted from earlier thread --------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top