excel - How to write MAX IF formula in VBA to achieve a lookup on two values -
excel - How to write MAX IF formula in VBA to achieve a lookup on two values -
i have been using array formula resource name entry located in column y, project name in column b , homecoming latest / highest date value in column ae using max function.
this set bluntly, killing spreadsheet due sheer size of info in spreadsheet (60,000 lines). formula is:
{=if(y3="","",iferror(max(if(y$2:$y$60000=y3,if($b$2:$b$60000=b3,$ae$2:$ae$60000))),""))}
if @ table below, formula homecoming 21/04/2014
richard, , 21/06/2014
fred, whom both working on project capitol
.
b | y | ae capitol richard 21/03/2014 capitol richard 21/04/2014 capitol fred 21/05/2014 capitol fred 21/06/2014
i wondering if there way re-write formula in vba in order same result, run more efficient memory? beginner in vba learning.
a pivottable homecoming results mention:
excel vba excel-vba pivot-table nested-if
Comments
Post a Comment