+ Reply to Thread
Results 1 to 3 of 3

Formula to copy a row of cells from on worksheet to another if a certain word is entered

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    Formula to copy a row of cells from on worksheet to another if a certain word is entered

    How would I Automatically copy a row of data from one worksheet to another worksheet if I enter a specific word/text in a cell? For example: I have "Worksheet1" & "Worksheet2". In "Worksheet1" I have 4 columns labeled "Date, Name, Status & Amount". What I would like the formula to do is, if I enter the word "Schedule" in the "Status" column, I want that data to automatically copy over to "Worksheet2" in the next empty row. I would also like it to automatically be removed if I change the word "Schedule" to anything else.

    I hope this makes sense. I tried to attached a sample workbook, but I couldn't get it to upload for some reason. Thank you in advance for any assistance!

    Semisi

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

    Re: Formula to copy a row of cells from on worksheet to another if a certain word is enter

    A formula may not be able to help you in this but a macro surely can. Would you be open to a code solution?
    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]

  3. #3
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Formula to copy a row of cells from on worksheet to another if a certain word is enter

    Looks like you don't neccessarily need to copy the data, but only to display them is you ask for it (by typing "Schedule").

    For explaning purposes let's say the following:
    - The original Status data are in Worksheet1 C3:C10.
    - The field where you want to type "Schedule" is in Worksheet1 C2.
    - The range where you want the data to copy to is in Worksheet2 A3:A10.

    Type the following in Worhsheet 2 A3: =IF(Worksheet1!$C$2="Schedule";Worksheet1!C3;"")
    When you copy this formula downwards untill A10, you should get the desired results.
    You can expand this formula with other options (instead of "Schedule") by writing extra IF functions within the function above in the "value is false" section.

    If I have understood your problem correctly, this should give you a right basis to solve it.
    So... does it?

+ 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. Replies: 7
    Last Post: 07-16-2013, 06:47 AM
  2. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  3. [SOLVED] Copy specific cells based on one word in the cell, to a different worksheet
    By Lfaulst1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2013, 05:26 PM
  4. Need to copy specific cells into an existing worksheet based on date entered by user
    By jrfleury in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-17-2011, 09:44 AM
  5. Replies: 6
    Last Post: 06-09-2009, 04:38 AM

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