How can I write this IF AND more clearly

iamrufus

New Member
Joined
Feb 19, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi everyone

I have a column that calculates if 2 cells have a matching value and if they do it enters Match and if they don't it enters No Match. This works fine, what I am wanting to do is have a formula that looks at all the cells that have the value Match. The cell range with the values will always be the same G6:G7 and G12:G20.

The formula below is in a cell that calculates this for me and when all the above cells have the value Match it adds in the value Complete and until this value states complete it will have the value Not Complete. This does work fine but I can't help but think there must be a cleaner way to write it?

=IF(AND(G6="Match",G7="Match",G11="Match",G12="Match",G13="Match",G14="Match",G15="Match",G16="Match",G17="Match",G18="Match",G19="Match",G20="Match"),"Complete","Not Complete")

Appreciate any advice
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try this:
Excel Formula:
=IF(AND(COUNTIF(G6:G7,"Match")=2,COUNTIF(G11:G20,"Match")=10),"Complete","Not Complete")
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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