Input table condition to fill only one cell on the row