Dear Experts,
I have a data sheet, as i attached a link of image below.
C3:J3 has dates from 19/2 till 27/2.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Cell Address
[/TD]
[TD]Code
[/TD]
[TD]Consumption Range
[/TD]
[TD]Expected Purchase Range
[/TD]
[/TR]
[TR]
[TD]A4
[/TD]
[TD]01040001
[/TD]
[TD]C8:J8
[/TD]
[TD]C5:J5
[/TD]
[/TR]
[TR]
[TD]A12
[/TD]
[TD]03010003
[/TD]
[TD]C16:J16
[/TD]
[TD]C13:J13
[/TD]
[/TR]
[TR]
[TD]A20
[/TD]
[TD]11030009
[/TD]
[TD]C24:J24
[/TD]
[TD]C21:J21
[/TD]
[/TR]
</tbody>[/TABLE]
I want to calculate the sum of item based on Code & specfic date in Cosumption and Expected Purcahse.
I tried below code and got perfect result, but it is too long to remeber. Please suggest shortest code to calcuate.
=IF(A3="","",IF(A3=MRP!$A$4,INDEX(MRP!$C$8:$J$8,MATCH('Final Summary'!$F$1,MRP!$C$3:$J$3,0)),IF(A3=MRP!$A$12,INDEX(MRP!$C$16:$J$16,MATCH('Final Summary'!$F$1,MRP!$C$3:$J$3,0)),IF(A3=MRP!$A$20,INDEX(MRP!$C$24:$J$24,MATCH('Final Summary'!$F$1,MRP!$C$3:$J$3,0))))))
I have a data sheet, as i attached a link of image below.
C3:J3 has dates from 19/2 till 27/2.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Cell Address
[/TD]
[TD]Code
[/TD]
[TD]Consumption Range
[/TD]
[TD]Expected Purchase Range
[/TD]
[/TR]
[TR]
[TD]A4
[/TD]
[TD]01040001
[/TD]
[TD]C8:J8
[/TD]
[TD]C5:J5
[/TD]
[/TR]
[TR]
[TD]A12
[/TD]
[TD]03010003
[/TD]
[TD]C16:J16
[/TD]
[TD]C13:J13
[/TD]
[/TR]
[TR]
[TD]A20
[/TD]
[TD]11030009
[/TD]
[TD]C24:J24
[/TD]
[TD]C21:J21
[/TD]
[/TR]
</tbody>[/TABLE]
I want to calculate the sum of item based on Code & specfic date in Cosumption and Expected Purcahse.
I tried below code and got perfect result, but it is too long to remeber. Please suggest shortest code to calcuate.
=IF(A3="","",IF(A3=MRP!$A$4,INDEX(MRP!$C$8:$J$8,MATCH('Final Summary'!$F$1,MRP!$C$3:$J$3,0)),IF(A3=MRP!$A$12,INDEX(MRP!$C$16:$J$16,MATCH('Final Summary'!$F$1,MRP!$C$3:$J$3,0)),IF(A3=MRP!$A$20,INDEX(MRP!$C$24:$J$24,MATCH('Final Summary'!$F$1,MRP!$C$3:$J$3,0))))))