Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In col A, starting at A3 have a list of customer names.
The columns B1:E1 are labeled 1,2,3,4 respectively, indicating option numbers. In Columns B2:E2 is the Product ID (which are identical in this group of four). There are over 100 product ID's, each with options available of 1,2,3 or 4. Need to specify on another worksheet the customer located in col. A, the option desired from row 1, (1,2,3 or 4) and the product ID from row 2. Need to retrieve the value located within the table. So, if a certain customer choses the product ID, with an option of 3, it would retrieve the proper amount. Tried retrieving with the numerical data with SUMIFS, but it did not work. Perhaps a varient of SUMPRODUCT? Thanks for pointing me in the right direction. Pete |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Mar 18, 1:21*pm, Pete wrote:
In col A, starting at A3 have a list of customer names. The columns B1:E1 are labeled 1,2,3,4 respectively, indicating option numbers. In Columns B2:E2 is the Product ID (which are identical in this group of four). *There are over 100 product ID's, each with options available of 1,2,3 or 4. Need to specify on another worksheet the customer located in col. A, the option desired from row 1, (1,2,3 or 4) and the product ID from row 2. *Need to retrieve the value located within the table. So, if a certain customer choses the product ID, with an option of 3, it would retrieve the proper amount. Tried retrieving with the numerical data with SUMIFS, but it did not work. *Perhaps a varient of SUMPRODUCT? Thanks for pointing me in the right direction. Pete Easier if I see the actual file with before/after. send to . Notice the 1 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Mar 18, 11:21*am, Pete wrote:
In col A, starting at A3 have a list of customer names. The columns B1:E1 are labeled 1,2,3,4 respectively, indicating option numbers. In Columns B2:E2 is the Product ID (which are identical in this group of four). *There are over 100 product ID's, each with options available of 1,2,3 or 4. Need to specify on another worksheet the customer located in col. A, the option desired from row 1, (1,2,3 or 4) and the product ID from row 2. *Need to retrieve the value located within the table. So, if a certain customer choses the product ID, with an option of 3, it would retrieve the proper amount. Tried retrieving with the numerical data with SUMIFS, but it did not work. *Perhaps a varient of SUMPRODUCT? Thanks for pointing me in the right direction. Pete I put the original data in Sheet1, with additional products in four- column blocks F:I, J:M, etc. In Sheet2, I used these parameters: name in A1, option in A2, product ID in A3. In Sheet2!A4, this formula seems to get the desired result: =OFFSET(Sheet1!A1, MATCH(A1,Sheet1!A:A,0)-1, MATCH(A3,Sheet1!2:2,0)+A2-2) [Since Sheet1!B1:M1 is so regular, there's no need to MATCH the "option," just count columns.] Hope this helps getting started. You might want to add tests in case there isn't a match, or in case you want an empty cell in Sheet1 to not return a zero in Sheet2!A4. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Mar 18, 5:49*pm, zvkmpw wrote:
Looks great, and works nicely. Thank you. Pete I put the original data in Sheet1, with additional products in four- column blocks F:I, J:M, etc. In Sheet2, I used these parameters: * name in A1, * option in A2, * product ID in A3. In Sheet2!A4, this formula seems to get the desired result: * *=OFFSET(Sheet1!A1, * * * *MATCH(A1,Sheet1!A:A,0)-1, * * * *MATCH(A3,Sheet1!2:2,0)+A2-2) [Since Sheet1!B1:M1 is so regular, there's no need to MATCH the "option," just count columns.] Hope this helps getting started. You might want to add tests in case there isn't a match, or in case you want an empty cell in Sheet1 to not return a zero in Sheet2!A4.- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I retrieve data based on multiple search criteria? | Excel Worksheet Functions | |||
How do I retrieve data based on multiple search criteria? | Excel Worksheet Functions | |||
Retrieve data when multiple criteria need to be met | Excel Discussion (Misc queries) | |||
How to retrieve a value based on 2 different criteria | Excel Worksheet Functions | |||
QUICK HELP - Retrieve value based on two column criteria | Excel Discussion (Misc queries) |