Saturday, 25 February 2017

Create Gantt Chart in Excel

Gantt Chart



1)Open the excel
2)Insert Bar chat




3)right-click and choose "Select Data Source"


4)click "Add"


5)choose Start in Series name,select B3 to B16 in Series value,and then click "OK"


6)Click "Add" again,Select "Days" in Series Name,select C3~C16 in Series value. It will show red bar and blue bar.


7)Click "Edit"and select A3~A16. It will display Task Name in Bar Chart


8)You also can change color in CHART TOOLS


9) Click blue bar

10)select "Format Data Series..."

11)You will see "Format Data Series" Dialog

12)select "No fill" in Fill option and select "No line" in Border




13)Blue bar will be disappeared.

14)Click tasks and right click. Select "Format Axis..."

15) Enable "Categories in reverse order" in Axis option.


16)The tasks will follow the beginning of the date from the top row to the following, then we have to modify the date of the Y axis, marked the work of the first day of the date and the end of the date (red date)

17)select these dates and then select "Accounting" in number. Next is to click "comma style". You will get two numbers.


18)click on the date part of the chart, right click, select "Format Axis..."


19) Type the number of the first day in Minimum and and the number of the second day in Maxmum.

20)You can change date format in Value panel

21)Done!!


You can download file from there. https://1drv.ms/x/s!Aj7aP_ymnvA3gZ5GuA64nq5G-7zpXw




用EXCEL 畫甘特圖 (Gantt Chart)

企劃書的撰寫當中需畫製作甘特圖



用EXCEL怎麼畫呢?

1)開啟excel將資料打成表格
2)如圖示當中選擇圖表,堆疊橫條圖




3)表格出現啦!這時點右鍵,然後按選取資料


4)按新增


5)數列名稱選擇開始工作日(Start),數列值選擇B4~B16當中的日期,然後按確定


6)在按一次新增,數列名稱選擇工作天數(Days),數質列選C3~C16當中的天數,後面的圖就會出現紅色和藍色兩段


7)接著按編輯,然後去拉A3~A16,工作項目名稱就會出現,然後按確定


8)在表格工具當中可以改變顏色


9)接著,點一下圖中的藍色bar,按右鍵

10)點選最下面的選項

11)然後就會出現這個框

12)在第二個填滿的地方選擇無填滿,在框線色彩的地方選擇無線條




13)然後表格就會變成這樣,藍色的地方不見了

14)接著點一下工作項目,然後點右鍵,選擇最下面的選項

15)在類別次序反轉的地方勾選起來


16)工作就會照著開始的日期從上排到下面,接著我們要修改Y軸的日期, 在下面打上工作開始的第一天日期和工作結束的日期(紅色的日期)

17)將剛剛打上的兩個日期選起來,然後看到會計專用下面的逗點滑鼠點一下,日期會變成數字


18)接著點一下圖表上方的日期部分,點右鍵,選最下面的功能


19)在坐標軸選項的最小值當中輸入開始工作日第一天轉換後的數值,最大值輸入工作結束日轉換後的數值

20)之後,選擇數值的部分可以做更動,如果工作都在同一年當中進行就可以只選擇只顯示圖中的月份和日期的部分

21)最後圖表就完成啦!







計算工作天Excel


公式 
=NETWORKDAYS(start_date,end_date,holidays)




說明 要計算兩個日期之間的工作日數,可以使用NETWORKDAYS函數。 NETWORKDAYS自動排除週末,它也可以選擇性地排除節假日的自定義列表。
例如,如果您在單元格B4中的日期為2017年2月7日(星期一),而單元格C4中的日期為2016年3月3日(星期五),則此公式將返回5:

=NETWORKDAYS(B4,C4)
注意,如果NETWORKDAYS是工作日,則在計算中包括開始日期和結束日期。 NETWORKDAYS還可以排除節假日的自定義列表。例如,如果您在B9:B11中有假日日期,則可以通過將該範圍作為公式中的第三個參數添加來使NETWORKDAYS不將這些日期包括為工作日:
=NETWORKDAYS(B4,C4,B9:B11)

客制週末

如果你需要考慮到自定義週末(即周末只有星期六,星期日和星期一等),你需要切換到更健壯的NETWORKDAYS.INTL功能,這允許你設置一周的哪幾天被考慮考慮週末,通過以數字代碼的形式提供週末參數。有關詳細信息,請參閱 NETWORKDAYS.INTL for more information.

您可以從那裡下載文件  https://1drv.ms/x/s!Aj7aP_ymnvA3gZ5F1ggrqc8nAruAFQ
















Get workdays between dates


Generic formula 
=NETWORKDAYS(start_date,end_date,holidays)




Explanation 
To calculate the number of workdays between two dates, you can use the NETWORKDAYS function. NETWORKDAYS automatically excludes weekends, and it can optionally exclude a custom list of holidays as well.
For example, if you have the date 2017/2/27 (a Monday) in cell B4, and 2017/3/3 (a Friday) in cell C4, this formula will return 5:
=NETWORKDAYS(B4,C4)
Note that NETWORKDAYS includes both the start and end dates in the calculation if they are workdays.
NETWORKDAYS can also exclude a custom list of holidays. For example, if you have holiday dates in H1:H10, you can tell NETWORKDAYS not to include these dates as workdays by adding that range as a third argument in the formula:
=NETWORKDAYS(B4,C4,B9:B11)

Custom weekends

If you need take into account custom weekends (i.e. weekends are Saturday only, Sunday and Monday, etc.) you'll need to switch to the more robust NETWORKDAYS.INTL function, which allows you to set what days of the week are considered are considered weekends, by supplying a weekend argument in the form of a numeric code. See NETWORKDAYS.INTL for more information.

You can download file from there  https://1drv.ms/x/s!Aj7aP_ymnvA3gZ5F1ggrqc8nAruAFQ
















how-to-recursively-create-subfolder-in-each-folder-of-a-directory-in-cmd

test.cmd: @echo off setlocal for /f "usebackq tokens=*" %%a in (`dir /b /a:d`) do ( rem enter the directory pushd %%a echo...