Solved

# Excel 2010 creating a custom auto fill for formulas

Posted on 2014-11-16
255 Views
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
Question by:David_XF
[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

LVL 40

Accepted Solution

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

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

## Featured Post

Question has a verified solution.

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

### Suggested Solutions

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
###### Suggested Courses
Course of the Month9 days, 3 hours left to enroll