I'm truly stuck....

corppunishment11

Board Regular
Joined
Dec 7, 2018
Messages
51
I am trying to write a formula that will look at a constant data point (C2) and return all values related to C2. In other words, list all items from a different spreadsheet that refer to John Doe

Example:

=IFERROR(VLOOKUP($C$2,'sheet1'l$B$2:$C$153,2,FALSE),"")

For the first cell, it returns what I want.

C2: John Doe E2 shows, "1,000,000" perfect.

However, E3 through E150 also show, "1,000,000".

How do I get it to keep looking at C2 but return all of the other values?

Thanks!!
 
Try
=IFERROR(INDEX('Pending Data'!$C$2:$C$1364,SMALL(IF('Pending Data'!$B$2:$B$1364=$B$5,ROW('Pending Data'!$B$2:$B$1364)-ROW('Pending Data'!$B$2)+1),ROWS($1:1))),"")
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
This is the data on the Pending Data sheet

B2 C2

[TABLE="width: 286"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: center"]#N/A[/TD]
[TD]723516[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[TD]A78276[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[TD]00581[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[TD]13532[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[TD]13533[/TD]
[/TR]
[TR]
[TD]SMITH, JOHN[/TD]
[TD="align: right"]13333[/TD]
[/TR]
[TR]
[TD]SMITH, JOHN[/TD]
[TD="align: right"]551[/TD]
[/TR]
[TR]
[TD]SMITH, JOHN[/TD]
[TD="align: right"]635[/TD]
[/TR]
[TR]
[TD]SMITH, JOHN[/TD]
[TD="align: right"]12130[/TD]
[/TR]
[TR]
[TD]SMITH, JOHN[/TD]
[TD="align: right"]13350[/TD]
[/TR]
[TR]
[TD]SMITH, JOHN[/TD]
[TD="align: right"]13714[/TD]
[/TR]
[TR]
[TD]SMITH, JOHN[/TD]
[TD="align: right"]978[/TD]
[/TR]
[TR]
[TD]DOE, JOHN[/TD]
[TD="align: right"]1088[/TD]
[/TR]
[TR]
[TD]DOE, JOHN[/TD]
[TD="align: right"]1153[/TD]
[/TR]
[TR]
[TD]SMITH, CHRIS[/TD]
[TD="align: right"]1154[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
You need to get rid of the #N/A values, otherwise it won't work
 
Upvote 0

Forum statistics

Threads
1,226,694
Messages
6,192,473
Members
453,726
Latest member
JoeH57

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