Go Back   CodingForums.com > :: Computing & Sciences > Computer/PC discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-31-2012, 09:45 AM   PM User | #1
CaptainB
Regular Coder

 
Join Date: Jun 2007
Posts: 805
Thanks: 123
Thanked 23 Times in 23 Posts
CaptainB is an unknown quantity at this point
Excel: Sum of income by month - formula error

Hey guys,

I have a excel document that I use to do my accounting.
On the first sheet I have a table that should display the income by month. The details for this table should be pulled from another worksheet in the same document.

What I want to do is to be able to auto-detect the income for each month. This means, that I would have a list of dates and an amount for that date in the corresponding row. I then want to have excel to automaticly detect the income for each month.

I found a formula that I modified, but it does throw an error that I am not able to solve. I hope somebody would take a look and give some advice.

In the attached file:
The first table 'Omsætning' should show the total income for the corresponding month. The values should be pulled from the worksheet named 'Omsætning'. If you look at the column for 'Jan (January)', you will see the formula that does not work.

Thank you for your advice!

EDIT:
I think I will post the formula here too, just in case the error is easy to spot:
Code:
=SUMPRODUCT(IF(ISBLANK(Omsætning!B8:B206);0;1);--(MONTH(Omsætning!B8:B206)=MONTH(B9));--(YEAR(Omsætning!B8:B206)=YEAR(B9));Omsætning!E8:E206)
Kind regards,
Attached Files
File Type: zip Book1.zip (13.9 KB, 34 views)

Last edited by CaptainB; 12-31-2012 at 12:03 PM..
CaptainB is offline   Reply With Quote
Old 12-31-2012, 12:02 PM   PM User | #2
CaptainB
Regular Coder

 
Join Date: Jun 2007
Posts: 805
Thanks: 123
Thanked 23 Times in 23 Posts
CaptainB is an unknown quantity at this point
I think I solved the issue. The formula was correct, however, because it is an array formula I had to create it by hitting CTRL + SHIFT + ENTER instead of just enter. Solution found on this page: http://www.ozgrid.com/forum/showthread.php?t=68280
CaptainB is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 12:47 PM.


Advertisement
Log in to turn off these ads.