Retrieving Data in rows without spaces

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,
I am trying to find a way of listing data from Column DW if column ED is Greater than 0 and column EK is "ABC"

I would ideally need the data to be under each other rather than on separate rows

Hope this makes sense

Many 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.
How about
=IFERROR(INDEX($DW$2:$DW$31,AGGREGATE(15,6,ROW($DW$2:$DW$31)-ROW($DW$2)+1/(($ED$2:$ED$31>0)*($EK$2:$EK$31="abc")),ROWS($1:1))),"")
 
Upvote 0
Hi Fluff,

many thanks for the help

What is the AGGREGATE(15,6 meaning please
 
Upvote 0
Hi Fluff,

Awesome thanks

Would there be a 2007 option for this formula as I assume this only works on 2010 onwards

Thanks
 
Upvote 0
How about
=IFERROR(INDEX($DW$2:$DW$31,SMALL(IF(($ED$2:$ED$31>0)*($EK$2:$EK$31="abc"),ROW($DW$2:$DW$31)-ROW($DW$2)+1),ROWS($1:1))),"")

This is an array formula & needs to be confirmed with Ctrl Shift Enter, rather than just Enter
 
Upvote 0
That's perfect, thanks Fluff

Just one last ask if may

Could I add another condition to this ie "DEF" in column EK

Thanks again
 
Upvote 0
Use
($EK$2:$EK$31={"abc","def"})
 
Upvote 0
Thanks Fluff, can these be cell references instead of "abc"
 
Upvote 0
No, youl'd need to change it to
IF(($ED$2:$ED$31>0)*(($EK$2:$EK$31=$K$1)+($EK$2:$EK$31=$L$1))
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

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