+ Reply to Thread
Results 1 to 3 of 3

Macro to copy the contents of a cell based on certain condition

  1. #1
    Registered User
    Join Date
    11-04-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Thumbs up Macro to copy the contents of a cell based on certain condition

    Hi guys,
    i am trying to create a macro which will copy the contents of a column if the corresponding cell in the another column is filled.
    For example: if A1 is non empty and C1 is empty, the contents of the cell C1 should be copied to P1. This condition has to be applied to the entire sheet and all the column A contents should be listed in the column P.
    [I have enclosed the excel describing the condition]

    I will remain grateful if some one could help.
    Thanks in advance,
    Preeths
    Attached Files Attached Files

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Macro to copy the contents of a cell based on certain condition

    Your stated conditions do not match your provided workbook. Makes it difficult to go from there...

    A1 is non empty and C1 is NON empty, and yet you have it copied to P1.

    mew.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Registered User
    Join Date
    11-04-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro to copy the contents of a cell based on certain condition

    Hi,
    I am sorry about that . Please check the updated sample excel sheet.

    The condition is as following.
    if A1 is non empty and C1 is empty, the contents of the cell A1 should be copied to P1. This condition has to be applied to the entire sheet and all the column A contents should be listed in the column P.


    Thanks a lot in advance,
    Preeths
    Attached Files Attached Files
    Last edited by Newbiee; 11-09-2009 at 01:38 AM. Reason: Updated

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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