Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 288895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:51:28+00:00 2026-05-12T05:51:28+00:00

I have a range of rows with a column with a formula I populated

  • 0

I have a range of rows with a column with a formula I populated using ctrl-D. How can I insert a new line so values are blank but formulas are copied?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:51:28+00:00Added an answer on May 12, 2026 at 5:51 am

    It sounds like you are looking for a “pastespecial–> formulas but not values” option. I’m pretty sure that isn’t possible unless you use VBA.

    You could try something like:

    This will clear any cells that don’t have formulas. It assumes you are in the left-most cell in the row when you call it, and that the row doesn’t have any blank cells. If those assumptions aren’t accurate, you’ll need to tweak it to get it to work.

      Sub KeepFormulasInRow()
        Do Until ActiveCell.Value = ""
            If Left(ActiveCell.Formula, 1) <> "=" Then
                ActiveCell.Clear
            End If
    
            ActiveCell.Offset(, 1).Select
        Loop
     End Sub
    

    Update

    Add the code to your workbook:

    1. Alt-F11 to open the VB Editor
    2. Insert –> Module
    3. Paste the code

    Associate it with a button:

    1. Add a button to a worksheet
    2. Associate the macro to the button
    3. If you have an activeX button, call your macro from the on_click event

    Associate it with a shortcut:

    1. Alt-F8 to open the list of macros in your workbook
    2. Highlight the macro you want to associate with a short-cut
    3. Click the options button
    4. Create your shortcut
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have range from E2 to E16. How do I read values from
I have a range of data that I have approximated using a polynomial of
After I have selected a range containing numerical values, I want to, via VBA,
new guy here and I'm slowly getting the hang of python, but I have
I have a range of cells in Excel that is more than one column
I have a task to return all the consecutive rows in a particular column.
I'm using Merge Replication. The Identity range management is AUTOMATIC I HAVE A TRIGGER
I have a named range called items spanning 3 cols and 10 rows. In
I have a 2 column table in a database 1,000 rows long(All integer data).
I have range of numbers that range from 1 - 0.00000X . Most are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.