Hello,
I have a dynamic list of data that contains dynamically sized blocks that i need to search within.
Its a list of orders, and comprises of all the items purchased within the orders. I am able to find the start of each particular block, and also the end of it. In an order, it is possible (and that is the core of my problem) that one particular product may appear in the order(=block of data) multiple times. And I need an automated function that would ceck all the occurences of that product and compare its units of measure if they match each other.
I've gone as far as array formula:
but the excel does not seem to comply with this. I would use that input as an array for lookup function and then play with the results, but this seems to be impossible now.
A small comment to understand what I am doing (without the real table, it might be impossible):
The OFFSET part generates correctly the block array that the particular order occupies within the list. It uses separately computed first and last line of that block present in columns RESULTS!B and RESULTS!C.
By using the array type of formula I hope to create something like:
and hope to get results like {A1,0,0,A4,A5} that I would then that I would use into some other construction. However this formula is not working. Using Evaluate Formula I am getting the first part (of my original formula) as an array:
But the evaluation to TRUE or false does not generate an array.
Oh, and I'm using Excel 2003.
I have a dynamic list of data that contains dynamically sized blocks that i need to search within.
Its a list of orders, and comprises of all the items purchased within the orders. I am able to find the start of each particular block, and also the end of it. In an order, it is possible (and that is the core of my problem) that one particular product may appear in the order(=block of data) multiple times. And I need an automated function that would ceck all the occurences of that product and compare its units of measure if they match each other.
I've gone as far as array formula:
Code:
{=IF(OFFSET(SOURCE!$C$1,RESULTS!B11-1,0,RESULTS!C11-RESULTS!B11+1,1)=SOURCE!C11,
,OFFSET(SOURCE!$C$1,RESULTS!B11-1,0,RESULTS!C11-RESULTS!B11+1,1),"")}
but the excel does not seem to comply with this. I would use that input as an array for lookup function and then play with the results, but this seems to be impossible now.
A small comment to understand what I am doing (without the real table, it might be impossible):
The OFFSET part generates correctly the block array that the particular order occupies within the list. It uses separately computed first and last line of that block present in columns RESULTS!B and RESULTS!C.
By using the array type of formula I hope to create something like:
Code:
{If (A1:A5=A1,A1:A5,"")}
Code:
{If ({true|false|false|true|true},A1:A5,"")}
Oh, and I'm using Excel 2003.