# I've bitten off more than I can chew :)

#### JHELP

##### New Member
Im trying to take a set of circumstances and generate a YES for an exact match of all 4 circumstances

Example=
In 4 seperate cells I input the following information to get a yes or no answer

1 2 3 4

500-519 0x30 65 Full = YES (example 1)

500-519 0x30 85 Full = NO (example 2)

The above cells references the below cells to find the true or false answer.

500-519 0x30 65 Full
500-519 0x30 70 Full
500-519 0x30 75 Full
500-519 0x30 80 Full
500-519 1x30 65 Full
500-519 1x30 70 Full
500-519 1x30 75 Full
500-519 1x30 80 Full
500-519 1x30 85 Full

Im am using

=IF((AND(COUNTIF(B13:B6788,B12)>0,COUNTIF(C13:C6788,C12)>0,COUNTIF(D13:D6788,D12)>0,COUNTIF(E13:E6788,E12)>0)),"YES","NO")

Its is not requiring all of the cells to be true based on the previous answer. It is just looking to see if the information exist in the row versus forcing all info to be true. I hope this makes sense. PLease help.

### Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi JHELP

Another option, in this case, is to look for the concatenation of the values

Code:
``=isnumber(match(b12&c12&d12&e12,B13:B6788&C13:C6788&D13:D6788&E13:E6788,0))``
This is an array formula and so MUST be entered with CTRL+SHIFT+ENTER and not just ENTER.

Hope this helps
PGC

Replies
9
Views
621
Replies
7
Views
194
Replies
13
Views
848
Replies
1
Views
221
Replies
17
Views
745

1,219,905
Messages
6,150,901
Members
450,991
Latest member
ExcelDoer

### 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.

### Which adblocker are you using?

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

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