View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default Creating a name list from if quantity value is in adjacent cell on

=IF(ISERR(SMALL(IF(quan0,ROW(INDIRECT("1:"&ROWS(q uan)))),ROWS($1:1))),"",INDEX(prod,SMALL(IF(quan0 ,ROW(INDIRECT("1:"&ROWS(quan)))),ROWS($1:1))))

ctrl+shift+enter, not just enter


"Jive" wrote:

Hi

I have a complete product list with all the product numbers in Colum A, and
the quantities in Colum B.

On a separate sheet I have a smaller table which I would like to populate
with the products that have a quantity value next to them only.

i.e.

Product A 1
Product B 0
Product C 0
Product D 5
Product E 25
Product F 0
Product G 2

Becomes

Product A
Product D
Product E
Product G

I know of many ways to make a macro do the task for me but I really dislike
them and would prefer to use a function string.

Thanks for your help in advance

Jive