[英]How to add months and get the month of that year in Google Sheets
在Google Sheets中,我試圖找出一種方法來將一定數量的月份添加到單元格中,這將給我一年中的月份。 我不想做的是添加幾個月並獲得總月數。
[Example of what I want to do]
Cell A1 = 6 (As in the month of June)
Cell A2 = 10 (The number of months I want to add to A1)
Logic that I want: Cell A3 = A1 + A2 = 4 (As in the month of April of the following year)
[Example of what I don't want to do]
Cell A1 = 6 (as in the month of June)
Cell A2 = 10 (The number of months I want to add to A1)
Logic that I don't want: Cell A3 = A1 + A2 = 16
這可能嗎?
利用:
=MOD(A1+A2,12)
您現在可以添加任意數量的月份。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.