+ Reply to Thread
Results 1 to 13 of 13

Copy Cell in Sheet2 if text = true

  1. #1
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Copy Cell in Sheet2 if text = true

    Shee1
    A1
    New Referral

    B1
    11111

    C1
    Yes

    D1
    00/00/2020
    ----------------------------------------------------------------
    Sheet2

    A1
    11111
    B1
    Yes
    D1
    00/00/2020

    If A1 = New Referral, Copy B1,C1,D1 to Sheet2

    can someone help me with this kind of formula?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,719

    Re: Copy Cell in Sheet2 if text = true

    A VBA solution
    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: Copy Cell in Sheet2 if text = true

    Thank you let me test it.

  4. #4
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: Copy Cell in Sheet2 if text = true

    What if
    Column B = New Referral

    copy entire row to sheet 2

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,719

    Re: Copy Cell in Sheet2 if text = true

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: Copy Cell in Sheet2 if text = true

    thank you for your fast response sir, but i can't seems to made it run or work. maybe because im newbie on vba, anyway thank you for your effort on responding. hope you can teach me how to make this work.
    this is my worksheet i want to copy the rows with "New Referral" Sheet1 to Patient Information. Sheet3.
    attached image is my excel, i can't upload the excel itself

    Attachment 670473

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,914

    Re: Copy Cell in Sheet2 if text = true

    Quote Originally Posted by GOrtega View Post
    attached image is my excel, i can't upload the excel itself
    See the yellow banner at the top of the page for instructions to attach the Excel file. If it is over 1MB you may zip it and attach a ZIP file up to 9.77MB.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,719

    Re: Copy Cell in Sheet2 if text = true

    Your attachment is not visible. See 6's post #7

  9. #9
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: Copy Cell in Sheet2 if text = true

    Hi guys i already attached my files thank you.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: Copy Cell in Sheet2 if text = true

    is there a possibility if already input auto fill the bday, gender and nationality

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,719

    Re: Copy Cell in Sheet2 if text = true

    Please Login or Register  to view this content.
    How to install your new code
    • Copy the Excel VBA code
    • Select the workbook in which you want to store the Excel VBA code
    • Press Alt+F11 to open the Visual Basic Editor
    • Choose Insert > Module
    • Edit > Paste the macro into the module that appeared
    • Close the VBEditor
    • Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)


    To run the Excel VBA code:
    • Press Alt-F8 to open the macro list
    • Select a macro in the list
    • Click the Run button

  12. #12
    Registered User
    Join Date
    04-02-2020
    Location
    Philippines
    MS-Off Ver
    version 1902
    Posts
    33

    Re: Copy Cell in Sheet2 if text = true

    Work Great thank you so much..

  13. #13
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,719

    Re: Copy Cell in Sheet2 if text = true

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] copy text from one cell in sheet1 to sheet2
    By RandyD123 in forum Excel General
    Replies: 7
    Last Post: 04-08-2014, 10:20 PM
  2. [SOLVED] Find text in column A then copy the cell to the right and paste it in sheet2
    By Alring in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2013, 02:11 AM
  3. [SOLVED] If cell value on Sheet1 not found on Sheet2 copy row to Sheet2
    By Yxx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2013, 04:15 AM
  4. Find the specific text and copy and paste in another cell only if true.
    By SHARIB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2012, 03:14 AM
  5. [SOLVED] Search range and copy cells to sheet2 if, if statement is true
    By pinstripe05 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-04-2012, 09:32 AM
  6. Macro to copy range of cell from sheet1 to sheet2 based on a cell value in sheet2
    By drgwhizz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2012, 10:39 AM
  7. How to copy a range of columns from sheet1 to sheet2 if the cell show a specific text
    By chermaine123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2011, 02:39 AM

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