作者查詢 / heavendemon

總覽項目: 發文 | 留言 | 暱稱
作者 heavendemon 在 PTT [ Office ] 看板的留言(推文), 共35則
限定看板:Office
首頁
上一頁
1
下一頁
尾頁
[算表] 加總vba
[ Office ]10 留言, 推噓總分: +1
作者: runaway580 - 發表於 2017/04/22 14:57(8年前)
1Fheavendemon: 文字都部分有重複嗎? 沒有的話我會先讓文字欄向下填04/22 15:06
2Fheavendemon: 滿 然後用simif加總B欄位的值04/22 15:07
4Fheavendemon: 抱歉 筆誤 謝謝so大提醒04/22 15:30
[問題] Excel sumifs多條件 VBA陣列
[ Office ]61 留言, 推噓總分: 0
作者: heavendemon - 發表於 2017/03/28 22:15(8年前)
14Fheavendemon: 謝謝so大 指點 關於陣列的部分 小弟我實測後結果也是03/29 00:44
15Fheavendemon: 和sumif函數結果不同 我用監看陣列後也看不明白03/29 00:44
16Fheavendemon: a(1,1)並不是A1的值 不過是有出現在A欄 但a(1,2)的值03/29 00:46
17Fheavendemon: 不是B1外 根本沒有出現在原本的range裡 是小弟理解錯03/29 00:46
18Fheavendemon: 誤還是這個陣列本身就有問題 如果so大 方便 可否用陣03/29 00:47
19Fheavendemon: 列示範 sumifs的寫法 如果是要兩個criteria就會變成03/29 00:49
20Fheavendemon: 三欄的陣列? a(i,1),(i,2),(i,3)03/29 00:49
21Fheavendemon: 或有任何加速sumifs在VBA的方法 幾千筆跑下來很費時03/29 00:58
22Fheavendemon: 另外我發現這兩個方法應該都是用本身欄位中的值當作03/29 01:14
25Fheavendemon: criteria 但我的函數是將跨工作頁的cell當criteria03/29 01:16
26Fheavendemon: 所以才不能用樞紐分析 不知道這樣是不是還可以用陣列03/29 01:16
27Fheavendemon: 的方式執行出sumifs的效果03/29 01:17
34Fheavendemon: 所以在dictionary裡面 前面一定是key 後面就是item03/29 10:34
35Fheavendemon: d(a(i,1)&"_"&a(i,2))就是一定是對應到a(i,3)03/29 10:37
36Fheavendemon: 不知道我這樣理解有沒有錯 非常感謝so大這麼晚還解答03/29 10:38
39Fheavendemon: 了解 另外我要將不連續的range放到陣列裡面 先使用03/29 11:38
40Fheavendemon: application.union 再丟進陣列 但陣列只讀取到第一個03/29 11:39
41Fheavendemon: range 陣列一定要連續range沒有其他辦法?或是另開一03/29 11:40
42Fheavendemon: 陣列去除存另外的range ?03/29 11:41
44Fheavendemon: https://imgur.com/a/Csa93 用陣列試了一下出現中斷03/29 16:01
45Fheavendemon: on error resume next 之後在B欄某一criteria的結果03/29 16:03
47Fheavendemon: 是錯的 不過是有順利跑完 就是16140.41這個crieria03/29 16:04
48Fheavendemon: 結果和sumifs不同03/29 16:05
49Fheavendemon: 錯誤是型態不符合03/29 16:06
53Fheavendemon: http://imgur.com/a/v2Tyt 結果做了儲存格和陣列的03/29 18:54
54Fheavendemon: 比對後,速度反而更慢 平均100row40秒 這個比對的部03/29 18:55
55Fheavendemon: 有沒有比較聰明效率的寫法 感覺繞了一大圈回到原點..03/29 18:56
59Fheavendemon: 小弟對陣列真的不熟悉 不知道能不能有簡單的示範參考03/29 20:10
[問題] Excel參考欄位隨著排序跑
[ Office ]2 留言, 推噓總分: 0
作者: llzzyy01 - 發表於 2017/03/16 23:09(8年前)
2Fheavendemon: 我也只想到和樓上差不多 就是用sumif抓A1,B1值再加總03/17 12:09
[問題] Access關聯圖設計
[ Office ]11 留言, 推噓總分: +2
作者: regret066 - 發表於 2016/09/05 09:58(9年前)
3Fheavendemon: 不是很清楚 測驗編號有涵蓋日期? 若沒有 一樣的測驗09/10 10:43
4Fheavendemon: 會產生什麼問題?09/10 10:43
請問Access2010登入需輸入帳密的問題
[ Office ]1 留言, 推噓總分: +1
作者: perasa - 發表於 2014/06/12 16:52(11年前)
1Fheavendemon: 找到了! 我也有相同問題 一直無解 重發個看看04/19 11:06
首頁
上一頁
1
下一頁
尾頁