I want to verify data from second last row of table.
I stored rowcount-2 in buffer, but not able to pass it to row number i.e $<rowcount-2> or #<rowcount-2>
You can use the buffer to select the row number by using ${B[Row Number Buffer]} in place of <Row>.