Define incomplete sets

Given the incidence matrix of an incomplete graph in Excel, I need to define the set of edges (that is pair of vertices with value 1 in the intersection cell).