+ Reply to Thread
Results 1 to 4 of 4

Fill The Column Match With The Conditions

  1. #1
    Forum Contributor
    Join Date
    12-01-2015
    Location
    Indonesia
    MS-Off Ver
    MS Office 365
    Posts
    109

    Fill The Column Match With The Conditions

    Dear All,

    How to input (by VBA) the table in Worksheet List with the data from table in Worksheet Input with the conditions as in table Input (column RE1 and RE 2 in table List should be match with the data from table Input) and it will be not input if the data in Table List column RE1 and RE2 are not blank.

    Thank You
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Fill The Column Match With The Conditions

    Is it correct results?
    I believe that is typo and "[...] and it will be not input if the data in Table List column RE1 and RE2 are blank.". If are not blank data have to be found.


    B
    C
    D
    E
    1
    Periode
    Code
    RE1
    RE2
    2
    Jul/2019
    0032678-002
    bb
    456
    3
    4
    Jul/2019
    0062741-002
    oo
    537
    5
    Sep/2019
    0082124-002
    mm
    761
    6
    7
    no data
    zz
    789
    8
    9
    Aug/2019
    0058248-002
    hh
    567



    B
    C
    D
    E
    1
    Periode
    Code
    RE1
    RE2
    2
    =IF(C2<>"",IFERROR(INDEX(Input!A:A,MATCH(List!C2,Input!B:B,0)),""),"")
    =IF(AND(D2<>"",E2<>""),IFERROR(INDEX(Input!B:B,MATCH(1,(Input!C:C=List!D2)*(Input!D:D=List!E2),0)),"no data"),"")
    bb
    456
    Sheet: List

    Formula in col C have to be accept with Ctrl+Shift+Enter as it is array formula.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    12-01-2015
    Location
    Indonesia
    MS-Off Ver
    MS Office 365
    Posts
    109

    Re: Fill The Column Match With The Conditions

    Dear KOKOSEK
    Thank you for your respond, but actually I expect to get the VBA rather than excel function. So when we click the button in the Input table, all data will be inputted in List Table.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Fill The Column Match With The Conditions

    Quote Originally Posted by omegaboost View Post
    Dear KOKOSEK
    Thank you for your respond, but actually I expect to get the VBA rather than excel function.
    I don't understand why but as you wish. Anyway is the results (top table) as expected?

    try:

    Please Login or Register  to view this content.
    Last edited by KOKOSEK; 09-27-2019 at 11:47 AM.

+ 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. Create a helper form to fill in Column with several conditions
    By omegaboost in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2018, 05:53 AM
  2. [SOLVED] Fill Column Cells based on Conditions
    By uberathlete in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-27-2016, 10:09 AM
  3. Match partial text and to fill other column
    By henk400 in forum Excel General
    Replies: 1
    Last Post: 03-19-2015, 04:17 AM
  4. [SOLVED] excel formula match up two column with conditions
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-30-2013, 08:44 AM
  5. [SOLVED] Match the percentage on one sheet and fill the column with the name match
    By gigi79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2012, 11:52 AM
  6. INDEX/MATCH/MATCH (2 Conditions for Column #)
    By ron2k_1 in forum Excel General
    Replies: 4
    Last Post: 02-23-2011, 03:11 PM
  7. Fill Multi cells in Row if column match both worksheets
    By MBCMDR in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2009, 09:34 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