Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Set formula to find last row of data

Posted on 2013-06-14
2
Medium Priority
?
603 Views
Last Modified: 2013-06-15
I have a formula that I need to keep changing as I add rows of data. How can I change this formula to always adjust itself to finding the last row of data when I add new rows? I read something about using the OFFSET function but not sure how to use it.

SUMPRODUCT(--(Database!$H$4:$H$35020=$A$10),--(YEAR(Database!$C$4:$C$35020)=YEAR(C$18)),--(MONTH(Database!$C$4:$C$35020)=MONTH(C$18)),--(Database!$AP$4:$AP$35020=$B19),(Database!$V$4:$V$35020))

Open in new window

0
Comment
Question by:Lawrence Salvucci
[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

by:
barry houdini earned 2000 total points
ID: 39249684
If you have Excel 2007 or later I'd advise you to use SUMIFS which is faster. With that function you can just reference the whole columns with no significant downside, i.e.

=SUMIFS(Database!$V:$V,Database!$H:$H$,$A$10,Database!$AP:$AP,$B19,Database!$C:$C,">="&EOMONTH(C$18,-1)+1,Database!$C:$C,"<"&EOMONTH(C$18,0)+1)

If you really want to continue with the current formula then try looking at "dynamic named ranges", see here

regards, barry
0
 
LVL 1

Author Closing Comment

by:Lawrence Salvucci
ID: 39250039
Thanks Barry. I like your approach better.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 how to use a scrolling table in Microsoft Excel using the INDEX function.

610 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