Array formula to return multiple people that meet multiple criteria

Schubby10

New Member
Joined
Aug 16, 2018
Messages
33
Hi I really need some help with this. Sorry I can’t post the excel file here as it has private information.

What I am trying to do is get all of the names of people that spend over 1,000/ month that work for a specific company.

The names are in column a that need to be returned. The amount is column T and the company is column aq. All other info I do not need for this array query. Does anyone know how to write a formula for this ?

Thank you so much,
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Maybe something like this.
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down rows as needed.
Excel Workbook
ABSTUAPAQ
1NameAmountCompany
2Emp1200Com1
3Emp21100Com2
4Emp3565Com3
5Emp43000Com4
6Emp5250Com5
7Emp62500Com2
8Emp7125Com7
9Emp898Com8
10
11
12FindCom2
13NamesEmp2
14Emp6
15
Sheet
 
Upvote 0
Did you enter the formula with CTRL-SHIFT-ENTER? Excel will put {} around the formula if done right.
Is the example I gave close to what your data looks like.
Also you will need to change ranges to match your actual data.
 
Upvote 0
I changed the range and that is exactly how my data looks it returns some of them but not all. Any idea why this would be. Thank you for all your help truly and blessing
 
Upvote 0
How about posting the formula you are using.
Also, remove the IFERROR part of the formula to see what type of error you get.
Code:
INDEX($A$2:$A$9,SMALL(IF($AQ$2:$AQ$9=$B$12,IF($T$2:$T$9>1000,ROW($A$2:$A$9)-ROW($A$2)+1)),ROWS($B$13:B13)))
 
Upvote 0
=index(data!$a$2:data!$a$20000,small(if(data!$aq$2:$aq$20000=“advertising”,if(data!$t$2:data!$t$20000>1000,row(data!$a2:data!$a$20000)-row(data!$a$2)+1)),rows($a$24:a24))))

Error #num
 
Upvote 0
Not sure it works for me. See below using your formula.
Things to check:
Is advertising spelled the same way and no spaces before or after the word.
Are all the values in column T numeric?

Excel Workbook
A
1Emp2
2Emp4
3Emp5
4 
Sheet2
Excel Workbook
ABCSTUVAPAQ
1NameAmountCompany
2Emp1200Com1
3Emp21100advertising
4Emp3565Com3
5Emp43000advertising
6Emp52500advertising
7Emp62500Com2
8Emp7125advertising
9Emp898Com8
data
 
Upvote 0
It looks like it is only giving me back odd numbers ( I have a count if formula to give me different names for same co) why would this be?
 
Upvote 0
I didn't notice this before but in your part of the formula for the ROW you have data!$a2, it should be data!$a$2.

=index(data!$a$2:data!$a$20000,small(if(data!$aq$2:$aq$20000=“advertising”,if(data!$t$2:data!$t$20000>1000,row(data!$a$2:data!$a$20000)-row(data!$a$2)+1)),rows($a$24:a24))))
 
Upvote 0

Forum statistics

Threads
1,223,959
Messages
6,175,645
Members
452,663
Latest member
MEMEH

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