If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Sumif And Lookup?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-16-06, 11:58
satchwell satchwell is offline
Registered User
 
Join Date: Oct 2006
Posts: 2
Red face Sumif And Lookup?

Hi,

I'm struggling to find a suitable MS Excel formula for an accounts spreadsheet (see attached Accounts.bmp). The problem is that for cells J4:K20 and for subsequent months. Each of these cells should include a formula which looks for the rows in the left hand table associated with the month in question, then in that range of rows looks for the rows where item=code and then returns the 'Amount In' minus the 'Amount Out'. Sorry for not being able to explain better what I am requiring but I hope you get the idea.

Any help would be greatly appreciated!

Thanks, Mark
Attached Images
File Type: bmp accounts.bmp (1.95 MB, 89 views)
Reply With Quote
  #2 (permalink)  
Old 10-16-06, 14:28
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy. If I understand correctly, you should consider using SUMPRODUCT. That will give you conditional sums for multiple criteria.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 10-16-06, 19:32
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
Another approach might be with a pivot table. These are great for such tasks. It could replace the monthly totals table. Maybe better on a separate sheet.

Or, you could leave your current table and use GETPIVOTDATA formulae to extract the results from a pivot table. So the pivot table might be on another worksheet and your current summary links to it.

Another good approach would be to use SUMIF formulae and define the correct range by using a combination of OFFSET, INDEX & COUNT. For example for month K3 = October, use INDEX to find the first instance of October in column A and COUNT to know how many. Then OFFSET from A3 to define the particular range. Be careful with this approach to make sure the year is the correct one if the data extends across more than one year.

Or, less simply, you could use a query table with a TRANSFORM crosstab summation.

I guess there are many ways.

HTH
Fazza
Reply With Quote
  #4 (permalink)  
Old 10-17-06, 04:34
satchwell satchwell is offline
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks for your posts Shades and Fazza.... I'll have a try with those suggestions today. Any further suggestions are still very welcome!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On