Excel中当前sheet进行计算时,可以使用其他sheet中的表格数据。嗨,你别说,model也可以。还以之前的测试数据为例,假如这些测试数据分别是电表度数、水表吨数,要计算降本金额,还需要电单价、水单价。
单价测试数据如下
create table test2(subject varchar2(100),period varchar2(7), price number);
insert into test2('电','2025-01',0.5);
insert into test2('电','2025-02',0.5);
insert into test2('电','2025-03',0.5);
commit;
语句如下

语句效果
