Hi there,
I want to create a table where a user can enter data for a 'Stock Alert Message'. The data entered will consist of a Stock Code, Group, Type and Category. I would then like to run a query against this table which will only show us Stock Items which have an alert.
I'm struggling with how to populate the the Stock Alert correctly as we would like some data to be omitted from the user table.
If a Stock Code get's entered then a user wouldn't need to enter any further information as that stock alert would only show against that stock code. However a combination of Group, Type and Category can be entered. If a query matches against more than one criteria then all applicable messages would be shown.
Here's an example of what I mean below.
I've tried looking at various ways of achieving this including FILTER, TEXTJOIN and XLOOKUP but really having trouble putting it together so it works as required. Feel like I've been going round in circles and any help would be really gratefully accepted! If I can provide anymore clarification just let me know!
Many thanks,
B
I want to create a table where a user can enter data for a 'Stock Alert Message'. The data entered will consist of a Stock Code, Group, Type and Category. I would then like to run a query against this table which will only show us Stock Items which have an alert.
I'm struggling with how to populate the the Stock Alert correctly as we would like some data to be omitted from the user table.
If a Stock Code get's entered then a user wouldn't need to enter any further information as that stock alert would only show against that stock code. However a combination of Group, Type and Category can be entered. If a query matches against more than one criteria then all applicable messages would be shown.
Here's an example of what I mean below.
Stock Alert Messages.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | ||||||||||||
2 | Stock Alert Messages | |||||||||||
3 | Stock Code | Group | Type | Category | Stock Alert | |||||||
4 | 1/2BI12 | Test 1 | ||||||||||
5 | PLU | Test 2 | ||||||||||
6 | RLI | CZS | Test 3 | |||||||||
7 | PLU | 1/2 | COM | Test 4 | ||||||||
8 | ||||||||||||
9 | Query 1 | Query 2 | Query 3 | Query 4 | ||||||||
10 | Stock Code | 1/2BI12 | Stock Code | 10MPF18 | Stock Code | CAPANTSQUSW1 | Stock Code | 1/2CO12 | ||||
11 | Group | PLU | Group | PLU | Group | RLI | Group | PLU | ||||
12 | Type | 1/2 | Type | 10M | Type | CZS | Type | 1/2 | ||||
13 | Category | BIB | Category | PFI | Category | Category | COM | |||||
14 | Stock Alert | Test 1, Test 2 | Stock Alert | Test 2 | Stock Alert | Test 3 | Stock Alert | Test 2, Test 4 | ||||
15 | ||||||||||||
Sheet1 |
I've tried looking at various ways of achieving this including FILTER, TEXTJOIN and XLOOKUP but really having trouble putting it together so it works as required. Feel like I've been going round in circles and any help would be really gratefully accepted! If I can provide anymore clarification just let me know!
Many thanks,
B