Need some help!
I want to select data rows from 3 or 4 columns (based on CONDITIONAL statements, then execute rather simply formula e.g. if conditions met in selecting the correct rows
If(
:YEAR == 2020, :CROP | Corn | Soybean,
:TYPE == IF, :"Mean(YIELD(BU/A)_OR, 13)"n - :"Mean(YIELD(BU/A)_OR, 8)"n,
:ELSE == :EMPTY (I prefer to not use ELSE statement if it is possible....just want the above conditional statements to be met to know exactly what gets added in new column via formula)
OR,
If(
:YEAR == 2020, :CROP | Corn | Soybean,
:TYPE == FOLIAR, :"Mean(YIELD(BU/A)_OR, 4)"n - :"Mean(YIELD(BU/A)_OR, 1)"n,
OR,
If(
:YEAR == 2021, :CROP | Corn | Soybean,
:TYPE == IF, :"Mean(YIELD(BU/A)_OR, 6)"n - :"Mean(YIELD(BU/A)_OR, 2)"n
OR,
If(
:YEAR == 2021, :CROP | Corn | Soybean,
:TYPE == FOLIAR, :"Mean(YIELD(BU/A)_OR, 3)"n - :"Mean(YIELD(BU/A)_OR, 1)"n
)