# meet criteria between ranges

#### jmnpinheiro

##### New Member
Hi,
I want to test a criteria between range A (column A) and range B (column B).
So, for every A value I want it to test the condition, say "IF A+B > 10, write sum result to column C".
The problem is that I want every A values to be tested with every B values (not only the ones in same lines).
Of couse, column C could result bigger than A and B columns.
I tried:
={IF(A1:A\$20+B1:B\$20>10;A1+B1;"")}
={IF(A\$1:A\$20+B\$1:B\$20>10;A1+B1;"")}
={IF(A1:A\$20+B1:B\$20>10;A1+B1;"")}
and many more array variations...
I think I'm not even close

### Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi
Welcome to the board

Try this array formula in C1:

=SMALL(IF(\$A\$1:\$A\$20+TRANSPOSE(\$B\$1:\$B\$20)>10,\$A\$1:\$A\$20+TRANSPOSE(\$B\$1:\$B\$20)),ROWS(\$C\$1:C1))

Copy down

I really appreciated your welcome words. Your suggestion gracefully solved my thread. I tested it using several list dimensions (A>B, A=B and A<B) and one just have to predict final array size and drag down. Completely dynamic, as I intended. Now I'll have to dig some more about all applied syntax. Thank You Very Much.

..I can't post my full message..well,it's a perfect solution Thank You Very Much.

I really appreciated your welcome words. Your suggestion gracefully solved my thread. I tested it using several list dimensions (A>B, A=B and A<B) and one just have to predict final array size drag down. completely dynamic, as i intended. now i'll dig some more about all applied syntax. thank you very much.

I'm glad it helped. Thanks for the feedback.

P. S. the html sometimes messes things up when you use the < symbol. A simple way to go around it is to add a space before and after.

I tested it using several list dimensions (A greater B, A equal B and A smaller B) and one just have to predict final array size and drag down.
Completely dynamic, as I intended.
Now I'll have to dig some more about all applied syntax

Replies
9
Views
467
Replies
1
Views
199
Replies
4
Views
118
Replies
6
Views
796
Replies
6
Views
691

1,219,997
Messages
6,151,361
Members
451,022
Latest member
Baijano23

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