Hello,
Below is an example of the data I am working with:
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]=LEFT(B2,2)[/TD]
[TD="align: center"]Full Location[/TD]
[TD="align: center"]ID[/TD]
[TD="align: center"]Units[/TD]
[/TR]
[TR]
[TD="align: center"]A0[/TD]
[TD="align: center"]A010101A[/TD]
[TD="align: center"]74517894[/TD]
[TD="align: center"]10[/TD]
[/TR]
[TR]
[TD="align: center"]D0[/TD]
[TD="align: center"]D010102A[/TD]
[TD="align: center"]74517894[/TD]
[TD="align: center"]100[/TD]
[/TR]
[TR]
[TD="align: center"]GD[/TD]
[TD="align: center"]GD10103A[/TD]
[TD="align: center"]96441511[/TD]
[TD="align: center"]50[/TD]
[/TR]
[TR]
[TD="align: center"]RE[/TD]
[TD="align: center"]RE10101A[/TD]
[TD="align: center"]74517894[/TD]
[TD="align: center"]100[/TD]
[/TR]
[TR]
[TD="align: center"]RE[/TD]
[TD="align: center"]RE10102A[/TD]
[TD="align: center"]87456430[/TD]
[TD="align: center"]144[/TD]
[/TR]
[TR]
[TD="align: center"]RE[/TD]
[TD="align: center"]RE10103A[/TD]
[TD="align: center"]74517894[/TD]
[TD="align: center"]100[/TD]
[/TR]
</tbody>[/TABLE]
Here is the output I have in mind:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]INPUT ID HERE[/TD]
[TD="align: center"]Total units in RE[/TD]
[TD="align: center"]Total units in other[/TD]
[/TR]
[TR]
[TD="align: center"]74517894[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"]110[/TD]
[/TR]
</tbody>[/TABLE]
I've been able to use vlookup to display one row of data, however it gets very complicated very quickly when I try to incorporate summing of multiple vlookups.
And even more so when I try to separate 'RE' units from the other units.
Would it be easier to create two tables first in order to separate 'RE' locations from 'other locations'?
Any pointers in the right direction would really help.
Thank you.
Below is an example of the data I am working with:
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]=LEFT(B2,2)[/TD]
[TD="align: center"]Full Location[/TD]
[TD="align: center"]ID[/TD]
[TD="align: center"]Units[/TD]
[/TR]
[TR]
[TD="align: center"]A0[/TD]
[TD="align: center"]A010101A[/TD]
[TD="align: center"]74517894[/TD]
[TD="align: center"]10[/TD]
[/TR]
[TR]
[TD="align: center"]D0[/TD]
[TD="align: center"]D010102A[/TD]
[TD="align: center"]74517894[/TD]
[TD="align: center"]100[/TD]
[/TR]
[TR]
[TD="align: center"]GD[/TD]
[TD="align: center"]GD10103A[/TD]
[TD="align: center"]96441511[/TD]
[TD="align: center"]50[/TD]
[/TR]
[TR]
[TD="align: center"]RE[/TD]
[TD="align: center"]RE10101A[/TD]
[TD="align: center"]74517894[/TD]
[TD="align: center"]100[/TD]
[/TR]
[TR]
[TD="align: center"]RE[/TD]
[TD="align: center"]RE10102A[/TD]
[TD="align: center"]87456430[/TD]
[TD="align: center"]144[/TD]
[/TR]
[TR]
[TD="align: center"]RE[/TD]
[TD="align: center"]RE10103A[/TD]
[TD="align: center"]74517894[/TD]
[TD="align: center"]100[/TD]
[/TR]
</tbody>[/TABLE]
Here is the output I have in mind:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]INPUT ID HERE[/TD]
[TD="align: center"]Total units in RE[/TD]
[TD="align: center"]Total units in other[/TD]
[/TR]
[TR]
[TD="align: center"]74517894[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"]110[/TD]
[/TR]
</tbody>[/TABLE]
I've been able to use vlookup to display one row of data, however it gets very complicated very quickly when I try to incorporate summing of multiple vlookups.
And even more so when I try to separate 'RE' units from the other units.
Would it be easier to create two tables first in order to separate 'RE' locations from 'other locations'?
Any pointers in the right direction would really help.
Thank you.