+ Reply to Thread
Results 1 to 7 of 7

condition on two columns

  1. #1
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    condition on two columns

    Hi everyody!

    I need some advices about an operation I'm trying to do...
    The file attachment exposes my gaol but I can explain it more precisely if necessary!

    I have two questions:

    1-Is it possible?? I think so but in fact I'm not sure...
    2- Should I use 1 or 2 dictionaries?

    Sorry for my English! And thank you very much for your answers!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: condition on two columns

    For the data uploaded.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: condition on two columns

    It works perfectly!! Thank you very much!!
    I have to adapt it with my real data base and for example the columns are not "joined"... I'm beginner and so if I can have some comments with the code it's really kind! For example what is "IIf"?
    Then I think I could change it by myself... Thank you again!!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: condition on two columns

    Please Login or Register  to view this content.
    The last argument (bold part) for Index function should reference the column # for,
    "I_PACAGE", "TYPE", "SURF_HA", 1,3,2 in your case.

    That's all to adjust as long as the heading starts from A1 and no blank row(s)/Column(s) within data range.

  5. #5
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: condition on two columns

    Ok thank you!!
    And if I want to past the results in an other sheet? I tried that:
    Please Login or Register  to view this content.
    but it makes an index error...

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: condition on two columns

    Should be something like
    Please Login or Register  to view this content.
    Alter A1 to suite.

  7. #7
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: condition on two columns

    That works!! Thank you very much for your help, you made me win a lot of time!!

+ 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. Add Zero Value Row if Condition from Two Columns met
    By mattyj2009 in forum Excel General
    Replies: 3
    Last Post: 05-20-2016, 10:25 AM
  2. [SOLVED] Splitting Value into different columns with condition :)
    By supremexx in forum Excel General
    Replies: 6
    Last Post: 05-03-2015, 11:26 PM
  3. Excel 2007 : Skip columns on condition
    By nlm in forum Excel General
    Replies: 3
    Last Post: 11-25-2011, 01:44 AM
  4. [SOLVED] Combine several columns into one with a condition
    By flyman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2011, 12:03 PM
  5. hide columns on condition
    By Forestfall in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2010, 04:26 PM
  6. 2-Condition Statement - 2 Different columns
    By Tsiqueira in forum Excel General
    Replies: 3
    Last Post: 10-30-2009, 09:55 AM
  7. Count on condition from two columns
    By spqr in forum Excel General
    Replies: 7
    Last Post: 07-07-2009, 10:27 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