+ Reply to Thread
Results 1 to 15 of 15

Complex functional argument help needed!

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    20

    Question Complex functional argument help needed!

    I got some fantastic help with a solution here earlier and am hoping for more help with this and I THANK YOU VERY MUCH. I now have 2 other problems on the same workbook (the worksheets are renamed and the are 2 additional worksheets) that I believe the answer lies somewhere close to the previous one but I'm just not savvy enough with excel to figure it out. Here's the deal: There are 4 worksheets in the attached workbook entitled "ALL-NonCompliant", "NA-FullyCompliant", "NoContactInfo" and "dataALLfinal". I need help to figure out 2 separate functional arguments to conditionally transfer data from rows of the worksheet "dataALLfinal" onto 1) the worksheet "NA-FullyCompliant" and 2) "ALL-NonCompliant" dependent upon "Yes" or "No" values in columns G, H, I and J of the worksheet "dataALLfinal". The conditions of the argument are noted in green colored arrow shapes on the respective worksheets. Your help is greatly appreciated because the actual workbook contains several thousands of rows of data and this solution will greatly aid me in the task.Copy of Copy3 of testWorkbook.xlsx

  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: Complex functional argument help needed!

    I think your title should be "Conditional copy from one sheet to another". Your existing title sounds very complicated.

    A question for you - once you copy the data from the main sheet to the other sheets and then you want to fill in more data into the main sheet, will you clear the main sheet and then input new data or will you add new data to the next available row of the main sheet?
    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
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Complex functional argument help needed!

    Are you comfortable using macros instead of functions?

  4. #4
    Registered User
    Join Date
    02-20-2013
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    20

    Exclamation Re: Complex functional argument help needed!

    RE: question about main sheet - no I need the sheet to be clean and without voids, in other words each row would be filled with data from the "dataALLfinal" with all data meeting the conditions.

    RE: macros - if there's a way to do it sure but I know nothing about them really. I'd be a rookie student here. But if it can be done, fire away. I your macro could be copied/pasted from the sample worksheet to my actual one . . . fantastic!

  5. #5
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Complex functional argument help needed!

    Make sure Column G do not have blanks starting G4 until end of all the records.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-20-2013
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complex functional argument help needed!

    Ok but remember I am a novice. Just exactly where do I place this code in the workbook? Sorry, I'm truly an Excel Dummy.

  7. #7
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Complex functional argument help needed!

    haha, makes sense.
    1. Open Excel
    2. Make sure column G, H, I, J are filled as required
    3. Alt + F11
    4. Paste this code in the white space on right side
    5. In Excel, go to View-->Macros-->View Macros, Click on Test from the list and Run.
    6. Done

  8. #8
    Registered User
    Join Date
    02-20-2013
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complex functional argument help needed!

    Do I do this on each worksheet?

  9. #9
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Complex functional argument help needed!

    No need. Once and every time you need it.

  10. #10
    Registered User
    Join Date
    02-20-2013
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complex functional argument help needed!

    just did that and got a big red X with the number 400 beside it . . .

  11. #11
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Complex functional argument help needed!

    Working for me. Attached book with code and result.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    02-20-2013
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complex functional argument help needed!

    WOW! I'll try it again . . . THANK YOU VERY MUCH!

  13. #13
    Registered User
    Join Date
    02-20-2013
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complex functional argument help needed!

    I KEEP getting the error message: RED X 400 Any ideas?

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

    Re: Complex functional argument help needed!

    haripopuri,

    Without using the select and activate statements, the code can be written as follows -
    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    02-20-2013
    Location
    St. Louis
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complex functional argument help needed!

    Outstanding! Thank you very much!

+ 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