generalize the method to get cells by row, column, and/or datatype.