Lookup Help

mdkinsey

New Member
Joined
Jul 7, 2010
Messages
28
I have a workbook that I am tracking deposits for multiple stores. I am using the following formula:=LOOKUP(A4,Debit!$C$3:$C$32,Debit!$K$3:$K$32) where A4 is the account number and c3 - c32 are the account numbers and k3 - k32 are the deposit amounts. The formula is doing what I want except when there is no deposits for a store what happens then it will put the deposit amount of the last store in the cell rather than leave it blank. I would like to put a zero in the cell if there is no deposit. I am using 2003 excel. Any help would be appreciated.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try:

=SUM((Debit!$C$3:$C$32=$A$4)*(Debit!$K$3:$K$32))

It's an array formula so instead of enter, use Ctl+Shift+Enter
 
Upvote 0
I did that but it gives me the same answer for all cells. I have 26 different stores I am looking up.
 
Upvote 0
Trying to figure out why my original formula didn't work for you since Dryver14's does exactly the same thing.. well anyway a quickly modified version of mine would be:

=SUM((Debit!$C$3:$C$32=$A$4)*(Debit!$K$3:$K$32))+SUM(('Debit (2)'!$C$3:$C$32=$A$4)*('Debit (2)'!$K$3:$K$32))
But if the original didn't work, this one won't either..

so a quickly modified version of Dryver14's (without much throught as it's 00:44 here..) would be:

=SUMIF(Debit!$C$3:$C$32,A4,Debit!$K$3:$K$32)+SUMIF('Debit (2)'!$C$3:$C$32,A4,'Debit (2)'!$K$3:$K$32)
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

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