+ Reply to Thread
Results 1 to 7 of 7

VB Code to copy with critreria

Hybrid View

rizmomin VB Code to copy with critreria 07-17-2016, 11:03 AM
AlKey Re: VB Code to copy with... 07-17-2016, 11:18 AM
rizmomin Re: VB Code to copy with... 07-17-2016, 11:37 AM
rizmomin Re: VB Code to copy with... 07-17-2016, 11:53 AM
AlKey Re: VB Code to copy with... 07-17-2016, 12:06 PM
AB33 Re: VB Code to copy with... 07-17-2016, 12:22 PM
rizmomin Re: VB Code to copy with... 07-17-2016, 12:35 PM
  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to copy with critreria

    Hello:

    Please refer to attached file.
    I need VB Code or formula (Vlookup) to copy data from Sheet1 at cell B18 of Sheet2.
    The criteria is to match B9 and F9 from Sheet2 in Sheet1.
    I have manually copied data as shown.
    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VB Code to copy with critreria

    Enter formula in B18 and copy across to C18 and down
    Formula: copy to clipboard
    =IFERROR(INDEX(Sheet1!D:D,AGGREGATE(15,6,ROW(Sheet1!$B$3:$B$103)/((Sheet1!$B$3:$B$103=$B$9)*(Sheet1!$C$3:$C$103=$F$9)),ROWS(D$18:D18))),"")


    Please note that date in F9 should be 7/15/2016
    Last edited by AlKey; 07-17-2016 at 11:25 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy with critreria

    Hi Allkey:

    Thanks for great help.

    Riz

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy with critreria

    Hi Allkey:

    Can you help me change the above formula so that it uses the infinite data instead of until 103 as i will keep on adding data.
    Please let me know if you have any questions.
    Thanks.

    Riz

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VB Code to copy with critreria

    Quote Originally Posted by rizmomin View Post
    Hi Allkey:

    Can you help me change the above formula so that it uses the infinite data instead of until 103 as i will keep on adding data.
    Please let me know if you have any questions.
    Thanks.

    Riz
    There are few formulas that will work with unrestricted ranges those are mainly SUMIFS or COUNTIFS and INDEX. However, I think you in this case would be better simply to extend ranges. Instead of 103 replace it 10003.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VB Code to copy with critreria

    Hi Riz,
    Code is attached.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy with critreria

    Hi AB33:

    Great work.
    Thanks
    Riz

+ 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] Need VBA code to lookup vaue through micr code copy matching rows to under group
    By johnmacpro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2016, 12:25 AM
  2. [help with code] need to update existing code to copy and keep rows on input page
    By scott micklo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2016, 01:36 PM
  3. Tool or code to copy VBA code to OneNote or Word while preserving VBA formatting
    By gregersdk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2015, 04:07 PM
  4. [SOLVED] LARGE and INDEX, multi critreria lookup
    By Butcher1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-19-2015, 02:12 AM
  5. LARGE and INDEX, multi critreria lookup
    By Butcher1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-18-2015, 05:18 PM
  6. Replies: 2
    Last Post: 12-17-2013, 11:51 AM
  7. [SOLVED] VBA Code to Save Copy File without Macro Button and VBA Code on Copy?
    By cychua in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-12-2012, 07:23 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