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 6683573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:50:14+00:00 2026-05-26T04:50:14+00:00

I wonder whether someone may be able to help me please. I have an

  • 0

I wonder whether someone may be able to help me please.

I have an Excel (2003) spreadsheet called ‘Input’ with data in columns B to N. What I would like to be able to do is if there is text in any of the cells in column B, I would like to copy the row but only columns ‘B’ ‘I’ and ‘N’ and paste them into my second spreadsheet called ‘Output’ at cell ref B2.

If at all possible, once the information has been pasted, I’d like to add the word ‘Scheduled site’ in column ‘E’ on the ‘Output’ sheet if the cells in column ‘B’ have text in them.

I’ve been doing this manually, and it takes quite some time to do.

I just wondered whether someone may be able to show me please how I can automate this.

Many thanks

  • 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-26T04:50:15+00:00Added an answer on May 26, 2026 at 4:50 am

    if your data looks like below, and you text entries are not formulae, then this approach will be very fast as it exploits SpecialCells to avoid looping rows

    Sub MoveEM2()
    Dim ws1 As Worksheet
    Dim ws2 As Worksheet
    Dim rng1 As Range
    Set ws1 = Sheets("Input")
    Set ws2 = Sheets("Output")
    On Error Resume Next
    Set rng1 = ws1.Columns("B").SpecialCells(xlConstants)
    On Error GoTo 0
    If rng1 Is Nothing Then Exit Sub
    Application.ScreenUpdating = False
    Set rng2 = ws2.[b2]
    rng1.Copy rng2
    'copy column I to Output C2
    rng1.Offset(0, 7).Copy rng2.Offset(0, 1)
    'copy column N to Output d2
    rng1.Offset(0, 12).Copy rng2.Offset(0, 2)
    rng2.Offset(0, 3).Resize(rng1.Cells.Count, 1) = "Scheduled Site"
    Application.ScreenUpdating = True
    End Sub
    

    enter image description here

    [updated for further query]

    Sub MoveEM()
        Dim ws1 As Worksheet
        Dim ws2 As Worksheet
        Dim rng1 As Range
        Set ws1 = Sheets("Input")
        Set ws2 = Sheets("Output")
        On Error Resume Next
        Set rng1 = ws1.Range(ws1.[b4], ws1.Cells(Rows.Count, "B").End(xlUp)).SpecialCells(xlConstants)
        On Error GoTo 0
        If rng1 Is Nothing Then Exit Sub
        Application.ScreenUpdating = False
        Set rng2 = ws2.[b2]
        rng1.Copy
        rng2.PasteSpecial xlPasteValues
        'copy column I to Output C2
        rng1.Offset(0, 7).Copy
        rng2.Offset(0, 1).PasteSpecial xlPasteValues
        'copy column N to Output d2
        rng1.Offset(0, 12).Copy
        rng2.Offset(0, 2).PasteSpecial xlPasteValues
        rng2.Offset(0, 3).Resize(rng1.Cells.Count, 1) = "Scheduled Site"
        Application.CutCopyMode = False
        Application.ScreenUpdating = True
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder whether someone may be able to help me please. I'm using Aurigma
I wonder whether someone may be able to help me please. Using some excellent
I wonder whether someone may be able to help me please. I've put together
I wonder whether someone may be able to help me please. I'm trying to
I wonder whether someone may be able to help me please. From some demos
I wonder whether someone may be able to help me please with a error
I wonder whether someone may be able to help me please. I'm using the
I wonder whether someone may be able to help me please. I've put some
I wonder whether someone may be able to help me please. I've put together
I wonder whether someone may be able to help me please. I'm wanting to

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.