Solved

Formula not woring

Posted on 2013-06-25
3
154 Views
Last Modified: 2013-06-25
I can't get the formula in line 14 to work.  I copied it from line another like, added the title from A14 onto the list, and entered data into the detail page.  It worked in the first column, so I dragged it out to the end of the year and it's only working in 2 other fields.

I don't get it, because I don't really understand the formula.Master-Budget-row-14.xlsm
0
Comment
Question by:mikecox_
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
Steve earned 500 total points
ID: 39276228
When copying the formula... do not drag it or the table column references will change...

To copy it sideways... right click... copy... then select the destination cell and right click paste special formula.

This will maintain the table refs.

The formula can also be shortened to:
=SUMIFS(tbl_Details[Amount],tbl_Details[Account],Master!$A14,tbl_Details[Date],">="&Master!C$1,tbl_Details[Date],"<="&EOMONTH(Master!C$1,0))

As using [ALL] just includes the header row too which is not necessary for the SUMIFS to Work

To understand the formula:
it will...
Sum up the column 'Amount' in table 'tbl_Details'
=SUMIFS(tbl_Details[Amount] ,
Where the column 'Account' in table 'tbl_Details'
tbl_Details[Account],
Equals the value of A14
$A14,
Where the column 'Date' in table 'tbl_Details'
tbl_Details[Date],
Is greater than or equal to C1
">="&C$1,
Where the column 'Date' in table 'tbl_Details'
tbl_Details[Date],
Is less than or equal to the end of month of the date in C1
"<="&EOMONTH(Master!C$1,0))
Master-Budget-row-14.xlsm
0
 

Author Closing Comment

by:mikecox_
ID: 39276359
Perfect!  Thanks for explaining the formula and for helping me understand why it wasn't working, and for fixing it for me!
0
 
LVL 24

Expert Comment

by:Steve
ID: 39276368
Always happy to help where we can :-)
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now