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

  • Home
  • SEARCH
  • 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 7939529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:07:41+00:00 2026-06-03T23:07:41+00:00

I have some data that has been imported from elsewhere. the sheet as you

  • 0

I have some data that has been imported from elsewhere. the sheet as you see can be solved mainly by moving the data from F and G up a single row, the problem comes where I need on row 10 through 13, which will be after the data has been moved up one will be 10 through 12. I need to have it where the data on 9 through cells A through D copy down till the end of row F. Then continue down and do the same if any other rows have the same “problem”…

I hope I am being clear, if not please ask, but can someone help me here? I thought about using the concept of till the end copy, but I can see that not working because not all cells need it… it only needs to happen when the opportunity arises.

Attached a link to the sheet in hopes to clarify the problem.

Link to Workbook here

  • 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-06-03T23:07:43+00:00Added an answer on June 3, 2026 at 11:07 pm

    I just tested this code with the data you provided. Should be good, based on data in worksheet. Of course, may need slight adjustments if data scope changes.

    Sub clean_data()
    
    Dim wks As Worksheet
    Dim cel As Range
    
    Set wks = ThisWorkbook.Sheets("Imported Data")
    
    With wks
    
        'first bring columns F:G up to match their line
        For Each cel In Intersect(.UsedRange, .UsedRange.Offset(1), .Columns(6))
    
            If cel = vbNullString And cel.Offset(, -2) <> vbNullString Then
                .Range(cel.Offset(1), cel.Offset(1, 1)).Copy cel
                cel.Offset(1).EntireRow.Delete
            End If
    
        Next
    
        'now fil columns A:D to match PO Date and PO#
        For Each cel In Intersect(.UsedRange, .UsedRange.Offset(1), .Columns(1))
    
            If cel = vbNullString And cel.Offset(, 5) <> vbNullString Then
                .Range(cel.Offset(-1), cel.Offset(-1, 3)).Copy cel
            End If
    
        Next
    
    End With
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data frame in R that has come about from running some
I have a class that contains data from some model. This class has metadata
I have a some vector data that has been manually created, it is just
I have some data that has various attributes and I want to hierarchically group
I have an existing database that has some testing data into and I'm interested
I have data that has been stored using binary serialization for the following class:
I need to decrypt some data that has been 3des encoded on system running
I want to be able to store (not echo) some data that has been
Apologies if this has been asked before. I have some data which I need
I'm reading some data that has already been converted to html style υ code.

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.