there are errors in the formula, could it be more like this:
=IF(ROW()-6>SUMPRODUCT((She
Main Topics
Browse All TopicsI understand the overall concept of an array formula. But can you break down this complex formula and explain how it works?
=IF(ROW()-6>SUMPRODUCT((Sh
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
I'd be glad to break it down for you, so you can update it in the future (if you decide not to go the pivot table route, which is probably the better way to go).
Re: Named ranges. We'll be adding a few named ranges to your workbook. I believe you have Excel 2003 or previous, so go to Insert -> Names -> Define. (If you have 2007, go to the Formulas tab and click Define Name)
First, lets get your data range, and make it bigger for when you add more data to it. Assuming you're at the Define Name window:
Type DateRange in the box at the top, and in the RefersTo box paste in =Sheet1!$B$3:$B$65536, and click Add.
Next, type in Artists at the top, and paste =Sheet1!$C$3:$C$65536 at the bottom, and click Add.
Next, put GrossCalls at the top, and =Sheet1!$D$3:$D$65536 at the bottom, and click Add.
Next, put DeadAir at the top, and =Sheet1!$E$3:$E$65536 at the bottom, and cilck Add.
Next, put CallBacks at the top, and =Sheet1!$F$3:$F$65536 at the bottom, and click Add.
Next, put DateToMatch at the top, and =Sheet2!$B$3 at the bottom, and click Add.
Next, put MatchNum at the top, and =ROW()-6 at the bottom, and click Add.
Next, put NumOfMatchingRecords at the top, and =SUMPRODUCT((DateRange=Dat
Next, put MatchingRows at the top, and =IF((DateRange=Sheet2!$B$3
Next, put MatchingRowNumber at the top, and =SMALL(MatchingRows,MatchN
Next, put WhichRelativeMatchingRow at the top, and =MatchingRowNumber-MIN(ROW
With that all done, go to your sheet 2.
In A7, paste the formula:
=IF(MatchNum>NumOfM
In
=IF(MatchNum>NumOfMat
F
=IF(MatchNum>NumOfMatch
For D7 use:
=IF(MatchNum>NumOfMatch
And fill those formulas down as needed. These are much easier to read and audit, and all the array formulas are in the named ranges so you don't need to worry about the ctrl-shift-enter (should someone else need to edit the spreadsheet).
I'm attaching your spreadsheet with these changes made, should you need/want it.
Let me know if there is anything else!
Matt
Business Accounts
Answer for Membership
by: joaoalmeidaPosted on 2009-09-01 at 05:33:02ID: 25230851
The array formula is executed for each cell in the range. For this particular formula:
=IF(ROW()-6>SUMPRODUCT((She
If the number of the ROW minus 6 (ROW()-6) is greater than the count of values in Sheet1!$B$3:$B$10 equal to Sheet2!$B$3, then return empty string,
Else
Return the value in CELL that is column Sheet1!C and first ROW number that has one of the following conditions:
(Sheet1!$B$3:$B$10=Sheet2!
OR
Current ROW minus 6 minus the minimum ROW number from Sheet1!C$3:C$10 plus 1