+ Reply to Thread
Results 1 to 5 of 5

IF "x" appears in column c, then copy corresponding column b to another wksht

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    Oak Lawn, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    2

    IF "x" appears in column c, then copy corresponding column b to another wksht

    Hi, I am new to this site and am looking for advice from what looks like a great group of people. My situation is this:
    I am creating multiple worksheets, and would like to link information from one worksheet to another in certain situations (IF statement, I presume.....I was using DOS to do lengthy statements years ago).

    If any cell in column C has an "X" in it in the first worksheet (Scope of Work), I would like the corresponding column B (description or text) to be copied into another existing worksheet (Bid Proposal). I may end up with 20 or so items that need to be copied to the other worksheet.

    Any suggestions are much appreciated.

    Thanks,

    Lynn
    Last edited by Lmhteach; 07-16-2013 at 01:26 PM.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: IF "x" appears in column c, then copy corresponding column b to another wksht

    Hi
    try this macro
    I have asumed when you say copy the corresponding column B, you mean the corresponding cell in column B - let me know if not and I'll rework it

    Please Login or Register  to view this content.
    Last edited by NickyC; 07-16-2013 at 01:03 AM. Reason: typos

  3. #3
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: IF "x" appears in column c, then copy corresponding column b to another wksht

    Another macro (I am assuming it is going in column A and you have headers in both sheets)

    Please Login or Register  to view this content.
    or formula

    In Bid Proposal cell A2 (I am assuming it is going in column A and you have headers in both sheets)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy/Drag down

    If needed
    Select the column then copy-pastespecial-values.
    Either...
    Select the column again and filter on blanks, select the rows from Row2 past your data, delete then turn the filter off
    or
    In a blank column put
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy/Drag down. select the column, filter by X select the rows from Row2 past your data, delete then turn the filter off
    Last edited by WasWodge; 07-16-2013 at 01:43 AM. Reason: split a line as it was a bit long
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  4. #4
    Registered User
    Join Date
    07-15-2013
    Location
    Oak Lawn, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: IF "x" appears in column c, then copy corresponding column b to another wksht

    Thank you, NickyC and WasWodge for your quick responses. As much as I'd love to have a better understanding of codes, I'm not there yet. But the formula worked like a charm! I was able to get the information needed into the other worksheet. I am a little confused about how to filter out the blank lines, but will take some more time later to try and figure it out. I really appreciate your help! Thanks!

  5. #5
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: IF "x" appears in column c, then copy corresponding column b to another wksht

    little confused about how to filter out the blank lines
    Select the column.

    On your "Data" tab (virtually in the cente) there is a filter section, in that section there is a big filter icon. Click it.

    You now have a dropdown arrow in the top cell of your data. Click it.

    In the box that appears uncheck the Select all checkbox, at/near the bottom (you might need to scroll) there is a Blanks checkbox. Check it and click and click ok.

    On your spreadsheet now select the entire rows from the second row until past the row number past where your data was.

    Right click and select delete row.

    Click the autofilter icon again.

    DONE!

+ 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] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  2. Replies: 8
    Last Post: 07-05-2012, 03:07 PM
  3. Copy value from column "X" paste into Column "Y" - visible cells
    By kaseyleigh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2012, 05:46 AM
  4. Macro to CUT & Paste a row to another sheet if "Active" appears in Column J
    By Fferjay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2011, 12:25 PM
  5. Need to copy text from full "A" column to "A" column on new sheet....
    By Stonesifer in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-15-2011, 02:50 PM

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