0

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

3
  • pls, share a copy of your sheet
    – user0
    Commented Apr 4, 2019 at 0:30
  • what is the easiest way share the sheet? docs.google.com/spreadsheets/d/…
    – heli.s
    Commented Apr 4, 2019 at 0:37
  • copy paste link of your sheet here and enable view in sharing
    – user0
    Commented Apr 4, 2019 at 0:38

1 Answer 1

0
  • your formula should probably be:

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

1
  • 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
    Commented Apr 8, 2019 at 1:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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