A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
With online sql:
select * from Sheet2;
create temp table aa as
select (select count(*) from Sheet2 where Document_Num like a.Document_Num and Type like 'Bought') x,(select count(*) from Sheet2 where Document_Num like a.Document_Num and Type like 'Sold') y,* from Sheet2 a group by Document_Num;
select Document_Num from aa where x>0 and y>0;