I am trying to use an array in Google Forms Response sheet for a time sheet. I want to have a rolling 30 day total for hours worked. The first 30 days is not able to lookup 30days prior.

={"Previous-Duty Hours 30D prior";ArrayFormula(VLOOKUP(($B2-30),$B2:$F,5, FALSE))}

The result is Error:

Did not find value '43523' in VLOOKUP evaluation.

How do I ignore the first 30days? I also want to array =SUM(I2+H3) but the first row =F2. How do I manage the first row?

enter image description here

  • your formula should probably be:

    ={"Previous-Duty Hours 30D prior"; 
      ARRAYFORMULA(IFERROR(VLOOKUP((B2:B-30), B2:F, 5, 0)))}

  • Thanks very much. Your formula works a treat. I am sorting on Column B. I will need to seek some assistance on filling down in column G and onwards as my mojo with formula's seems to have departed. Really appreciate your assistance. – heli.s Apr 8 at 1:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.