Add up values in cells based on a lookup value

JCUK89

New Member
Joined
Mar 26, 2018
Messages
6
Hi,

I have a data set of buildings and their values. I have zip codes in one column (call it column A), and property values in the next column, (call it column B).

I then have a separate list of certain zip codes - named range 'zips' in column C. I want a formula to find all of the zip codes shown in 'zips' in column A, and add up all of the values in column B.

Hope that makes sense?

Thanks for any help!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Like this?

Excel Workbook
ABCD
1ZIPValuezipsTotal
265984100,00012345220,000
348562150,00077777
477777120,00065984
55895699000
6
ZIPs
#VALUE!
</td></tr></table></td></tr></table>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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