JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,687
- Office Version
- 365
- Platform
- Windows
I want to create a sheet that I can use to rate soups that I buy and try. I have two tables as shown below. I have included the table names in the top row. They are not displayed by xl2bb.
TblProducts is a list of the products that I have tried. There is one record for each different soup product. There cannot be any duplicates.
TblLog is a list of the tests of these soups. Each soup in TblProducts can be listed zero or more times.
The Ok? column in TblLog tests whether the soup in that row exists in TblProducts. The only way I could think of to make this work is to create the helper column Brand+Flavor in TblProducts. Is there a better way that does not require the helper column?
TblProducts is a list of the products that I have tried. There is one record for each different soup product. There cannot be any duplicates.
TblLog is a list of the tests of these soups. Each soup in TblProducts can be listed zero or more times.
The Ok? column in TblLog tests whether the soup in that row exists in TblProducts. The only way I could think of to make this work is to create the helper column Brand+Flavor in TblProducts. Is there a better way that does not require the helper column?
Mr Excel.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | |||
3 | Table name: TblProducts | Table name: TblLog | ||||||||
4 | Brand | Flavor | Brand+Flavor | Date | OK? | Brand | Flavor | |||
5 | Campbell's | Chunky Beef with Vegetables | Campbell's/Chunky Beef with Vegetables | 3/04/23 | Ok | Campbell's | Chunky Beef with Vegetables | |||
6 | Campbell's | Chunky Chicken and Sausage Gumbo | Campbell's/Chunky Chicken and Sausage Gumbo | 3/07/23 | Ok | Progresso | Chicken Noodle | |||
7 | Campbell's | Chunky Chicken Noodle | Campbell's/Chunky Chicken Noodle | 6/16/23 | Ok | Campbell's | Chunky Beef with Vegetables | |||
8 | Progresso | Chicken & Homestyle Noodles | Progresso/Chicken & Homestyle Noodles | 6/23/23 | Ok | Progresso | Chicken Noodle | |||
9 | Progresso | Chicken Noodle | Progresso/Chicken Noodle | 7/04/23 | Ok | Progresso | Chicken Noodle | |||
10 | 8/01/23 | Error | Campbell's | Tomato | ||||||
11 | 9/01/23 | Error | Progresso | Lentil | ||||||
2-column compare |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D5:D9 | D5 | =[@Brand] & "/" & [@Flavor] |
G5:G11 | G5 | =IF(COUNTIFS(TblProducts[Brand+Flavor],[@Brand]&"/"&[@Flavor])=1,"Ok","Error") |