meet criteria between ranges

jmnpinheiro

New Member
Joined
Sep 11, 2014
Messages
4
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 :(
Thanks in advance
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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 ;)
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,392
Members
449,081
Latest member
JAMES KECULAH

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