Thomas Kuriakose
Active Member
Dear All,
Kindly look at the below function and suggest a better way of writing this. Currently the desired result is correct, but would like to know whether this can be simplified.
=INDEX('Data Validation & Input Sheet'!$K$3:$K$9,MATCH('Cost Sheet Details'!D22,'Data Validation & Input Sheet'!$J$3:$J$9,0))+INDEX('Data Validation & Input Sheet'!$K$3:$K$9,MATCH('Cost Sheet Details'!D23,'Data Validation & Input Sheet'!$J$3:$J$9,0))+INDEX('Data Validation & Input Sheet'!$K$3:$K$9,MATCH('Cost Sheet Details'!D24,'Data Validation & Input Sheet'!$J$3:$J$9,0))+IF(D20<>0,'Data Validation & Input Sheet'!$M$3*D20,0)+IF('Cost Sheet Details'!D21<>0,'Data Validation & Input Sheet'!$M$4*D21,0)
Thank you so much,
with regards,
thomas
Kindly look at the below function and suggest a better way of writing this. Currently the desired result is correct, but would like to know whether this can be simplified.
=INDEX('Data Validation & Input Sheet'!$K$3:$K$9,MATCH('Cost Sheet Details'!D22,'Data Validation & Input Sheet'!$J$3:$J$9,0))+INDEX('Data Validation & Input Sheet'!$K$3:$K$9,MATCH('Cost Sheet Details'!D23,'Data Validation & Input Sheet'!$J$3:$J$9,0))+INDEX('Data Validation & Input Sheet'!$K$3:$K$9,MATCH('Cost Sheet Details'!D24,'Data Validation & Input Sheet'!$J$3:$J$9,0))+IF(D20<>0,'Data Validation & Input Sheet'!$M$3*D20,0)+IF('Cost Sheet Details'!D21<>0,'Data Validation & Input Sheet'!$M$4*D21,0)
Thank you so much,
with regards,
thomas