Solved

Excel  - Copy Formula Down Column

Posted on 2011-02-22
3
209 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with Adding text from a form to a worksheet 5 37
InStr Function not working properly in macro 3 19
Fixing a embedded format 7 29
FormulaArray VBA Issue 6 18
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;…
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.
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…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

862 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

23 Experts available now in Live!

Get 1:1 Help Now