My range1 is D4:M4 & range2 is D6:M6. Both range1 & range2 consists numerical values
Range3:D10:M10 which consists of “1” or “0”
Output cell: Q6 which should give result as per the below conditions:
1. Formula should check the ‘last’ cell in which “1” appears in D10:M10
2. Now it has to consider range1 & range2 both up to the column in which ‘last’ “1” appears.
3. Then starting from the 1st column of range1 and range2, Q6=D6,IF(D4>E4 AND D6>E6)
4. Else Q6=D6,IF(D4>F4 AND D6>F6),E6,IF(E4>F4 AND E6>F6)
5. Else Q6=D6,IF(D4>G4 AND D6>G6),E6,IF(E4>G4 AND E6>G6),F6,IF(F4>G4 AND F6>G6)
And so on…….
Q6=0, IF all D10:M10=0 OR all cells of range1=0 OR all cells of range2=0
How to accomplish?
Thanks in advance.
Bookmarks