Summing values in a LOOKUP formula

danfarr1

New Member
Joined
Mar 5, 2009
Messages
6
I'm new to excel formulas and need alittle help. I've created a lookup function for a range of cells. I want the formula to add/sum all of the cells that fall within the lookup. Any idea how to do this???

Here is my formula...
=LOOKUP(A2,'Purchase Log'!A:A,'Purchase Log'!B:B)

I need my formula to add/sum the 'Purchase Log'!B:B

Thank you for any help.
 

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.
Welcome to the board..

Try the SUMIF function

=SUMIF('Purchase Log'!A:A,A2,'Purchase Log'!B:B)
 
Upvote 0
I think you're looking for a SUMIF formula:

=SUMIF('Purchase Log'!A:A,A2,'Purchase Log'!B:B)
 
Upvote 0
I totally had the wrong formula. Thank you so much for your help, SUMIF is exactly what I needed. Thanks!
 
Upvote 0

Forum statistics

Threads
1,203,608
Messages
6,056,286
Members
444,855
Latest member
archadiel

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