How to utilize date add function in Google spreadsheet?

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

    You can just add the number to the cell with the date.

    so if A1: 12/3/2012 and A2: =A1+7 then A2 would display 12/10/2012

    0 讨论(0)
  • 2021-02-05 00:17

    what's wrong with simple add and convert back?

    if A1 is a date field, and A2 hold the number of days to add: =TO_DATE((DATEVALUE(A1)+A2)

    0 讨论(0)
  • 2021-02-05 00:21

    The direct use of EDATE(Start_date, months) do the job of ADDDate. Example:

    Consider A1 = 20/08/2012 and A2 = 3

    =edate(A1; A2)
    

    Would calculate 20/11/2012

    PS: dd/mm/yyyy format in my example

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题