Hi everyone!
I have a series of data in columns A:C
- Column A: reference to 1 of 2 companies (cie1, cie2)
- Column B: the ID for list of supplier accounts, all entries are unique (supplier 1, supplier 2, etc...)
- Column C: the balance for each supplier's account (an amount in $)
The table looks like this:
A1=cie1; B1=supplier 1; C1=500$
A2=cie2; B2=supplier 2; C2=-500$
A3=cie1; B3=supplier 3; C3=0$
A4=cie2; B4=supplier4; C4=250$
I would like to build a dynamic list based on 2 criterias:
Criteria 1: Account is above 0
Criteria 2: Account is supplying cie1
So far I've managed to build dynamic lists that show all the suppliers with either a positive or negative account... using an array formula and a countif() like this:
D1=COUNTIF(table1[BALANCE],">0"); result is 2
=IF(ROWS(D$2:D2)>A$1,"",INDEX(A:A,SMALL(IF(table1[BALANCE]>0,ROW(table1)),ROWS(D$2:D2)))); result is an array of supplier 1 and supplier 4 (supplying different companies.)
but I don't know how to sort it so it only shows the suppliers for a specific company (using a second criteria.) I've tried nesting IF() formulas and AND() formulas to get the SMALL() portion to select only the data that meets both criterias, to no avail.
Can someone help?
I have a series of data in columns A:C
- Column A: reference to 1 of 2 companies (cie1, cie2)
- Column B: the ID for list of supplier accounts, all entries are unique (supplier 1, supplier 2, etc...)
- Column C: the balance for each supplier's account (an amount in $)
The table looks like this:
A1=cie1; B1=supplier 1; C1=500$
A2=cie2; B2=supplier 2; C2=-500$
A3=cie1; B3=supplier 3; C3=0$
A4=cie2; B4=supplier4; C4=250$
I would like to build a dynamic list based on 2 criterias:
Criteria 1: Account is above 0
Criteria 2: Account is supplying cie1
So far I've managed to build dynamic lists that show all the suppliers with either a positive or negative account... using an array formula and a countif() like this:
D1=COUNTIF(table1[BALANCE],">0"); result is 2
=IF(ROWS(D$2:D2)>A$1,"",INDEX(A:A,SMALL(IF(table1[BALANCE]>0,ROW(table1)),ROWS(D$2:D2)))); result is an array of supplier 1 and supplier 4 (supplying different companies.)
but I don't know how to sort it so it only shows the suppliers for a specific company (using a second criteria.) I've tried nesting IF() formulas and AND() formulas to get the SMALL() portion to select only the data that meets both criterias, to no avail.
Can someone help?