How to utilize date add function in Google spreadsheet?

前端 未结 10 735
忘掉有多难
忘掉有多难 2021-02-04 23:46

I believe the issue I am having now should be much easier in MS Excel. However, since my company uses Google Spreadsheet so I have to figure out a way.

Basically, I have

10条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 00:03

    1. To extract a numeric value out of your string you can use these 2 functions (Assuming you have your value in cell 'A1'):

      =VALUE(REGEXEXTRACT(A1, "\d+"))

      This will get you a numeric value.

    2. I've found no date add function in docs, but you can convert your date into internal date number and then add days number (If your value is in cell 'A2'):

      =DATEVALUE(A2) + 30

    I hope this will help.

提交回复
热议问题