Format table for input data