Question

I want to compare text in E3, E4, E5 and E6 and if all the same return, say, "+5%" (text) to cell E15 and “+0%” otherwise.

I tried =IF(text), =COUNT(text) and some other formulas without success.

Which formula should I apply?

Was it helpful?

Solution

I finally managed it. It was easier than I thouhg. Here is a code:

=IF((E3=E4)*AND(E3=E5)*AND(E3=E6);"+5%";"+0%")

OTHER TIPS

You do not appear to be asking for code but without one cannot 'send' in Excel. You can however 'pull' so in E15 =IF(AND(E3=E4,E3=E5,E3=E6),"+5%","") might suit.

Edit

Given what now appears to be the locale setting for OP:

=IF(AND(E3=E4;E3=E5;E3=E6);"+5%";"")

or, to include result for FALSE (not mentioned in OP):

=IF(AND(E3=E4;E3=E5;E3=E6);"+5%";"+0%")

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top