I have a excel file which contains a data like the below-
| ID | Range1 | Range2 | Is Aligned or not | L00 | L01 | L02 | L03 | L04 | L05 |
| 111T | L00 | L05 | YES | 0 | 5 | 10 | 0 | 0 | 1 |
| A112T | L00 | L02 | NO | 0 | 0 | 0 | 0 | 50 | 0 |
| 113T | L02 | L04 | YES | 0 | 0 | 9 | 0 | 0 | 0 |
| 4T5 | L04 | L04 | NO | 0 | 0 | 0 | 7 | 0 | 0 |
| 178 | L03 | L05 | YES | 0 | 0 | 0 | 5 | 4 | 9 |
| 15Y | L00 | L00 | YES | 1 | 5 | 0 | 0 | 0 | 0 |
| 190 | L01 | L03 | NO | 10 | 0 | 0 | 0 | 0 | 0 |
I want to fill column 'Is Aligned or not' based on a condition that I want to check if there is any value present between the range mentioned in column 2 and 3, so for example here for the 1st row of data i.e. ID as 111T the range would be L00 to L05, so I need the Alteryx code to check if there is any value (greater than zero) is present between L00 to L05 i.e. it needs to check L00,L01,L02,L03,L04,L05. So as there is a value present in L01 and L02 as well, I entered YES in column 4.
But when we check for ID as A112T, the range is L00 to L02, so the Alteryx needs to check if there is any value that is greater than zero in L00 or L01 or L02 and as there are no value present other than zero, I entered the value of column 4 as NO.
And if there is a value present which is outside the range mentioned in column 2 and 3, then also the value of column 4 should be NO, as that is happening for ID 4T5 and 190
So I need help in deciding how to check or select a range and solve the whole problem.
P.S - I have added on 5 ranges but in real I have around 100 ranges i.e. L00 to around L99
Any help would be highly appreciated.