Solved

Excel  - Copy Formula Down Column

Posted on 2011-02-22
3
210 Views
Last Modified: 2012-05-11
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
Comment
Question by:tahirih
3 Comments
 
LVL 50

Accepted Solution

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

hth
0
 
LVL 50

Assisted Solution

by:Ingeborg Hawighorst
Ingeborg Hawighorst 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

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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

772 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