Solved

# Excel  - Copy Formula Down Column

Posted on 2011-02-22
208 Views
Hi,

I have the fillowing formula in M2:
=IF(D2<>"",D2,"")

I would like to copy this formulla to an unspecified (ie varied) number down column M. I use the method of going to the location area in the top left of the screen, and type in M2:M30000 - for example.

I then hit Ctrl D and Enter - and the formula copies down. However, D2, changes to D3, D4, etc.

Please offer how I can maintain D2 all the way down the column.

Thank you
0
Question by:tahirih

LVL 50

Accepted Solution

Dave Brett earned 250 total points
ID: 34957588
use absolute references, ie
=IF(\$D\$2<>"",\$D\$2,"")

hth
0

LVL 50

Assisted Solution

teylyn earned 250 total points
ID: 34957590
Hello,

use an absolute reference for the cell you want to stay the same

=IF(\$D\$2<>"",\$D\$2,"")

cheers, teylyn
0

Author Closing Comment

ID: 34957592
Thank you both - yes, I recalled this soon after posting.
0

## Featured Post

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…