Solved

Excel 2010 creating a custom auto fill for formulas

Posted on 2014-11-16
2
227 Views
Last Modified: 2014-11-16
I have a spreadsheet in Excel 2010 with 1440 rows.  I have a formula I need copied to all rows.  I'd like to enter in the formula for the first few rows and then use Excel's Auto Fill to fill in the formula for the rest of the rows.

The formula for the first three rows are:
=SUMIF(B2:B1440,B2,D2:D1440)
=SUMIF(B2:B1440,B3,D2:D1440)
=SUMIF(B2:B1440,B4,D2:D1440)

In the SUMIF formula, the criteria changes but the range and sum_range remain the same.  If I use auto fill, I want only the criteria to increase, so the next four rows would be:
=SUMIF(B2:B1440,B5,D2:D1440)
=SUMIF(B2:B1440,B6,D2:D1440)
=SUMIF(B2:B1440,B7,D2:D1440)
=SUMIF(B2:B1440,B8,D2:D1440)

But that's not what I'm getting.  Instead, I'm getting:
=SUMIF(B5:B1443,B5,D5:D1443)
=SUMIF(B5:B1443,B6,D5:D1443)
=SUMIF(B5:B1443,B7,D5:D1443)
=SUMIF(B8:B1446,B8,D8:D1446)

How do I get the auto fill to only increase the criteria part of the formula and leave everything else in the formula alone?
0
Comment
Question by:David_XF
2 Comments
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 40445905
You can use absolute addressing for range:
=SUMIF($B$2:$B$1440,B2,$D$2:$D$1440)
0
 

Author Comment

by:David_XF
ID: 40446031
That is exactly what I was looking for.  Thanks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

708 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

16 Experts available now in Live!

Get 1:1 Help Now