Extract data based on 2 criteria (using Index & Match)

emirmansouri

New Member
Joined
May 31, 2012
Messages
42
I would like to extract data that is equal to High in the "Priority" and does not have a value in "Date Closed".
Basically need to list the High priority jobs which have not been closed, so in the Priority column it must be High and in the Date Closed column it must be a blank.
If these conditions are met then extract the data from the Issue (Column C) and list it in Column L. Then find the next high priority item that has no date closed.

So first one that meets these conditions is "Budget has not been initiated yet" in C2.
But as I have built my code I have not found away to extract data using blank cells as a criteria, hence, my last result shows No8, but this is wrong as it has a date because it was closed.

My criteria will not change, its always the same.

1st Criteria = High
2nd Criteria = Blank Cell (as in there is no closed date)

Here is my code so far and the table below

Code:
=IF(ISERROR(INDEX($B$2:$G$61,SMALL(IF($D$2:$D$61=$I$2,ROW($D$2:$D$61)),ROW(1:1))-1,2)),"",INDEX($B$2:$G$62,SMALL(IF($D$2:$D$61=$I$2,ROW($D$2:$D$61)),ROW(1:1))-1,2))


#
Issue
Priority
Date Opened
Date Closed
Comments
Open Issue Priorities
Top 5 Issues
1
Budget has not been initiated yet.
High
6-May-15
To be expedited
High
4
2
TAPL still not selected
Low
6-May-15
10-May-15
SDM to take action on an urgent basis
Medium
Issue
3
Strategy Document Delayed
Medium
2-Feb-15
10-May-15
Data missing
Low
Budget has not been initiated yet.
4
No4
High
6-May-15
No4
5
No5
High
6-May-15
10-May-15
No5
6
No6
Medium
6-May-15
10-May-15
No7
7
No7
High
6-May-15
No8
8
No8
High
6-May-15
10-May-15
9
No9
Low
6-May-15
10-May-15
10
No10
High
6-May-15

<tbody>
</tbody>

<tbody>
</tbody>

Please help as I have been searching for 2 days and so far I have not seen this done anywhere.

Thanks in advance.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try

=IFERROR(INDEX($B$2:$G$61,SMALL(IF($F$2:$F$62<>"",IF($D$2:$D$61=$I$2,ROW($D$2:$D$61))),ROW(1:1))-1,COLUMN(A2)),"")
 
Upvote 0
It looks like the first formula goes in L4 in your sheet, based on that, try

=IFERROR(INDEX($C:$C,SMALL(IF($D$2:$D$61=$I$2,IF($F$2:$F$61="",ROW($F$2:$F$61))),ROWS($L$4:$L4))),"")
 
Upvote 0
Think it should be <>""

It looks like the first formula goes in L4 in your sheet, based on that, try

=IFERROR(INDEX($C:$C,SMALL(IF($D$2:$D$61=$I$2,IF($F$2:$F$61="",ROW($F$2:$F$61))),ROWS($L$4:$L4))),"")
 
Upvote 0
Think it should be <>""

I Don't

But as I have built my code I have not found away to extract data using blank cells as a criteria, hence, my last result shows No8, but this is wrong as it has a date because it was closed.

My criteria will not change, its always the same.

1st Criteria = High
2nd Criteria = Blank Cell (as in there is no closed date)
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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