I have let's say, some client orders (each order is different or belongs to different client) and I want in the same order to check if there is a duplicate model input on the model category as shown below. For example in order 1 there are two models with same name (sm150, 1st and last) and i want to find a way to highlight it or to show a warning message or even better to identify it and automatically remove it OR add the remaining stock and price to the first row's stock and price for the same model.
Thank you in advance for your help.
I tried with filter function to separate each order and then countif but becomes really hard computation wise, for excel to check each different product.
Sample data:
| Ord -1 | Mic Shura |
sm150 | test22 |
9 | 9 | 25/3/2024 | 26/3/2024 | ||
|---|---|---|---|---|---|---|---|---|---|
| Piano Thomman | cronos | test23 | 7 | 8 | 25/3/2024 | 26/3/2024 | |||
| Mic Shura | sm150b | test24 | 6 | 6 | 25/3/2024 | 26/3/2024 | |||
| Mic Shura | sm150 | test23 | 8 | 7 | 25/3/2024 | 26/3/2024 | |||
| Ord-2 | Mic Shura | sm150c | none | 12 | 10 | 25/3/2024 | 26/3/2024 | ||
| Guitar Bayer | bayleaf | none | 9 | 98 | 25/3/2024 | 26/3/2024 | |||
| Guitar Siem | yama5000 | no | 1 | 8 | 25/3/2024 | 26/3/2024 | |||

I will just assume you have put your data like below in
A1:D5:To group data by Model, and sum up Stock and Cost, you can use below formula:
Basically, the formula is made up of two maps:
The first one sums up Stocks by model:
The second one sums up Costs by model:
The results is like below:
Alternatively, if you have
GROUPBY, you can just use this:Apologies I didn't realise you cannot use MAP. You mentioned your table is in
E2:H2000, so you can add another input below formula in column I:As for conditional formatting, here is how the rule should be set up:
Then in column J, you can add below formula to sum stock.
In column K, use below to sum costs: