Vlookup and Sum only certain values

jmuzzarelli

New Member
All,

I'm working on a file for work and am trying to use a formula to help ensure all data has been copied over. Thank you in advance for taking the time to read this and for any help you may be able to offer.

Here's a table with what I'm looking for. In column F I put what I'm trying to do. I need a formula to sum up the total of column C for all values greater than 0 and then I want it to return the of only the amounts relating to the company listed in Column. E. This is a small scale example, I will be working with thousands of rows and significantly more companies.

 Transferred To Transferred From Amount Company Transfers In Transfers Out NY IL 35,000 NY =sum of all NY in Col. A where amt. in Col. C is >\$0 NY KC -40,000 IL NY IL 10,000 KC IL KC 5,000 SG NY IL -7,500 SG IL 1,200

<tbody>
</tbody>
I've looked a lot online and couldn't find this/was having trouble converting their examples to mine due to the >0 need.

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try this...
=SUMIFS(C:C,A:A,"NY",C:C,">0")

Try this...
=SUMIFS(C:C,A:A,"NY",C:C,">0")

This worked perfect! Thank you so much, if I come across any issues I'll let you know but this is great!

Happy to help

Replies
2
Views
113
Replies
6
Views
641
Replies
7
Views
425
Replies
3
Views
592
Replies
6
Views
1K

1,214,773
Messages
6,121,475
Members
449,033
Latest member
Kcolwell16

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.

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

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