def rowcol_pair_to_cellrange(row1, col1, row2, col2, row1_abs=False, col1_abs=False, row2_abs=False, col2_abs=False):
 assert (row1 <= row2)
 assert (col1 <= col2)
 return ((rowcol_to_cell(row1, col1, row1_abs, col1_abs) + ':') + rowcol_to_cell(row2, col2, row2_abs, col2_abs))

def rowcol_pair_to_cellrange ( row1 , col1 , row2 , col2 , row1_abs = False , col1_abs = False , row2_abs = False , col2_abs = False ) : assert ( row1 <= row2 ) assert ( col1 <= col2 ) return ( ( rowcol_to_cell ( row1 , col1 , row1_abs , col1_abs ) + ':' ) + rowcol_to_cell ( row2 , col2 , row2_abs , col2_abs ) )
convert two pairs into a cell range string in a1:b2 notation .