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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:23:08+00:00 2026-05-31T11:23:08+00:00

Possible Duplicate: Copy column from one Excel sheet to another Excel sheet I have

  • 0

Possible Duplicate:
Copy column from one Excel sheet to another Excel sheet

I have 5 sheets in my Excel file. Out of these 5, one is the master sheet which has all the data I want to copy to the other 4 sheets.
All the sheets have one common column, ID. The master has more than 10000 IDs.

What I want to do is:

If ID in sheet1 = 24356 = ID in master sheet then copy x, y, z columns from master sheet to sheet1. This is same for all other sheets.

Also, since the master sheet is from another source than the rest of the sheets, its formatting is different. Is there a way to remove all formatting in sheets before running copy/paste?

Can anyone please tell me the VBA code to do this.

This is what my Master sheet looks like:

enter image description here

I want the other sheet (e.g. sheet1) in this case to look like:

enter image description here

Also, while searching the master sheet, is it possible for the code to look through the last column of the sheet?

  • 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-31T11:23:10+00:00Added an answer on May 31, 2026 at 11:23 am

    Nupur

    Here is the non-VBA way.

    Assume your master data is on a sheet called Master and the data is in range A1:H9. Now assume I have Sheet1 with a list of IDs in range A2:A5.

     1   ID    Name    Type    Question1    Type3    Type4
     2   475
     3   479
     4   501
     5   503
    

    Then in Sheet1 in cell B2 I have the following to retrieve Name for ID=475:

    =VLOOKUP($A2,Master!$A$2:$H$9,2,0) //returns f1
    

    To get Type for ID=475 I use:

    =VLOOKUP($A2,Master!$A$2:$H$9,3,0) //returns adm1
    

    All I am doing is setting up a reference to the data table on Master (note absolute ref with $ signs), using ID as the lookup value, and then changing the column value (3rd input in VLOOKUP) to retreive the relevant value.

    Once you have set this up for the first row you can then just copy down and get the right data populated.

    Does this solve the issue?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to copy a file to another path? hi, how to copy
Possible Duplicate: Is it possible to copy database file to SD card? I have
Possible Duplicate: How disable Copy, Cut, Select, Select All in UITextView I have some
Possible Duplicate: question about copy constructor if I have this snippet of the code
Possible Duplicate: How to copy part of an array to another array in C#?
Possible Duplicate: how to copy char * into a string and vice-versa I have
Possible Duplicate: When do we have to use copy constructors? Why exactly are C++
Possible Duplicate: How to copy an object in objective c I have a very
Possible Duplicate: deep copy NSMutableArray in Objective-C ? I have two arrays of length
Possible Duplicate: Warning: The Copy Bundle Resources build phase contains this target's Info.plist file

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.