I have 3 variables in my study- salinity, temperature and % sat oxygen.
My model is if % sat oxygen is > 60, then the relative change is 1. But if % sat oxygen < 60 then the relative change has to picked from a decision rule table:
Salinity (PPT) Relative Change
T: 10-16 C T: 17-23 C T: 24-30 C
7 0.518 0.6112 0.562
14 0.02 0 .7223 0.9113
21 0.667 0.813 0.6277
This rule means that if the salinity is between 7-14, use first row, choose the temp range, if it is between 10-16 use 0.518, 17-23 use 0.6112, 24-30 use 0.562. Salinity between 14-21 use second row, look for the temp range and select the relevant change and so on. salinity 21-28 then third row.
So far I have
=IF(H4>60,1,IFERROR(VLOOKUP(A4,J9:M11,IF(AND(D4>=10,D4<=16),2,IF(AND(D4>=17,D4<=23),3,IF(AND(D4>=24,D4<=30),4)))),"Not In Range")
H4 is % sat, A4 is salinity J9:M11 is the decision rule, D4 is temperature.
Thanks,
Let me know if anybody has any more questions or did not understand any part.
My model is if % sat oxygen is > 60, then the relative change is 1. But if % sat oxygen < 60 then the relative change has to picked from a decision rule table:
Salinity (PPT) Relative Change
T: 10-16 C T: 17-23 C T: 24-30 C
7 0.518 0.6112 0.562
14 0.02 0 .7223 0.9113
21 0.667 0.813 0.6277
This rule means that if the salinity is between 7-14, use first row, choose the temp range, if it is between 10-16 use 0.518, 17-23 use 0.6112, 24-30 use 0.562. Salinity between 14-21 use second row, look for the temp range and select the relevant change and so on. salinity 21-28 then third row.
So far I have
=IF(H4>60,1,IFERROR(VLOOKUP(A4,J9:M11,IF(AND(D4>=10,D4<=16),2,IF(AND(D4>=17,D4<=23),3,IF(AND(D4>=24,D4<=30),4)))),"Not In Range")
H4 is % sat, A4 is salinity J9:M11 is the decision rule, D4 is temperature.
Thanks,
Let me know if anybody has any more questions or did not understand any part.