New Contributor

Hi guys,


In theory, a fairly simple task but I just can't figure out how to write the formula correctly (yes, a bit of an Excel doofus, apologies)! If you can help, I'll be hugely grateful.


Basically, just want to combine two IF's to produce a result, hence:


If the text in cell A2 says one thing and the text in cell B2 says another thing, then the resulting text in cell C2 will be the final thing. 


Multiple possible permutations as you can see in the attached file but even so, you think I'd be able to get that right but noooooo...


Please save my sanity.




3 Replies
best response confirmed by Gypseyman (New Contributor)




I entered this formula in cell J6 as arrayformula with ctrl+shift+enter. Search values have to be entered in cells K6&L6 and result is returned in J6.


An alternative would be a nested formula like the one i entered in cell D32. Search values are in cell D30 and E30 in this example.



Hi QP,

For some reason, when I open the file you sent and click on the cell J6 containing the formula, (even if only to look at it), as soon as I click away from it, the text within the cell changes from MAINTAIN to #N/A... I've tried removing the parentheses on the formula and then restoring them but that results in the actual formula showing as text in the cell. Rather strange...

On a positive note, however, the nested formula seems to work perfectly so I intend to go with that. Thanks so much!!! You have been a massive help and I really appreciate it, truly.

Cheers and thanks again.


I'm glad my solution is helpful.


The VLOOKUP formula is an arrayformula that has to be entered with ctrl+shift+enter. If this formula is shown only as text, click in the formula bar and then press ctrl+shift+enter (in this order and press all of them) and this will put the { } around the formula and the formula will work (again). The { } can't be entered manually.


If you click in cell J6 then instead of clicking in another cell you can click on the red cross to the left of the formula bar. This will maintain the arrayformula. In attached file you can see the red cross on the upper left side. I added an blue arrow to indicate where to click.