Return all cells in the same row as a cell with value 0

P

Patrick

I have names in one column and an interger value 1-10 in
the second (or I can change to first if necessary). I want
to return all the names of people with 0 value in his/her
respective row. Probably simple, but I don't know how.

Thanks,

Patrick
 
P

Patrick

Not really what I want. I was not clear. I need to have a
third column that only returns the names from the first
column with a zero in the cell next to them.

This is what I want:

Column A Column B Column C

smith 1 jones
jones 0 king
homey 2
king 0
 
J

Jason Morin

Put this in C2 and press ctrl/shift/enter and fill down
until you see error values. Fill down as many rows as
there will be zeros in col. B (meaning if you expect 50
rows with zeros, fill down at least 50 rows).

=INDEX($A$1:$A$10,SMALL(IF($B$1:$B$10=0,ROW
($B$1:$B$10)),ROW()-1))

HTH
Jason
Atlanta, GA
 

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