KestutisTower
New Member
- Joined
- Jun 2, 2022
- Messages
- 23
- Office Version
- 2016
- Platform
- Windows
Hello you great bunch! First, I want to express my appreciation to this forum and to you guys. You'v been a great help along my way. Learned SO much. Huge thanks!!!
And now to my question. I have one sheet (sheet1)with dish names (this is example):
and other (sheet2) with dish names and ingredients and amounts:
I need a way to compare values in column A in sheet1 with values in column A in sheet2 and if mach is made, copy paste next two columns of dish matched to sheet3 A:B columns.
so it looks like this:
and if there would be more matches, it would be copied in first empty row in sheet3.
The only way I can imagine MAYBE to do this is to create a named range for each dish and to look for name of that dish in them to make mach (ranges would have same name as dish name).
OR ideally, to match the ingredients from matched dishes in sheet2 with the ingredients in sheet4 and if match is made to copy paste amount values (if multiple matches, to sum them up).This is sheet4:
I hope my question is clear and makes sense. I understand this is kind of double question, but it would lead to same solution at the end. Thanks for any help in advance.
And now to my question. I have one sheet (sheet1)with dish names (this is example):
tantra meniu.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Burger | ||||
2 | Curry | ||||
3 | |||||
4 | |||||
5 | |||||
6 | |||||
7 | |||||
8 | |||||
meniu |
and other (sheet2) with dish names and ingredients and amounts:
tantra meniu.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | DISH | INGREDIANT | AMOUNT | ||
2 | Burger | a | 1 | ||
3 | s | 2 | |||
4 | d | 3 | |||
5 | f | 4 | |||
6 | g | 5 | |||
7 | |||||
8 | Curry | z | 6 | ||
9 | a | 7 | |||
10 | d | 8 | |||
11 | t | 9 | |||
12 | h | 10 | |||
13 | f | 1 | |||
receptai |
I need a way to compare values in column A in sheet1 with values in column A in sheet2 and if mach is made, copy paste next two columns of dish matched to sheet3 A:B columns.
so it looks like this:
tantra meniu.xlsm | ||||
---|---|---|---|---|
A | B | |||
1 | PRODUCT | AMOUNT | ||
2 | a | 1 | ||
3 | s | 2 | ||
4 | d | 3 | ||
5 | f | 4 | ||
6 | g | 5 | ||
7 | z | 6 | ||
8 | a | 7 | ||
9 | d | 8 | ||
10 | t | 9 | ||
11 | h | 10 | ||
12 | f | 1 | ||
13 | ||||
pirkiniai |
and if there would be more matches, it would be copied in first empty row in sheet3.
The only way I can imagine MAYBE to do this is to create a named range for each dish and to look for name of that dish in them to make mach (ranges would have same name as dish name).
OR ideally, to match the ingredients from matched dishes in sheet2 with the ingredients in sheet4 and if match is made to copy paste amount values (if multiple matches, to sum them up).This is sheet4:
tantra meniu.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | GROUP | INGREDIENT | AMOUNT | ||
2 | |||||
3 | DAIRY | s | |||
4 | f | ||||
5 | g | ||||
6 | |||||
7 | |||||
8 | DRY | z | |||
9 | h | ||||
10 | |||||
11 | |||||
12 | CANNED | a | |||
13 | t | ||||
14 | d | ||||
15 | |||||
sarasas |
I hope my question is clear and makes sense. I understand this is kind of double question, but it would lead to same solution at the end. Thanks for any help in advance.