Hello all I hope someone can help me please, I've tried searching lots of sites for an answer but so far I haven't been successful...
In my worksheet, each row contains one of certain text values in columns CL to CV - either 'Transferred', 'Abandoned', 'Consult', 'Call Ended' or 'NULL', as illustrated below:
[TABLE="class: grid, width: 1000, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]CL[/TD]
[TD]CM[/TD]
[TD]CN[/TD]
[TD]CO[/TD]
[TD]CP[/TD]
[TD]CQ[/TD]
[TD]CR[/TD]
[TD]CS[/TD]
[TD]CT[/TD]
[TD]CU[/TD]
[TD]CV[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Transferred[/TD]
[TD]Consult[/TD]
[TD]Consult[/TD]
[TD]Abandoned[/TD]
[TD]Transferred[/TD]
[TD]Consult[/TD]
[TD]Call Ended[/TD]
[TD]NULL[/TD]
[TD]NULL[/TD]
[TD]NULL[/TD]
[TD]NULL[/TD]
[/TR]
</tbody>[/TABLE]
Assuming column CL always contains 'Transferred', I want to find out the position (in this array) of the next column to contain EITHER 'Transferred' or 'Call Ended'. I.e. in the example above I would expect to return a 5 because column CP contains 'Transferred' and is the fifth column in the array CL:CV.
I can already find the position of the 'Nth' match based on a single criteria - for example if I just wanted to know the position of the next column after CL to contain 'Transferred' I would use this array formula:
{=SMALL(IF(CL2:CV2="Transferred",COLUMN(CL2:CV2)-COLUMN(CL2)+1),2)}
So, I tried introducing an 'OR' argument as shown below, but this doesn't work because it always returns a 2:
{=SMALL(IF(OR(CL2:CV2="Transferred",CL2:CV2="Call Ended"),COLUMN(CL2:CV2)-COLUMN(CL2)+1),2)}
With a bit of googling I think I've learned that 'OR' just doesn't work with SMALL IF, but this is where I'm stumped.
Can anyone help me solve this please?
Thanks
In my worksheet, each row contains one of certain text values in columns CL to CV - either 'Transferred', 'Abandoned', 'Consult', 'Call Ended' or 'NULL', as illustrated below:
[TABLE="class: grid, width: 1000, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]CL[/TD]
[TD]CM[/TD]
[TD]CN[/TD]
[TD]CO[/TD]
[TD]CP[/TD]
[TD]CQ[/TD]
[TD]CR[/TD]
[TD]CS[/TD]
[TD]CT[/TD]
[TD]CU[/TD]
[TD]CV[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Transferred[/TD]
[TD]Consult[/TD]
[TD]Consult[/TD]
[TD]Abandoned[/TD]
[TD]Transferred[/TD]
[TD]Consult[/TD]
[TD]Call Ended[/TD]
[TD]NULL[/TD]
[TD]NULL[/TD]
[TD]NULL[/TD]
[TD]NULL[/TD]
[/TR]
</tbody>[/TABLE]
Assuming column CL always contains 'Transferred', I want to find out the position (in this array) of the next column to contain EITHER 'Transferred' or 'Call Ended'. I.e. in the example above I would expect to return a 5 because column CP contains 'Transferred' and is the fifth column in the array CL:CV.
I can already find the position of the 'Nth' match based on a single criteria - for example if I just wanted to know the position of the next column after CL to contain 'Transferred' I would use this array formula:
{=SMALL(IF(CL2:CV2="Transferred",COLUMN(CL2:CV2)-COLUMN(CL2)+1),2)}
So, I tried introducing an 'OR' argument as shown below, but this doesn't work because it always returns a 2:
{=SMALL(IF(OR(CL2:CV2="Transferred",CL2:CV2="Call Ended"),COLUMN(CL2:CV2)-COLUMN(CL2)+1),2)}
With a bit of googling I think I've learned that 'OR' just doesn't work with SMALL IF, but this is where I'm stumped.
Can anyone help me solve this please?
Thanks