Related:
- Excel formula if word is in cell
- If cell contains specific text then return value in another cell vba - Best answers
- If cell contains multiple values - Best answers
- Excel cell color formula - Guide
- Student position formula in excel ✓ - Office Software Forum
- How to calculate position (1st,2nd,3rd) in excel....? - Excel Forum
- Calculation of positions in excel ✓ - Excel Forum
- Number to words in excel formula - Guide
1 response
OK, the syntax for IF is as follows:
[code]
=IF(LOGIC_TEST,TRUE,FALSE)
/code
So, an example of such would be:
In cell a3 set "=IF(a1="Widget","123","")"
So if you were to put Widget, in cell A1, Cell A3 would have an "123".
You can then NEST if statements, for the other values. Like so:
=IF(a1="Widget","123",if(a1="Sprocket","999",if(a1="Hinge","567","NONE")))
I hope you understand this example.
[code]
=IF(LOGIC_TEST,TRUE,FALSE)
/code
So, an example of such would be:
In cell a3 set "=IF(a1="Widget","123","")"
So if you were to put Widget, in cell A1, Cell A3 would have an "123".
You can then NEST if statements, for the other values. Like so:
=IF(a1="Widget","123",if(a1="Sprocket","999",if(a1="Hinge","567","NONE")))
I hope you understand this example.