Vlookup with multiple results

AceFI

Board Regular
Joined
Apr 20, 2012
Messages
91
hi all.

I have a table similar to;

Lead #Date InReferrerSales RepCustomerStatus
11/8/18Company AAGJoe BlogsActive
214/8/18Company AHBJohn CitizenActive
321/8/18Company BAGSherly GrayDead

<tbody>
</tbody>

I'm wanting to have sheet 2 display on deals for Company A that are active..
I have tried;
{IFERROR(INDEX('Data Sheet'!A:A,SMALL(IF('Data Sheet'!$C:$C="Company A",IF('Data Sheet'!$F:$F="Dead",ROW($A:$A))),ROWS($A$1:A1))),"")}
and drag down, however not getting any data coming accross?

thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
If you want ACTIVE why does your formula look for DEAD. Since there is no DEAD status for Company A you will get all blanks in your example.
It's also not a good idea to use whole column ranges with array formulas as it can slow things down as the IFERROR functiom is going to check all 1 million plus rows even if there is no data in them.
 
Upvote 0
Try changing "Dead" to "Active" in the formula you posted.
 
Upvote 0
duh.. changed it to active and it worked haha

thanks all.

If i'm wanting to add another identifier in the next right column to be "Tag" with options A B C, how would i add this to the formula for all "A" 's

thanks
 
Upvote 0
Just add another IF statment

Code:
[TABLE="width: 1137"]
<colgroup><col width="1137"></colgroup><tbody>[TR]
   [TD="width: 1137"]=IFERROR(INDEX('Data   Sheet'!A:A,SMALL(IF('Data Sheet'!$C:$C="Company A",IF('Data   Sheet'!$F:$F="Active"[COLOR=#ff0000],IF('Data   Sheet'!$G:$G="Tag"[/COLOR],ROW($A:$A)))),ROWS($A$1:A1))),"")
[/TD]
 [/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,705
Members
449,048
Latest member
81jamesacct

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