Excel Formula - Index Match or Something Else ??

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,536
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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,224,813
Messages
6,181,107
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