If array formula?

spacely

Board Regular
Joined
Oct 26, 2007
Messages
248
Hello,

I was trying to write an If-array type formula (shift+ctrl+enter) to get the following results. Given values in columns A, B, and C:

A B C D
33 Needs Attention 34 Needs Attention
34 Routed 34 Needs Attention
34 Needs Attention 36 Not Found
35 Routed 35 Routed

I should get results in D, with one formula dragged down.
If value in C doesn't exist in A, "Not Found" goes into D.
If value in C is somewhere in A, check if value next to the occurrence is ever "Needs Attention", if so, put that in D.
If value in C is somewhere in A, and B next to it is not "Needs Attention", put "Routed" in D.

Maybe...
{=IF(C11=$A$11:$A$13,IF(COUNTIF($B$11:$B$13,"Needs Attention")>0,"Not Routed","Routed"),"Not Found")}

Doesn't work...

Maybe I'm close?

David
 
Last edited:

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
See if the following works for you (this is a regular formula, not an array one):

=IF(COUNTIF(A:A,C1)=0,"Not Found",IF(COUNTIFS(A:A,C1,B:B,"Needs Attention")>0,"Needs Attention","Routed"))
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,451
Members
452,643
Latest member
gjcase

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