Hi All
Hi All
below formula is working fine but when i try to put in code this is not working i can do with loop but i want to get without loop does this possible, please help
=IFERROR(MID(INDEX($A$3:$A$17,AGGREGATE(15,6,ROW($A$3:$A$17)-2/((--MID($A$3:$A$17,6,2)=65)+(--MID($A$3:$A$17,6,2)=66)),ROW(INDIRECT("1:"&SUM((--MID($A$3:$A$17,6,2)=65)+(--MID($A$3:$A$17,6,2)=66)))))),6,255),"")
Hi All
below formula is working fine but when i try to put in code this is not working i can do with loop but i want to get without loop does this possible, please help
=IFERROR(MID(INDEX($A$3:$A$17,AGGREGATE(15,6,ROW($A$3:$A$17)-2/((--MID($A$3:$A$17,6,2)=65)+(--MID($A$3:$A$17,6,2)=66)),ROW(INDIRECT("1:"&SUM((--MID($A$3:$A$17,6,2)=65)+(--MID($A$3:$A$17,6,2)=66)))))),6,255),"")
VBA Code:
Cells(3, "c") = Evaluate("IFERROR(MID(INDEX($A$3:$A$" & p & ",AGGREGATE(15,6,ROW($A$3:$A$" & p & ")-2/((--MID($A$3:$A$" & p & ",6,2)=65)+(--MID($A$3:$A$" & p & ",6,2)=66)),ROW(INDIRECT(""1:""&SUM((--MID($A$3:$A$" & p & ",6,2)=65)+(--MID($A$3:$A$" & p & ",6,2)=66)))))),6,255),"""")")
Turn Formula in Evaluate Function
Hi All below formula is working fine but when i try to put in code this is not working i can do with loop but i want to get without loop does this possible, please help...
www.excelforum.com