Sum Multiple Rows with Vlookup?

RoyceMelborne

New Member
Joined
Sep 14, 2018
Messages
2
Hello,

I am trying to sum all of the CP rows using the indicator of 80 in column A. So for example I would like to return the value 124 for column D, 417 for column E and so forth.

I tried using a VLOOKUP but only the first value was returned. I also tried a SUMIF, but the Data Sheet is dynamic so the cell range changes. (The table below is just a snippet of the full Data Sheet)

Is there a formula I can use to accomplish this task?

Thanks all!


ABCDEFG
17237Overdrafts0000
273105ST Loan Payable0000
375105Notes Payable0000
48075CP-Bank20212526
58075CP-Lease104354598
68075CP-Shareholder03617230
78175CP-Subordinated Debt0000
88525A/P Trade1198229123382968
98727A/P - Other0000
109170Interest Payable0000

<tbody>
</tbody>
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the Board!

Use SUMIF.

For column D, the formula would look like:
Code:
=SUMIF(A1:A10,80,D1:D10)
For all the other columns, use the same formula, changing the column D reference to your next column.

For more on SUMIF, see: https://www.techonthenet.com/excel/formulas/sumif.php
 
Upvote 0
You are welcome!

There is also a COUNTIF function, which works somewhat similarly, which counts the cells meeting the criteria (instead of summing them).
And there is SUMIFS and COUNTIFS, if you multiple conditions you need to check.
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,743
Members
449,094
Latest member
dsharae57

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