Hi,
I am trying to extract the type of activity (column I) a specific drilling rig (column Z) will be performing between two dates (columns AP and AO). Essentially the arguements should be for all rows containing the rig name (z2) in column A, whose end date (column J) is <=AP and start date (column K) >=AO, then tell me the type of activity (column I), otherwise 0). Am I close, is there a better way to do this? The answer seems to always report "0" even if there is data?
{=IF(AND(($A$2:$A$1500=Z2),($J$2:$J$1500<=AP$1),($K$2:$K$1500>=AO$1))=TRUE,$I$2:$I$1500,0)}
Thanks for your help!
Loosenut
I am trying to extract the type of activity (column I) a specific drilling rig (column Z) will be performing between two dates (columns AP and AO). Essentially the arguements should be for all rows containing the rig name (z2) in column A, whose end date (column J) is <=AP and start date (column K) >=AO, then tell me the type of activity (column I), otherwise 0). Am I close, is there a better way to do this? The answer seems to always report "0" even if there is data?
{=IF(AND(($A$2:$A$1500=Z2),($J$2:$J$1500<=AP$1),($K$2:$K$1500>=AO$1))=TRUE,$I$2:$I$1500,0)}
Thanks for your help!
Loosenut