How to utilize date add function in Google spreadsheet?

前端 未结 10 739
忘掉有多难
忘掉有多难 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:23

    In a fresh spreadsheet (US locale) with 12/19/11 in A1 and DT 30 in B1 then:

    =A1+right(B1,2)
    

    in say C1 returns 1/18/12.

    As a string function RIGHT returns Text but that can be coerced into a number when adding. In adding a number to dates unity is treated as one day. Within (very wide) limits, months and even years are adjusted automatically.

提交回复
热议问题