As from the title, I need Excel to auto-populate the B row cells based on the corresponding A row cells content.
So if cell A1
contains X or Y or Z, then cell B1
should equal W, or if A1
contains G or H or J, cell B1
should equal W.
As from the title, I need Excel to auto-populate the B row cells based on the corresponding A row cells content.
So if cell A1
contains X or Y or Z, then cell B1
should equal W, or if A1
contains G or H or J, cell B1
should equal W.
You can try adding this formula to B1:
The first part checks if A1 is either X Y or Z. If it's true, it returns "W", if it's false, it will call for another IF statement, that checks if A1 is in G H or J. If it's true, yes, "W" again, if it's not, it'll just put nothing in there.
It's possible to simplify it, by using only one IF/OR like this:
You might have to replace
;
with,
depending on your locale settings.If the comparative values are to be hard-coded into the formula, it can be tightened up like this.