Vlookup with multiple results

AceFI

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

I have a table similar to;

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Lead #[/TD]
[TD]Date In[/TD]
[TD]Referrer[/TD]
[TD]Sales Rep[/TD]
[TD]Customer[/TD]
[TD]Status[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1/8/18[/TD]
[TD]Company A[/TD]
[TD]AG[/TD]
[TD]Joe Blogs[/TD]
[TD]Active[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]14/8/18[/TD]
[TD]Company A[/TD]
[TD]HB[/TD]
[TD]John Citizen[/TD]
[TD]Active[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]21/8/18[/TD]
[TD]Company B[/TD]
[TD]AG[/TD]
[TD]Sherly Gray[/TD]
[TD]Dead[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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