I have need of a formula that can have several different cell values and values. There is a base cell which has just 2 possible values (Yes and No). Each of the other cells can have multiple values but only 1 will contain a specific value and when this is TRUE then a value of a specified corresponding cell should be returned. False = 0.
Example
Populate cell F5 with the identified value using an appropriate formula
Find the ONE cell in the range D1:D5 that contains the value X and return the corresponding cell value
B1 = Yes (True) {If FALSE return "0")
If cell D1 = X then return the value of Cell H1 or
If cell D2 = X then return the value of Cell H2 or
If cell D3 = X then return the value of Cell H3 or
If cell D4 = X then return the value of Cell H4 or
If cell D5 = X then return the value of Cell H5 or
If value X not found, return value "0"
I tried this shorter formula where B1 = "Yes" D1 = "Y", D2 ="X" and cell H1 contained "£1.00 and cell H2 contained £2.00.
=IF(AND(B1="Yes",OR(D1="X",H1),OR(D2="X",H2)),0)
The formula was accepted but returned "0"
Please can someone assist
Many thanks
Example
Populate cell F5 with the identified value using an appropriate formula
Find the ONE cell in the range D1:D5 that contains the value X and return the corresponding cell value
B1 = Yes (True) {If FALSE return "0")
If cell D1 = X then return the value of Cell H1 or
If cell D2 = X then return the value of Cell H2 or
If cell D3 = X then return the value of Cell H3 or
If cell D4 = X then return the value of Cell H4 or
If cell D5 = X then return the value of Cell H5 or
If value X not found, return value "0"
I tried this shorter formula where B1 = "Yes" D1 = "Y", D2 ="X" and cell H1 contained "£1.00 and cell H2 contained £2.00.
=IF(AND(B1="Yes",OR(D1="X",H1),OR(D2="X",H2)),0)
The formula was accepted but returned "0"
Please can someone assist
Many thanks