saltoftheearth
New Member
- Joined
- Feb 29, 2020
- Messages
- 6
- Office Version
- 365
- 2019
- Platform
- MacOS
Hello all!
I am working with some salesforce data and am looking to find specific information for customers that have made multiple purchases.
I have attached a sample worksheet that has random data but it should portray the issue I'm trying to solve! A few things to note:
Summary tab
Raw Data
I am working with some salesforce data and am looking to find specific information for customers that have made multiple purchases.
I have attached a sample worksheet that has random data but it should portray the issue I'm trying to solve! A few things to note:
- Each customer has customer ID (in theory one customer could have more than one, but for the most part it will just be one)
- One customer ID can have multiple product line IDs
- Each product line ID will have a sale price
- On the summary tab in the attached excel file, I am looking to reference the account IDs on the second tab and match up the sales price to the customer ID.
- If one of the customer IDs has multiple product lines with the same product, the summary tab should pull the lowest of those values
- Ignore the formulas, I just generated random numbers
Summary tab
Sample Sheet.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Customer ID | Product 1 | Product 2 | Product 3 | Product 4 | Product 5 | ||
2 | 67 | |||||||
3 | 382 | |||||||
4 | 124 | |||||||
5 | 177 | |||||||
6 | 213 | |||||||
7 | 7 | |||||||
8 | 17 | |||||||
9 | 304 | |||||||
10 | 112 | |||||||
11 | 208 | |||||||
12 | 54 | |||||||
13 | 82 | |||||||
14 | 344 | |||||||
15 | 347 | |||||||
16 | 388 | |||||||
17 | 13 | |||||||
18 | 173 | |||||||
19 | 358 | |||||||
20 | 84 | |||||||
21 | 305 | |||||||
Summary |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A2 | A2 | =IFERROR(__xludf.DUMMYFUNCTION("unique(Sheet1!A2:A1000)"),67) |
A3 | A3 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),382) |
A4 | A4 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),124) |
A5 | A5 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),177) |
A6 | A6 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),213) |
A7 | A7 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),7) |
A8 | A8 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),17) |
A9 | A9 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),304) |
A10 | A10 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),112) |
A11 | A11 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),208) |
A12 | A12 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),54) |
A13 | A13 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),82) |
A14 | A14 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),344) |
A15 | A15 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),347) |
A16 | A16 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),388) |
A17 | A17 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),13) |
A18 | A18 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),173) |
A19 | A19 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),358) |
A20 | A20 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),84) |
A21 | A21 | =IFERROR(__xludf.DUMMYFUNCTION("""COMPUTED_VALUE"""),305) |
Raw Data
Sample Sheet.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Customer ID | Product line ID | Product Name | Sale Price | ||
2 | 309 | 1234 | Product 1 | $85.00 | ||
3 | 137 | 1234 | Product 2 | $96.00 | ||
4 | 368 | 1234 | Product 3 | $105.00 | ||
5 | 302 | 1234 | Product 2 | $85.00 | ||
6 | 29 | 123 | Product 1 | $69.00 | ||
7 | 200 | 123 | Product 2 | $96.00 | ||
8 | 257 | 123 | Product 3 | $73.00 | ||
9 | 60 | 123 | Product 2 | $77.00 | ||
10 | 389 | 123 | Product 2 | $72.00 | ||
11 | 16 | 456 | Product 2 | $108.00 | ||
12 | 90 | 456 | Product 2 | $63.00 | ||
13 | 142 | 456 | Product 4 | $101.00 | ||
14 | 177 | 456 | Product 4 | $78.00 | ||
15 | 247 | 456 | Product 4 | $63.00 | ||
16 | 225 | 789 | Product 1 | $79.00 | ||
17 | 118 | 789 | Product 1 | $61.00 | ||
18 | 153 | 789 | Product 2 | $66.00 | ||
19 | 363 | 789 | Product 2 | $68.00 | ||
20 | 309 | 102 | Product 3 | $50.00 | ||
21 | 295 | 102 | Product 3 | $82.00 | ||
Raw Data |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A2:A21 | A2 | =RANDBETWEEN(1,400) |
D2:D21 | D2 | =RANDBETWEEN(50,110) |