table1.jpg

Then the table with the formula could show:

table2.jpg

I'm looking for the correct command for it and can't seem to find it. :/ Help! Thank you!