Solved

Excel 2010 creating a custom auto fill for formulas

Posted on 2014-11-16
2
240 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 40

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
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…

820 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