If some cells are not included in a group, it could be because they are not adjacent to other cells with the same value, because they are hidden or filtered out, or because the group feature might interfere with other formulas or functions in the spreadsheet. Make sure to check for any of these issues before grouping data.