We appreciate your response. In addition to what James Cone mentioned, the header row is automatically enabled if you created a table by using the Insert Table option in Excel. Thus, making the first row of your table not included in the sorting and filtering.
If you are referring to just placing cell borders when you mentioned “grid of rows and columns”, the header row will not be automatically enabled and Excel will treat your first row as part of the data. Thus, your first row will be included in the sorting and filtering.
Check the difference on how the tables look like on the images below:
A. Table created by using the Insert Table option in Excel. Header Row is enabled.
B. Table created by placing cell borders in Excel. Header Row is disabled.
Let us know if you need additional assistance.