Sum vlookup formulas

yappsta

New Member
Joined
Jan 25, 2017
Messages
4
HI,

I have two tables, one showing types of apartments with the number of appliances in each. At the end of the table the total discharge units associated with each apartment is added together.

Room Types SHWRBasinWCSinkDWWM Total D/U
DU(l/s)0.40.31.71.30.21.2
Cluster 111 2.4
Studio 1111 3.7
Duplex 1111 3.7
Penthouse 1111 3.7
******* 22 3.0
Laundry 4 4.8

<colgroup><col span="18"><col><col></colgroup><tbody>
</tbody>

The second table shows the drainage stacks with each type of apartment that is connected on each floor.
StackUGFirst SecondThirdFourthFifthSixthTotal D/U
1AECluster ClusterClusterClusterClusterClusterDuplex3.70
1ABCluster ClusterClusterClusterClusterClusterStudio4.80
1ACCluster ClusterClusterClusterClusterClusterPenthouse#N/A
1CCCluster ClusterClusterClusterClusterPenthousePenthouse#N/A
2AE ClusterClusterClusterClusterClusterDuplex#N/A
2BB ClusterClusterClusterClusterStudioStudio#N/A
4BE StudioStudioStudioStudioStudioDuplex#N/A
4BB StudioStudioStudioStudioStudioStudio#N/A
4BC-StudioStudioStudioStudioStudioPenthouse#N/A
5CC***********************************PenthousePenthouse3.00
5DC******************************************Penthouse3.00
6DD-******************************************#N/A
6DB-***********************************Studio#N/A
1CCluster ClusterClusterClusterClusterPenthouse-2.40
2C-ClusterClusterClusterClusterPenthouse-#N/A
3CCluster *******ClusterClusterClusterPenthouse-2.40
6C-****************************Penthouse-#N/A

<colgroup><col span="18"><col><col span="5"><col></colgroup><tbody>
</tbody>

I have tried various vlookup commands to sum the DU in the total column, however as soon as I make the reference cell associated with another floor I get #N/A. If I keep the reference cell the same, so for the same floor, the formula sums correctly.

Any help would be very welcome.

Many thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi and welcome to MrExcel,

See if this helps


Excel 2016 (Windows) 64 bit
ABCDEFGHI
1Room TypesSHWRBasinWCSinkDWWMTotal D/U
2DU(l/s)0,40,31,71,30,21,25,1
3Cluster0,40,31,72,4
4Studio0,40,31,71,33,7
5Duplex0,40,31,71,33,7
6Penthouse0,40,31,71,33,7
7*******224
8Laundry44
9
10
11
12
13
14StackUGFirstSecondThirdFourthFifthSixthTotal D/U
151AEClusterClusterClusterClusterClusterClusterDuplex18,1
161ABClusterClusterClusterClusterClusterClusterStudio18,1
171ACClusterClusterClusterClusterClusterClusterPenthouse18,1
181CCClusterClusterClusterClusterClusterPenthousePenthouse19,4
192AEClusterClusterClusterClusterClusterDuplex12
202BBClusterClusterClusterClusterStudioStudio17
214BEStudioStudioStudioStudioStudioDuplex18,5
224BBStudioStudioStudioStudioStudioStudio22,2
234BC-StudioStudioStudioStudioStudioPenthouse22,2
245CC***********************************PenthousePenthouse7,4
255DC******************************************Penthouse3,7
266DD-******************************************0
276DB-***********************************Studio3,7
281CClusterClusterClusterClusterClusterPenthouse-15,7
292C-ClusterClusterClusterClusterPenthouse-13,3
303CCluster*******ClusterClusterClusterPenthouse-13,3
316C-****************************Penthouse-3,7
Sheet1
Cell Formulas
RangeFormula
I15=SUMPRODUCT((B15:H15=$A$3:$A$6)*$I$3:$I$6)
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,443
Members
449,100
Latest member
sktz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top