+ Reply to Thread
Results 1 to 9 of 9

Copy Data from one column in a sheet to another column present in 2nd sheet

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Thumbs up Copy Data from one column in a sheet to another column present in 2nd sheet

    hi all,

    Query 1)

    sheet "abc"

    ex:
    A B C D E F G H I J K L M N O
    1 Title | id | Question | id | Question |id | Question | id | Links | id | Links | id | Links | id |
    2 hi 2 u dere? * Are You Serious? * ok *
    3 a 2 b * Q1 * Q2 * ok * ok2 *


    i want a macro code for copying a particular column values from one sheet to another sheet .

    suppose i have 1st sheet with name "abc". there i have a column whose "A1" is the column whis is having "Title". i want to copy the entire column till values have been entered to next sheet named "def" column "D1" which is having heading of "tiltename". i want that whenever user enter the title in sheet "abc". the "D1" in sheet "def" gets populated from "A1".

    Query 2)

    i want a macro code for automatically incrementing of values in sheet "abc" in every row where if user enters title id must be 2 after it every item if present then *=previous id=id+1;

    that is, in ex ,in first row, u dere? has id=2+1=3 and are you serious has id 3+1=4 but ok has id= 4+1=5 as another question is not present.

    title must have fixed id=2, but after only things having some values have the id which should be previous item's id +1;

  2. #2
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copy Data from one column in a sheet to another column present in 2nd sheet

    please help somebody. as it is urgent.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy Data from one column in a sheet to another column present in 2nd sheet

    Do you have a sample file that you can attach? I am not able to understand without it.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copy Data from one column in a sheet to another column present in 2nd sheet

    i have included the sample excel file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copy Data from one column in a sheet to another column present in 2nd sheet

    Please someone help on this.

  6. #6
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copy Data from one column in a sheet to another column present in 2nd sheet

    Is there anybody, who can help me.

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy Data from one column in a sheet to another column present in 2nd sheet

    Regarding your question 1, in sheet "def", cell D2, enter this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag it down to 100 or how many ever rows you need.

    I am not able to understand your question 2 at all.

  8. #8
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copy Data from one column in a sheet to another column present in 2nd sheet

    Happy independence day to all.

    Thanks for reply.

    the formula you have given is just copying the values in A2 to D2 to Dn where n is the no of rows i need to copy but , i want a formula by which i can copy what is wriiten in An to Dn Where n=2,3,4,.....1000.i.e. A2 to D2,A3 to D3,etc.

    the second question is ,look at the every ID column. there i want that Title Id must be automatically 2 if any new row is created and only when Title is entered. similarly after it ,in the same row if any item(question,Answer) is entered , ID column with that item must be incremented by previous ID +1.

    please go through the newly provided excel sheet .
    Attached Files Attached Files
    Last edited by pan07; 08-15-2012 at 05:50 AM. Reason: forgot to attach the file:)

  9. #9
    Registered User
    Join Date
    08-08-2012
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copy Data from one column in a sheet to another column present in 2nd sheet

    anybody can help me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1