Excel 2010 - Calculating totals but only on specific rows - VLOOKUP?

Status
Not open for further replies.

Brickinnit

New Member
Joined
Aug 6, 2018
Messages
3
Unit Name
June 2018 Instances
July 2018 Instances
August 2018 Instances
Cost (pounds)
dgfg
1
25
fgdfg
2
30
sfsdf
2
35
sdfsdgdfgfd
3
40
sdfsdf
6
45
sfsdf
3
50
sdfsdfsfdsdf
5
55
dsfsdf
60

<tbody>
</tbody>

Hi Excel Community,

This is the first time I have posted so apologies if any mistakes I did read the posting guide and already searched for a solution but no luck so far - hope you can help :)

Anyway, please see posted table above. I would like to quickly calculate the totals for each month (June, July then August). June total cost would be ((1X25)+(2X35)+(3X50)) = 245 pounds. July would be ((2X30)+(3X40)+(5X55)) = 455 pounds etc. I can obviously do with a simple sum of each total but if have lots of rows, this becomes rather long-winded (for example (=SUM(B3*E3)+(B4*E4) etc etc. Is there an easier way via, for example, VLOOKUP? I tried using combination of VLOOKUP, SUM, PRODUCT etc but couldn't find a way to work.

Hope this makes sense and thanks so much in advance for the help.

Brick
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Depends on how you want the results. For example:

ABCDE
1Unit NameJune 2018 InstancesJuly 2018 InstancesAugust 2018 InstancesCost (pounds)
2
3dgfg125
4fgdfg230
5sfsdf235
6sdfsdgdfgfd340
7sdfsdf645
8sfsdf350
9sdfsdfsfdsdf555
10dsfsdf60
11
12Sum245455270

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B12=SUMPRODUCT(B3:B10,$E$3:$E$10)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


Drag right as needed.
 
Upvote 0
Last edited:
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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