从给定的Quarter Excel

时间:2018-04-11 09:18:16

标签: excel

所以我做了一些挖掘,似乎无法找到我的问题的答案。

基本上,我希望能够提取特定季度内的哪个月。

使用

自动提供给定季度
  

“= ROUNDUP(MONTH(日期)/ 3,0)”

式。现在我想要的是在本季度的第1个月,第2个月和第3个月的其他3个单元格

例如

B3 = =ROUNDUP(MONTH(date)/3,0) = 2

C4 = April (1st month that falls in B3)
D4 = May (2nd Month that falls in B3) 
E4 = June (3rd Month That falls in B3)

OR

B3 = =ROUNDUP(MONTH(date)/3,0) = 3

C4 = July (1st month that falls in B3
D4 = August (2nd Month that falls in B3)
E4 = September (3rd Month That falls in B3)

任何想法或指示都会非常感激:)

谢谢!

2 个答案:

答案 0 :(得分:0)

试试这个..

相应地更改单元格范围

=IF($B$1=1,"January",IF($B$1=2,"April",IF($B$1=3,"July","October")))
=IF($B$1=2,"May",IF($B$1=3,"August",IF($B$1=4,"November","Feb")))
=IF($B$1=2,"June",IF($B$1=3,"September",IF($B$1=4,"December","March")))

enter image description here

答案 1 :(得分:0)

C4单元格和Drag and Right

中使用此公式
=TEXT(DATE(YEAR(NOW()),$B$3+COLUMN(B$3),"01"),"MMM")

enter image description here