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.
<tbody>
</tbody>
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.
Cell Address | Code | Consumption Range | Expected Purchase Range |
A4 | 01040001 | C8:J8 | C5:J5 |
A12 | 03010003 | C16:J16 | C13:J13 |
A20 | 11030009 | C24:J24 | C21:J21 |
<tbody>
</tbody>
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))))))