overthinker519
New Member
- Joined
- Aug 30, 2022
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hi all,
I have a set of data source with size and quantities input horizontally. I try to return those values in G12:G17 based on criterias "HELPER" and "Size". The best way I know is to utlize functions SUMIF and OFFSET. However the size sets from data source may differ for different products. I am hoping someone could show me the way through this task. I'm open for any soluction as long as it is not VBA.
Thank you for your time.
I have a set of data source with size and quantities input horizontally. I try to return those values in G12:G17 based on criterias "HELPER" and "Size". The best way I know is to utlize functions SUMIF and OFFSET. However the size sets from data source may differ for different products. I am hoping someone could show me the way through this task. I'm open for any soluction as long as it is not VBA.
Workbook 1.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | HELPER | POS/Account | Style # | Color Description | Code | S | M | L | XL | ||
2 | Taipei1904762WHIT | Taipei | 1904762 | WHITE | WHIT | 2 | 4 | 3 | |||
3 | Taichung1904763BLAC | Taichung | 1904763 | BLACK | BLAC | 1 | 1 | 1 | |||
4 | HELPER | POS/Account | Style # | Color Description | Code | M | L | XL | XXL | ||
5 | Keelung1904764NATL | Keelung | 1904764 | NATURAL | NATL | 3 | 5 | 4 | |||
6 | Kaohsiung1904765BLAC | Kaohsiung | 1904765 | BLACK | BLAC | 1 | 1 | 1 | |||
7 | |||||||||||
8 | |||||||||||
9 | HELPER | POS/Account | Style # | Color Description | Code | Size | Qty | ||||
10 | Taipei1904762WHIT | Taipei | 1904762 | WHITE | WHIT | S | 2 | ||||
11 | Taipei1904762WHIT | Taipei | 1904762 | WHITE | WHIT | M | 4 | ||||
12 | Taipei1904762WHIT | Taipei | 1904762 | WHITE | WHIT | L | 3 | ||||
13 | Kaohsiung1904765BLAC | Kaohsiung | 1904765 | BLACK | BLAC | M | 2 | ||||
14 | Kaohsiung1904765BLAC | Kaohsiung | 1904765 | BLACK | BLAC | L | 0 | ||||
15 | Kaohsiung1904765BLAC | Kaohsiung | 1904765 | BLACK | BLAC | XL | 0 | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A2:A3,A10:A15,A5:A6 | A2 | =B2&C2&E2 |
G10:G15 | G10 | =SUMIF($A$2:$A$6,A10,OFFSET($A$1,MATCH($A10,$A$2:$A$6,0),MATCH($F10,$A$1:$I$1,0)-1,7,1)) |
Thank you for your time.