dianamruelas
New Member
- Joined
- Sep 28, 2015
- Messages
- 44
- Office Version
- 365
- Platform
- Windows
I'm running this function on just under one million lines. I have a decent processor, but it still ends up being a several-hour-long project. Is there an easier way via macro? Here I have the rows limited to 21460 for this particular data set, but I would like to remove the limit to match to the entire column, as the number of rows will vary each time I run it. Any help is greatly appreciated.
=IFERROR(INDEX($H$2:$H$21460,MATCH(MIN(IF(ISNUMBER(SEARCH(C2,$G$2:$G$21460)),IF(A2-$F$2:$F$21460>=0,A2-$F$2:$F$21460))),IF(ISNUMBER(SEARCH(C2,$G$2:$G$21460)),IF(A2-$F$2:$F$21460>=0,A2-$F$2:$F$21460)),0)),"PRE EFFECTIVE")
=IFERROR(INDEX($H$2:$H$21460,MATCH(MIN(IF(ISNUMBER(SEARCH(C2,$G$2:$G$21460)),IF(A2-$F$2:$F$21460>=0,A2-$F$2:$F$21460))),IF(ISNUMBER(SEARCH(C2,$G$2:$G$21460)),IF(A2-$F$2:$F$21460>=0,A2-$F$2:$F$21460)),0)),"PRE EFFECTIVE")