楼主: ahnulxy
5863 10

[经济] 如果在excel中快速输入季度时间序列字符串? [推广有奖]

已卖:2109份资源

学科带头人

3%

还不是VIP/贵宾

-

威望
1
论坛币
13191 个
通用积分
2411.7140
学术水平
137 点
热心指数
166 点
信用等级
96 点
经验
49444 点
帖子
874
精华
2
在线时间
1511 小时
注册时间
2008-11-4
最后登录
2025-12-17

楼主
ahnulxy 发表于 2014-3-25 00:25:39 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
如题,我想快速输入如下字符串, 搜了半天,网上都没有有用的信息,大家帮帮忙!
1947Q1
1947Q2
1947Q3
1947Q4
1948Q1
1948Q2
1948Q3
1948Q4

....
2012Q1
2012Q2
2012Q3
2012Q4

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:EXCEL 时间序列 xcel exce cel excel 字符串

已有 2 人评分经验 论坛币 学术水平 热心指数 收起 理由
chenyi112982 + 20 精彩帖子
yangyuzhou + 20 + 1 + 1 鼓励积极发帖讨论

总评分: 经验 + 20  论坛币 + 20  学术水平 + 1  热心指数 + 1   查看全部评分

琅琅教育 www.longlongedu.com  
人生最大的杯具:白天看中国股市,晚上看中国足球!

沙发
ahnulxy 发表于 2014-3-25 00:59:21
没办法,只能曲线救国了,编了段matlab代码,解决问题:
for i=1947:2012
    for j=1:4
        disp([num2str(i), 'Q',num2str(j)])
    end
end
琅琅教育 www.longlongedu.com  
人生最大的杯具:白天看中国股市,晚上看中国足球!

藤椅
ahnulxy 发表于 2014-3-25 01:01:24
其实还有其他的办法,刚发现,输入
1999 年 7 月, 1999 年 10 月, 2000 年 1 月
或者
Jan-47,Apr-47
这种形式的字符串
然后快速填充,也能达到目的

1947Q1
1947Q2
这种字符串
就不行
琅琅教育 www.longlongedu.com  
人生最大的杯具:白天看中国股市,晚上看中国足球!

板凳
ahnulxy 发表于 2014-3-25 01:04:28
更多序列http://office.microsoft.com/zh-cn/excel-help/HP001216366.aspx
初始选择扩展序列

1, 2, 3

4, 5, 6,...

9:00

10:00, 11:00, 12:00,...

周一

周二, 周三, 周四,...

星期一

星期二, 星期三, 星期四,...

一月

二月, 三月, 四月,...

一月, 四月

七月, 十月, 一月,...

1999 年 1 月, 1999 年 4 月

1999 年 7 月, 1999 年 10 月, 2000 年 1 月,...

1 月 15 日, 4 月 15 日

7 月 15 日, 10 月 15 日,...

1999, 2000

2001, 2002, 2003,...

1 月 1 日, 3 月 1 日

5 月 1 日, 7 月 1 日, 9 月 1 日,...

Qtr3(或 Q3 或 Quarter3)

Qtr4, Qtr1, Qtr2,...

文本1, 文本A

文本1, 文本A, 文本3, 文本A,...

第 1 阶段

第 2 阶段, 第 3 阶段,...

产品 1

产品 2, 产品 3,...



已有 1 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
yangyuzhou + 15 + 1 + 1 + 1 多种方法

总评分: 论坛币 + 15  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

琅琅教育 www.longlongedu.com  
人生最大的杯具:白天看中国股市,晚上看中国足球!

报纸
pingguagain 发表于 2014-3-25 01:58:25
You can add 4 columns: Entering year in the first column, "Q" in the 2nd, and quarters in the 3rd. In the 4th column, use function "concatenate".
已有 2 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
ahnulxy + 1 热心帮助其他会员
yangyuzhou + 10 + 1 + 1 + 1 方法更简单

总评分: 论坛币 + 10  学术水平 + 1  热心指数 + 2  信用等级 + 1   查看全部评分

地板
yangyuzhou 发表于 2014-3-25 09:56:58
这种时间序列我记得在stata中和eviews中可以生成,何必一定要用excel

7
ahnulxy 发表于 2014-3-26 00:19:27
pingguagain 发表于 2014-3-25 01:58
You can add 4 columns: Entering year in the first column, "Q" in the 2nd, and quarters in the 3rd. I ...
Do you mean manually input the years? The year has to be the same every four rows. I dont know how to let excel do this automatically. Can you be more specific?
琅琅教育 www.longlongedu.com  
人生最大的杯具:白天看中国股市,晚上看中国足球!

8
ahnulxy 发表于 2014-3-26 00:21:16
yangyuzhou 发表于 2014-3-25 09:56
这种时间序列我记得在stata中和eviews中可以生成,何必一定要用excel
你说的也有道理。但有时候,数据必须先在excel整理好,再导入。有时整理好后,就不想在导入了,直接在excel里面做分析,画图了。
琅琅教育 www.longlongedu.com  
人生最大的杯具:白天看中国股市,晚上看中国足球!

9
pingguagain 发表于 2014-3-27 08:02:08
ahnulxy 发表于 2014-3-26 00:19
Do you mean manually input the years? The year has to be the same every four rows. I dont know how ...
You only need to enter 4 rows for years. More specifically, it looks like
      A
1   1990
2   1990
3   1990
4   1990
5  =A1+1
Then copy and past down for the rest cells.

10
ahnulxy 发表于 2014-3-28 00:59:37
pingguagain 发表于 2014-3-27 08:02
You only need to enter 4 rows for years. More specifically, it looks like
      A
1   1990
Thanks so much!
I have thought of this way before using built-in function of excel: concatenate. But I have no ideas about how to input the years since they must be the same every four rows.

This should be another way that out!
琅琅教育 www.longlongedu.com  
人生最大的杯具:白天看中国股市,晚上看中国足球!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2025-12-26 11:10