You would use an IF function to do this. If you knew that A3 can only have yes or no in it, then in another cell you would put this:
=IF(A3="yes",A1,A2)
If it is possible that A3 might not have yes or no in it, then you would need to have a third action, like leave the cell blank or put zero into. In this case the formula would be:
=IF(A3="yes",A1,IF(A3="no",A2,""))
or
=IF(A3="yes",A1,IF(A3="no",A2,0))
Note that there are two brackets at the end because there are two IF functions. It would be safer to use one of the final two formulas, as if A3 was blank, you would get an error. You should also be careful to have the yes and no in the same case all the time, although Excel will say they are equal if it was like yes and YES.
The formula bar.
first
In Excel an equation can be a formula. All formulas in Excel must start with the equals sign. That is what tells Excel it is a formula.
formula
A formula.
All formulas must begin with the equals sign. That is how Excel knows it is a formula.
A green arrow in the corner of an excel cell means that excel suspects soemthing may be wrong with the formula in a particular cell.
In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.In a cell and in the formula bar.
Formulas go into cells. You can type them directly into a cell or on the formula bar, which will then enter it into the selected cell.
You place your cursor in the cell, and delete the formula.
The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.The #REF error in Excel indicates that Excel is trying to reference a cell that does not exist. It often happens when rows or columns or removed, or cells are deleted completely, leaving the formula unable to find the cell that it is trying to reference. You will see it in place of a cell in the middle of a formula, indicating the cell it cannot find.
To enter the formula in selected cell, To view the farmula or content of selected cell.