作者: sistinechapel 時間: 2012-11-2 09:33 標題: excel 一問
本帖最後由 sistinechapel 於 2012-11-6 22:05 編輯
想計 processing time needed (幾多日)
receive date complete date
----------------------------------------
1/10/2009 3/11/2009
問題係佢食唔到..佢唔識當佢係日期... 佢要 yyyy/mm/dd 先食到. 點搞?
thx!!
----------------
update!!
problem solved!!!!!!!!!!!!
[attach]1452681[/attach]
答案竟然係... M$ office 2010
2010 識自己食
作者: sistinechapel 時間: 2012-11-2 11:02
雖然想計準d...
不過如果唔得, 我打算當一個月30.5日算.
計出黎ge processing time 唔駛一定要整數, 因為我係幾幾百隻case ge average.
作者: kamenjoker 時間: 2012-11-2 11:17
轉做日期然後相減
最後可能仲要除小時去得出日
作者: sistinechapel 時間: 2012-11-2 11:44
已經諗到係用 month, day 呢d function
問題係佢食唔到..佢唔識當佢係日期... 佢要 yyyy/mm/dd 先食到. 點搞?
作者: cl 時間: 2012-11-2 12:16
have you tried datevalue() function?
作者: sistinechapel 時間: 2012-11-2 14:51
已經諗到係用 month, day 呢d function
問題係佢食唔到..佢唔識當佢係日期... 佢要 yyyy/mm/dd 先食到 ...
sistinechapel 發表於 2012-11-2 11:44
依家最大問題係呢個.
如果佢食到, 我用month, day 已經可以
datevalue 點用???
作者: cl 時間: 2012-11-2 15:31
It converts the text to date.
e.g. =datevalue("2009/11/30") or =datevalue("30/11/2009") yields the same value.
作者: sistinechapel 時間: 2012-11-2 16:10
It converts the text to date.
e.g. =datevalue("2009/11/30") or =datevalue("30/11/2009") yields the s ...
cl 發表於 2012-11-2 15:31
it shows "#value!"

thx ching!!
作者: sistinechapel 時間: 2012-11-2 16:13
btw, off topic 一問
依家即係 2012/1/31 <-- 咁叫excel 食到既date format?
咁我想mail merge 係word 見到 31.1.2012, 即係我一定要係excel 整多個column? 因為一mail merge, 佢出返個date 既 value... 咩"4xxxx"
作者: happy_gemini 時間: 2012-11-2 16:25
=DAYS360(A1,B1)
作者: sistinechapel 時間: 2012-11-2 16:40
呢個好似係唔準?? google過, 佢當個個月都係得30 日.
反而樓上ching 過果個 datevalue("<<date>>") return 出黎應該 一相減就係我要ge 數.
不過係食唔到, 唔知點解... 儲存格格式 通用 同日期都試過. 唔得. 甚至好似ching 咁打 "=datevalue"31/1/012"" 都一樣唔得.
作者: cl 時間: 2012-11-2 16:43
回復 8# sistinechapel
datevalue() function only works on text value. May be you should try convert
the cell to text by using =text(a1,"d/m/yyyy") before using datevalue().
作者: cl 時間: 2012-11-2 16:52
回復 8# sistinechapel
By the way, what is your meaning of 食唔到? Do you mean, you must input in the format
yyyy/mm/dd but you want to input in, say, dd/mm/yyyy? If yes, then it is a problem of
locale which can be changed in control panel.
作者: sistinechapel 時間: 2012-11-2 16:52
回復 sistinechapel
datevalue() function only works on text value. May be you should try convert
t ...
cl 發表於 2012-11-2 16:43
[attach]1450832[/attach]
一樣唔得.

作者: Kobukuro 時間: 2012-11-2 17:20
本帖最後由 Kobukuro 於 2012-11-2 18:21 編輯
deleted
作者: cl 時間: 2012-11-2 17:44
回復 14# sistinechapel
Try datevalue("1/31/2012")
作者: sistinechapel 時間: 2012-11-2 17:45
#value! <--- 到底咩事??? 到依家咩 function 都食唔到...
NETWORKDAYS 同 datevalue 都係咁
作者: sistinechapel 時間: 2012-11-2 17:46
一樣唔得
作者: Kobukuro 時間: 2012-11-2 18:24
本帖最後由 Kobukuro 於 2012-11-2 18:26 編輯
Sorry, networkdays 似乎唔啱你情況!!
應該用datedif
http://spreadsheets.about.com/od ... erence-function.htm
我用你#1 兩個日期試過 OK
IF
A1 = 1/10/2009
B1 = 3/11/2009
Result cell = DATEDIF (A1, B1, "D")
作者: andywong623 時間: 2012-11-2 23:09
本帖最後由 andywong623 於 2012-11-2 23:12 編輯
Format Cell果度改個cell type做
d/m/yyyy得唔得?
[attach]1450956[/attach]
作者: wirzers 時間: 2012-11-2 23:59
食唔到日子有兩個方法解決.
第一可以改去控制台改 system locale 的日期格式到 dd/mm/yyyy, 咁你部機就可以食 dd/mm/yyyy
第二個方法用 formula 將 dd/mm/yyyy 改到 yyyy/mm/dd , 假設第一個日子在 cell a1, 在 cell b1 入下面條 formula 並 set 做日子:
=ABS(RIGHT(A1,4)&"/"&MID(A1,FIND("/",A1)+1,(FIND("/",A1,FIND("/",A1)+1)-FIND("/",A1)-1))&"/"&(LEFT(A1,FIND("/",A1)-1)))
[attach]1450981[/attach]
作者: Hihy 時間: 2012-11-3 08:13
提示: 作者被禁止或刪除 內容自動屏蔽
作者: noname 時間: 2012-11-3 16:49
唔駛搞咁多野, 真接相減就係日數.
將佢轉番做普通數字format, 就唔會係個一個"日期".
作者: 冰之風 時間: 2012-11-3 23:04
想計 processing time needed (幾多日)
receive date complete date
------------------------- ...
sistinechapel 發表於 2012-11-2 09:33
係咪咁樣?
[attach]1451363[/attach]
作者: sistinechapel 時間: 2012-11-5 00:28
本帖最後由 sistinechapel 於 2012-11-5 00:30 編輯
下!! 點解ching 咁易ge?!!!
請問係唔係要將A1, B1 ge "儲存格格式" 改做 日期? 跟住就可以就咁減? 佢又識以日數做單位咁醒ge?
作者: sistinechapel 時間: 2012-11-5 11:01
想sum up 一下, 依家最大問題係 d data 食唔到我錯ge 格式: DD/MM/YYYY (我已經用"全部取代"JOR D "." 變做 "/" )
不論 DATEVALUE 同 就咁相減 都唔得.
e.g. =DATEVALUE("31/1/2012") <-- 唔得
係咪一定要轉返做 YYYY/MM/DD 先得 ?
作者: cl 時間: 2012-11-5 15:56
回復 26# sistinechapel
Are you using the net version of Excel? Anyway, try the following
=DATE(VALUE(RIGHT(A1,4)),VALUE(MID(A1,SEARCH("/",A1)+1,SEARCH("/",A1,SEARCH("/",A1)+1)-SEARCH("/",A1)-1)),VALUE(LEFT(A1,SEARCH("/",A1)-1)))
作者: 冰之風 時間: 2012-11-5 20:02
想sum up 一下, 依家最大問題係 d data 食唔到我錯ge 格式: DD/MM/YYYY (我已經用"全部取代"JOR D "." 變 ...
sistinechapel 發表於 2012-11-5 11:01
因為#1的原訊息已删除,所以猜想你的data並非直接輸入到Excel的,是嗎? 如果是便易辦,data是從那裏抽出來的呢?
作者: sistinechapel 時間: 2012-11-6 01:33
原本data 係excel 黎. 格式係 dd.mm.yyyy 同事教我用 ctrl-F 將 "." 轉晒做 "/"
依家係 dd/mm/yyyy 都係都係食唔到......
作者: sistinechapel 時間: 2012-11-6 01:39
回復 sistinechapel
Are you using the net version of Excel? Anyway, try the following
=DATE(VALUE( ...
cl 發表於 2012-11-5 15:56
睇到

可以解釋下ma. 同埋你d address 係based on 邊個 example?
thx!!!! 有心高手, 只係可能太高...
作者: cl 時間: 2012-11-6 08:01
回復 30# sistinechapel
Assuming your date in text format of d/m/yyyy stored in cell A1, using date() function, the
parameters of date() are year, month and day. So the first part of value(right()) is to
extract the year part from the string in A1 (i.e. "2012") and change it to number
(i.e. value("2012")). The second part is to extract the month from the string stored in A1 by
using mid() and search() functions. Mid() is to extract the month from the string which
requires 3 parameters. 1st is the location of the string (i.e. A1). 2nd is the starting position
which is the position after the first "/". 3rd parameter is the length of the string which
is calculated by finding the last position of the string (i.e. the last position of "/") minus
the starting position. Finally the 3rd parameter of date() is day which is first 1 or 2 digit
of the string stored in A1 which can be found by using search().
You can try using each function separately to see the intermediate result.
作者: 冰之風 時間: 2012-11-6 19:06
原本data 係excel 黎. 格式係 dd.mm.yyyy 同事教我用 ctrl-F 將 "." 轉晒做 "/"
依家係 dd/mm/yyyy ...
sistinechapel 發表於 2012-11-6 01:33
咁dd.mm.yyyy 是否直接input去Excel呢? 也許upload部份data的Excel file比我地試吓吧!
作者: sistinechapel 時間: 2012-11-6 22:05
problem solved!!!!!!!!!!!!
[attach]1452681[/attach]
答案竟然係... M$ office 2010
2010 識自己食
作者: sistinechapel 時間: 2012-11-7 09:01
想死...
返到公司又唔得...
公司係 office 2010... 屋企係 office 2010 starter 反而得...
想點???
作者: tseyik 時間: 2012-11-7 09:22
提示: 作者被禁止或刪除 內容自動屏蔽
作者: 果仁 時間: 2012-11-7 11:14
應該係控制台既日期設定問題, #21 的師兄講得O岩
只係純打幾個日子 , 再用 A-B
以下係SET左 M/D/YYYY 同 D/M/YYYY
我只係用 EXCEL2000 都做到呢樣野
樓主不妨試試啦
[attach]1452869[/attach]
[attach]1452870[/attach]
作者: sistinechapel 時間: 2012-11-7 15:06
控制台? 公司機冇 admin 權...
作者: sistinechapel 時間: 2012-11-7 15:08
excel要第一下食到佢係日期格式先改到ga!!!!!
31/1/2012 <--- 食唔到 (係得我屋企食到)
2012/1/31 <--- 食到
作者: Hihy 時間: 2012-11-8 21:47
提示: 作者被禁止或刪除 內容自動屏蔽

