Ride The Lightning
Board Regular
- Joined
- Jul 14, 2005
- Messages
- 238
Hi
I have 2 ranges. Range 1 has fixed values and contains the following information:
A B C D
100 0 1.86 1.12
100 0 1.86 1.12
100 0 1.86 1.12
100 0 1.86 1.12
100 0 1.86 1.12
Range 2 is in flux and contains:
E F
25 1.1
30 1.5
15 1.5
200 1.5
200 1.5
15 1.5
What I would am doing is checking if the data in cell E3 (25) in Range 2 fits the criteria in cells A2 (100) and B2 (0) in Range 1. So I have the formula =IF(E3<=$A$2,IF(E3>=$B$2,1,0),0). The following line is IF(E4<=$A$3,IF(E4>=$B$3,1,0),0). Etc. The problem is when I get to cell E7 (15) I want to loop back to start comparing E7 to cells A2 and B2. Of course I can use a variant of the previous formula, but I am using a large amount of data stretching across many columns and want avoid having to enter in alot of formulas manually.
If anyone could suggest an alternative I would be much obliged.
Regards
RTL
I have 2 ranges. Range 1 has fixed values and contains the following information:
A B C D
100 0 1.86 1.12
100 0 1.86 1.12
100 0 1.86 1.12
100 0 1.86 1.12
100 0 1.86 1.12
Range 2 is in flux and contains:
E F
25 1.1
30 1.5
15 1.5
200 1.5
200 1.5
15 1.5
What I would am doing is checking if the data in cell E3 (25) in Range 2 fits the criteria in cells A2 (100) and B2 (0) in Range 1. So I have the formula =IF(E3<=$A$2,IF(E3>=$B$2,1,0),0). The following line is IF(E4<=$A$3,IF(E4>=$B$3,1,0),0). Etc. The problem is when I get to cell E7 (15) I want to loop back to start comparing E7 to cells A2 and B2. Of course I can use a variant of the previous formula, but I am using a large amount of data stretching across many columns and want avoid having to enter in alot of formulas manually.
If anyone could suggest an alternative I would be much obliged.
Regards
RTL