IF AND Formula with multiple conditions

thomassharp

Board Regular
Joined
Dec 10, 2014
Messages
84
Hi,I am trying to use IF formula to show whether a row of cells matches:

[TABLE="width: 320"]
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Dog[/TD]
[TD="width: 64"]Dog[/TD]
[TD="width: 64"]Dog[/TD]
[TD="width: 64"]Fish[/TD]
[TD="width: 64"]Near Match[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]Dog[/TD]
[TD]Fish[/TD]
[TD]Fish[/TD]
[TD]Partial Match[/TD]
[/TR]
[TR]
[TD]Cat[/TD]
[TD]Pig[/TD]
[TD]Fish[/TD]
[TD]Dog[/TD]
[TD]No Match[/TD]
[/TR]
[TR]
[TD]Pig[/TD]
[TD]Pig[/TD]
[TD]Pig[/TD]
[TD]Pig[/TD]
[TD]Full Match[/TD]
[/TR]
</tbody>[/TABLE]

I have tried =IF(A2=B2,"Partial Match","No Match")IF(AND(A2=B2,A2=C2),"Near Match","No Match"))
But obviously this doesn't work.

Very interested in the logic of the syntax needed here...

Thanks!
 
Because the first formula generates a value from 0 to 6 (seven values) but the CHOOSE needs to start at 1. So I turn the range 0-6 to 1-7 by adding 1.

Did I explain that well?

Of course there are some values which aren't possible.

That solution - the first formula I posted - allows you to compare whether one line is more of a match than another line, if you need to do that.

R.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top