找回密码
 注册
搜索
查看: 578|回复: 3

[电脑数码] Excel 2007 question!!

[复制链接]
发表于 2010-8-24 07:54 PM | 显示全部楼层 |阅读模式


I have A1 to A9 holds 2009 holiday:

1/1/10
1/18/10
2/15/10
4/2/10
5/31/10
7/5/10
9/6/10
11/25/10
12/24/10

Now on A12 I manually type 09/01/2010, in A13 I use formula "=WORKDAY(A12, 1, A1:A9)", which gives me 1 working day beyond A12, exclude holidays in A1 to A9. This is correct.
Ok, then I copy A13 and paste to A14, I expect the formula in A14 as "=WORKDAY(A13, 1, A1:A9)", but excel gives me "=WORKDAY(A13, 1, A2:A10)", as see in the pic.

How to fix it, instead of editing the formula for every fxxking cell?

Thanks!
11.jpg

评分

1

查看全部评分

 楼主| 发表于 2010-8-24 07:55 PM | 显示全部楼层
should be 2010 holidays
回复 鲜花 鸡蛋

使用道具 举报

发表于 2010-8-24 08:38 PM | 显示全部楼层
(1) 定义holiday:  Formulas => Define Name => holiday=Sheet1!$A$1:$A$9

(2) A13的公式改为:=WORKDAY(A12, 1, holiday)

(3) 拷贝A13的公式到A14, A15, etc.,或者下拉A13的下边框,自动拷贝。

excel.jpg
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2010-8-24 08:43 PM | 显示全部楼层
回复 3# 源济

u the man!

评分

1

查看全部评分

回复 鲜花 鸡蛋

使用道具 举报

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

本版积分规则

手机版|小黑屋|www.hutong9.net

GMT-5, 2024-5-9 04:28 AM , Processed in 0.097106 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表