+ Reply to Thread
Results 1 to 10 of 10

Question About IF/THEN with Data Validation AND multiple cell data paste

  1. #1
    Registered User
    Join Date
    04-10-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question About IF/THEN with Data Validation AND multiple cell data paste

    Hi,

    This is most active forum I've found and the answers your members give seem to help lots of users. I'm hoping you can help me.

    I have a workbook in Excel 2003 with multiple sheets.
    On sheet 1, I have 20 columns of data, and have a Data List Validation in Column B, listing multiple options.
    I want to create a formula that will look at Sheet 1, Column B, Cell 2 (for example) and IF it sees "Paid and Complete" in the cell (which I selected from the list), THEN I want it to copy and paste text for 4 other cells in that same row, into a row on Sheet 2.

    So, IF Sheet 1, Cell B2= Paid and Complete, THEN I want Sheet 2, Row 2, Column B to copy/paste Name, Column C to copy/paste Title, Column D to copy/paste company, and Column E to copy/paste ad type from the Row in question on Sheet 1 into Row 2 on Sheet 2. I hope I explained this clearly. I essentially want to generate a list of paid advertisers on Sheet 2 pulled from a huge list in progress on Sheet 1.

    Any help would be really appreciated. Thanks so much!

    Eryn

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    Welcome to the Forum, im glad you enjoy being here, and im sure all of the experts appreciate your words.

    As for your specific problem, could you attach a sample workbook with some data and desired results? im sure we can help you out.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    04-10-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    Wow! Thanks! This is fantastic. I've created a mock up sample of what I hope to do. I hope it's clear. Thanks so much!Sample_For_Forum.xls

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    erynatpitt,

    Attached is a modified version of your example workbook. Is something like that what you're looking for?
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    04-10-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    Thanks Tigeravatar! That works exactly the way I wanted it to! Thank you so much for taking the time to figure this out!

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    this can be done 2 different ways, the 'simpler' way would be to use a VBA macro to generate the report, or we could use a series of Array formulas to try to pull it in. which method would you prefer?

    (I vote VBA but it is your project)

  7. #7
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    The solution provided by Tigeravatar will work great on one line, but if you have multiple lines and only some are completed, there will be blank lines in the middle, this could be a very acceptable solution for you, just looking at all options.

  8. #8
    Registered User
    Join Date
    04-10-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    I wish I understood the difference between VBA macro and Array. I certainly hear what you're saying about something being more complex. I do have exactly as you've described. Multiple lines and only #11 is currently "complete." So the spreadsheet has 10 empty rows above row 11. So I suppose if there was something I could do to make them fill the spreadsheet in starting with the first row, that would be good. But certainly not required. It is more not having to copy/paste all the data myself, which tigeravatar's method certainly eliminates. If you feel like doing more with it to make it even better, I certainly wouldn't be opposed to this, but I don't want to misuse your time. Thanks for you help, DGagnon!

  9. #9
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    i put together a quick macro using the following code, see the attached sheet

    note the button to the right to run the macro

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-10-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Question About IF/THEN with Data Validation AND multiple cell data paste

    I wasn't able to get it to work. I see the text box, but there isn't anywhere to click. And I tried to install the macro toolbar button, but couldn't find anything to connect it to within the worksheet.

+ 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