Excel Formula - Index Match or Something Else ??

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,516
Office Version
  1. 2016
Platform
  1. Windows
Dear Friends,

I have the below data from A2:C13
I want to generate a list of Ref # where Target Date <> Blank & Actual Date = Blank
If Target Date <> Blank & Actual date = Blank against all Ref # only then consider it - other wise if against any one Ref # Actual Date <> Blank then don't consider it


Short Formula.xlsx
ABC
1REF #Target DateActual Date
2503
3503
45041-Jul-24
55041-Jul-2415-Jul-24
65041-Jul-24
75052-Jul-24
85052-Jul-24
95052-Jul-24
1050615-May-24
1150710-Feb-24
1250710-Feb-24
1350710-Feb-24
1450710-Feb-24
1550710-Feb-2410-Feb-24
16
17
18Desired Result ↓
19REF #
20505
21506
Sheet2


Regards,

Humayun
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try.
Excel Formula:
=IFERROR(INDEX(A$2:A$15,AGGREGATE(15,6,ROW($A$2:$A$15)/(($B$2:$B$15<>"")*($C$2:$C$15="")*ISERROR(MATCH($A$2:$A$15,$G$1:$G1,0))*(COUNTIFS($A$2:$A$15,$A$2:$A$15,$B$2:$B$15,"<>",$C$2:$C$15,"<>")=0)),1)-ROW($A$1)),"")
Copy downwards till blank result is obtained.
If Target Date and Actual Date is required copy across for 3 columns.
 
Upvote 0
Solution
Try.
Excel Formula:
=IFERROR(INDEX(A$2:A$15,AGGREGATE(15,6,ROW($A$2:$A$15)/(($B$2:$B$15<>"")*($C$2:$C$15="")*ISERROR(MATCH($A$2:$A$15,$G$1:$G1,0))*(COUNTIFS($A$2:$A$15,$A$2:$A$15,$B$2:$B$15,"<>",$C$2:$C$15,"<>")=0)),1)-ROW($A$1)),"")
Copy downwards till blank result is obtained.
If Target Date and Actual Date is required copy across for 3 columns.

Many Thanks! for providing the Formula
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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