Solved

# Google Spreadsheet SUMPRODUCT with dynamic row count.

Posted on 2015-02-14
177 Views
Last Modified: 2015-02-16
Hi I'm using this formula to add all items from a specific category and a specific date range.  But the problem I'm facing now is that I have another sheet where I insert all my entries, and this sheet dosen't have a max row, it can grow continuously, but in the formula I Inserted the range until A1000, but there could have more lines of code, how can I go around to put a dynamic row count on the formula.

``````=SUMPRODUCT(Entries!\$F\$3:\$F\$1000 * (Entries!\$A\$3:\$A\$1000 >= DATE(2015;COLUMN()-1;1)) * (Entries!\$A\$3:\$A\$1000 < DATE(2015;COLUMN();1)) * (Entries!\$C\$3:\$C\$1000 = A3))
``````
0
Question by:cinco-pata5
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• Learn & ask questions
2 Comments

LVL 50

Accepted Solution

barry houdini earned 500 total points
ID: 40611076
I think SUMIFS would be preferable - you can use whole column range without any major downside

=SUMIFS(Entries!\$F:\$F;Entries!\$A:\$A;">="&DATE(2015;COLUMN()-1;1);Entries!\$A:\$A;"<"&DATE(2015;COLUMN();1);Entries!\$C:\$C;A3)

regards, barry
0

Author Closing Comment

ID: 40612487
Perfect it worked great.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

If your app took Googleâ€™s lash recently, here are the 5 most likely reasons.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates how to quickly find related content for YourTango's posts using MozBar Chrome extension.
###### Suggested Courses
Course of the Month8 days, 13 hours left to enroll

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

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