Reputation: 345
I Have data set which contains Duration and Code with subject wise material observed. Which formula i have to use to get the value of total for month=june & Code=BHEB. I have tried using two dimension look up formula.
=INDEX(DataRange, MATCH(Code,Code,0), MATCH(Durations,Duration,0))
it doesn't suit my suitation, i cant change month value to column.
Upvotes: 0
Views: 56
Reputation: 59440
With a helper column (may be hidden), say inserted as A in the image, populated with:
=B1&"|"&C1
and copied down to suit then:
=INDEX(DataRange, MATCH(Code&"|"&Semester,A:A,0), MATCH(Durations,Duration,0))
may serve where the named ranges are:
DataRange : =Sheet!$C$1:$G$5
Code : =Sheet!$J$1
Semester : =Sheet!$J$2
Durations : =Sheet!$J$3
Duration : =Sheet!$C$1:$G$1
or extended to suit.
Upvotes: 1