I have a sheet that looks like this:
As you can see, it is a simple inventory tracking system. Right now, I have 3 products. Some products don't really have different colors (like Tacky Design Tee), so for those, the variant (color) is kept empty. One issue I faced is that it gets a bit difficult to actually understand which row I'm in because some cells are kept empty. Ideally, I would want the spreadsheet to look like this:
With the borders, there is a clear separation between the products. I want this to be dynamic. The logic might come from the B
column not being empty, and all the rows right after it where B
is empty, those rows are treated as a group and bordered on the bottom.
Is there a way to do this in a way so that whenever I add a new product, it gets grouped accordingly? Thanks for any help.
EDIT:
Links to the spreadsheets:
Before (What I have): https://docs.google.com/spreadsheets/d/1r3ybiy5Gaw7SYDZlYA68HmvPCCoxI-Bz7qpPCSK146A/edit?usp=sharing
After (Basically what I want): https://docs.google.com/spreadsheets/d/1sS3Y_MH4DaYD4QW19vjwExd7jc4H-eB5OAGb3J4njUQ/edit?usp=sharing
In short, I want to group products based on their names based on these 2 conditions:
- If a row does not have a name, we assume it to be a variant of the closest row going up that has a product name.
- If two rows have the same product name, we obviously assume them to be variants of the same product.