Anbuselvam K
Member
Dear Excel Genius
The below formula in the excel table, drag across right is not updating correctly.
=LET(q,Consumption[Consumption RM01],p,Purchase[Price RM01],s,Purchase[Qty RM01],sa,SCAN(0,s,LAMBDA(a,v,SUM(a,v)))-s,qa,SUM(q)-sa,
by,BYROW(SCAN(0,q,LAMBDA(a,v,a+v)),LAMBDA(v,LET(qa,v-sa,SUM(IF(qa>0,IF(qa>s,s,qa))*p)))),INDEX(by-IFERROR(SMALL(by,SEQUENCE(ROWS(q),,0)),),ROWS(HU$8:[@[Cost of RM01]])))
See the attached sheet cell HU8 Formula, I want to drag the formula across the right side till LP8 (100 columns)
The problem is Purchase[Price RM01] & Purchase[Qty RM01] is not updating as it is not positioned in the line. it is located in the alternate column.
How do I drag across with proper formula updation?
I am expecting your help. I really appreciate any help you can provide.
The below formula in the excel table, drag across right is not updating correctly.
=LET(q,Consumption[Consumption RM01],p,Purchase[Price RM01],s,Purchase[Qty RM01],sa,SCAN(0,s,LAMBDA(a,v,SUM(a,v)))-s,qa,SUM(q)-sa,
by,BYROW(SCAN(0,q,LAMBDA(a,v,a+v)),LAMBDA(v,LET(qa,v-sa,SUM(IF(qa>0,IF(qa>s,s,qa))*p)))),INDEX(by-IFERROR(SMALL(by,SEQUENCE(ROWS(q),,0)),),ROWS(HU$8:[@[Cost of RM01]])))
See the attached sheet cell HU8 Formula, I want to drag the formula across the right side till LP8 (100 columns)
The problem is Purchase[Price RM01] & Purchase[Qty RM01] is not updating as it is not positioned in the line. it is located in the alternate column.
How do I drag across with proper formula updation?
I am expecting your help. I really appreciate any help you can provide.