英文:
Google Sheets Dragfill isn't properly calculating based on highlighted cells
问题
这是正确的公式样式。
单元格 B2 =SUM(Daily!B2:B6)
单元格 B3 =SUM(Daily!B7:B11)
单元格 B4 =SUM(Daily!B12:B16)
当我突出显示这三个单元格并向下拖动时,我希望单元格 B5 的公式填充为 =SUM(Daily!B17:B21)
但是,拖动下来会使其填充为 =SUM(Daily!B5:B9)
。
如何修复此问题以便能够拖动填充该列?
英文:
This is what the formulas look like correctly.
Cell B2 =SUM(Daily!B2:B6)
Cell B3 =SUM(Daily!B7:B11)
Cell B4 =SUM(Daily!B12:B16)
When I highlight those 3 cells and drag down I expect Cell B5 formula to fill as =SUM(Daily!B17:B21)
Instead dragging down makes it populate as =SUM(Daily!B5:B9)
How do I fix this so I can drag fill that column?
Also sorry if I didn't post this correct way. First time here.
Cheers
答案1
得分: 0
使用新的动态数组公式自动获取结果。尝试-
=MAP(SEQUENCE(100,1,2,5),SEQUENCE(100,1,6,5),LAMBDA(x,y,SUM(INDEX(Daily!B:B,x):INDEX(Daily!B:B,y))))
英文:
Use new dynamic array formulas to get results automatically. Try-
=MAP(SEQUENCE(100,1,2,5),SEQUENCE(100,1,6,5),LAMBDA(x,y,SUM(INDEX(Daily!B:B,x):INDEX(Daily!B:B,y))))
答案2
得分: 0
你也可以使用 OFFSET
。
=MAP(SEQUENCE(ROUNDUP(COUNT(Daily!B2:B)/5),1,0,5),LAMBDA(_,SUM(OFFSET(Daily!B2:B6,_,))))
英文:
You could also use OFFSET
.
=MAP(SEQUENCE(ROUNDUP(COUNT(Daily!B2:B)/5),1,0,5),LAMBDA(_,SUM(OFFSET(Daily!B2:B6,_,))))
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论