Solved

I need a formula corrected

Posted on 2011-03-08
5
269 Views
Last Modified: 2012-05-11
See the attached file

The formulas I am using seem to return data that is incorrect (highlighted in yellow) for previous years. For example, there is little information available for the years 2000-2007 but its returning a large number of tracts and footage that are very similar.

I want to think that the formula I am using is pulling data correctly for the more recent years, but now I am unsure.
3-8-11.xlsx
0
Comment
Question by:wrt1mea
  • 2
  • 2
5 Comments
 
LVL 59

Expert Comment

by:Saurabh Singh Teotia
Comment Utility

Use this formula in Column-F..

=SUMPRODUCT((((DATA!$B$2:$B$10000>$D2)+(DATA!$C$2:$C$10000>=$D2)))*(((DATA!$B$2:$B$10000<=$E2)+(DATA!$C$2:$C$10000<=$E2)))*(DATA!$E$2:$E$10000="N"))

Saurabh...
0
 
LVL 1

Author Comment

by:wrt1mea
Comment Utility
Saurabh...

That didnt seem to work right. There are no acquired tracts for the year 2000 and its returning 268.
0
 
LVL 50

Expert Comment

by:barry houdini
Comment Utility
The blanks in some of the date fields are affecting results, try this version in G2 copied down to avoid counting blank dates

=SUMPRODUCT(((DATA!$B$2:$B$10000>$D2)+(DATA!$C$2:$C$10000>=$D2)>0)*((DATA!$B$2:$B$10000<=$E2)*(DATA!$B$2:$B$10000<>"")+(DATA!$C$2:$C$10000<=$E2)*(DATA!$C$2:$C$10000<>"")>0)*(DATA!$E$2:$E$10000="N"),DATA!$D$2:$D$10000)

regards, barry
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
Comment Utility
...F2 of course, will be the same without the sum range, i.e. in F2 copied down

=SUMPRODUCT(((DATA!$B$2:$B$10000>$D2)+(DATA!$C$2:$C$10000>=$D2)>0)*((DATA!$B$2:$B$10000<=$E2)*(DATA!$B$2:$B$10000<>"")+(DATA!$C$2:$C$10000<=$E2)*(DATA!$C$2:$C$10000<>"")>0)*(DATA!$E$2:$E$10000="N"))

barry
0
 
LVL 1

Author Closing Comment

by:wrt1mea
Comment Utility
Thanks again!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

744 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

18 Experts available now in Live!

Get 1:1 Help Now