View Single Post
  #2   Report Post  
Max
 
Posts: n/a
Default

Here's one interp / suggestion ..

Suppose the table below is
in Sheet1, in A1:D10

abba A 0 0.15
abba B 1 2
abba C 0 0.14
abba D 0 3
abba E 1 0.2
acca A 0 1
acca B 0 3
acca C 0 .2
acca D 1 2
acca E 1 66


Put in E1: =IF(C1=1,ROW(),"")
Copy down to E10

In Sheet2
------------
Put in A1:

=IF(ISERROR(MATCH(SMALL(Sheet1!$E:$E,ROWS($A$1:A1) ),Sheet1!$E:$E,0)),"",INDE
X(Sheet1!A:A,MATCH(SMALL(Sheet1!$E:$E,ROWS($A$1:A1 )),Sheet1!$E:$E,0)))

Copy A1 across to D1, fill down to D10
(i.e. by as many rows as there is data in Sheet1)

You'll get in cols A to D:

abba B 1 2
abba E 1 0.2
acca D 1 2
acca E 1 66
[ rest are blanks: "" ]

which is an extract of all rows of the original table in Sheet1
where col C in Sheet1 contains "1"
(this is the interp of what you're after ..)

(Just hide away col C in Sheet2 if desired)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
wrote in message
oups.com...
I am new to excel, doing the tutorial thing, but i am having a problem
with a worksheet i want to massage.
It goes something like this:

ColumnA Column B Column C Column D
abba A 0 0.15
abba B 1 2
abba C 0 0.14
abba D 0 3
abba E 1 0.2
acca A 0 1
acca B 0 3
acca C 0 .2
acca D 1 2
acca E 1 66

What i need to do is if Column C is 1 then I need excel to ouput the
value in Column D for ALL occurence of Column A. That is, the first B
has a value of 1 (the second b does not) and I need excel to output all
of the column D values for B in different cells, i.e For the B in
column B: abba:2, acca:3. For A, however, with two 0's I don't want it
output.