Sorry, may be it's written somewhere but I didn't find...
I need to sum some letter but on each letter corresponds number. I can make it with vloookup, but there will be many vlookups, can you help me to make it better...
this sample table:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]d[/TD]
[TD="align: center"]d[/TD]
[TD="align: center"]n[/TD]
[TD="align: center"]n[/TD]
[TD="align: center"]h[/TD]
[TD="align: center"]p[/TD]
[TD="align: center"]p[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]d[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]n[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]h[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]p[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
so i wrote: =VLOOKUP(A1;C4:D7;2;0)+VLOOKUP(B1;C4:D7;2;0)+VLOOKUP(C1;C4:D7;2;0)+VLOOKUP(D1;C4:D7;2;0)+VLOOKUP(E1;C4:D7;2;0)+VLOOKUP(F1;C4:D7;2;0)+VLOOKUP(G1;C4:D7;2;0)
result is 8+8+12+12+14+0+0=54.
I hope it's clear what is the idea.
Thank you!
I need to sum some letter but on each letter corresponds number. I can make it with vloookup, but there will be many vlookups, can you help me to make it better...
this sample table:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]d[/TD]
[TD="align: center"]d[/TD]
[TD="align: center"]n[/TD]
[TD="align: center"]n[/TD]
[TD="align: center"]h[/TD]
[TD="align: center"]p[/TD]
[TD="align: center"]p[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]d[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]n[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]h[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]p[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
so i wrote: =VLOOKUP(A1;C4:D7;2;0)+VLOOKUP(B1;C4:D7;2;0)+VLOOKUP(C1;C4:D7;2;0)+VLOOKUP(D1;C4:D7;2;0)+VLOOKUP(E1;C4:D7;2;0)+VLOOKUP(F1;C4:D7;2;0)+VLOOKUP(G1;C4:D7;2;0)
result is 8+8+12+12+14+0+0=54.
I hope it's clear what is the idea.
Thank you!