+ Reply to Thread
Results 1 to 8 of 8

Need VBA to find result from multiple condition range

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Need VBA to find result from multiple condition range

    HI experts

    I have set of data need to get result from 2 set of range when met with lookup values

    For E.g

    IF Column A value met Inter System Billing I have billing key "ITB"in range G:H So result should ITB in C:C
    IF Column B value met Mobile ACS SW Cloud Services - LAD (Inact.) i have billing key "ETB" in range J:K so result should ETB in C:C
    rest of all blank cell should be result "COLLERATE_BILLING"


    code should run on only blank value cell of C:C becoz data existed already

    i want add criteria range in code itself becoz i run the code through multiple closed workbook's

    find the attachment
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Need VBA to find result from multiple condition range

    This ??

    =IF(C2="",IFERROR(VLOOKUP($A2,$G$3:$H$12,2,0),IFERROR(VLOOKUP($B2,$J$3:$K$14,2,0),"Collerate Billing")),"")

    In future sample of 10-20 rows NOT 2000+.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need VBA to find result from multiple condition range

    can u help me on vba code?

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Need VBA to find result from multiple condition range

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

  5. #5
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Need VBA to find result from multiple condition range

    Hello.
    I leave the macro used.

    Please Login or Register  to view this content.
    However, and comparing with the expected result, I have differences in several rows, for example: 799 to 810.

  6. #6
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Need VBA to find result from multiple condition range

    .
    I forgot to upload the workbook:
    LOOKUP_CRITERIA_2.xlsm
    \__________________________/

  7. #7
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need VBA to find result from multiple condition range

    HI boss Thank for code its solved !! can i have critical range as array include in code, Becoz i run this code with sending mail vba, so if u can help me thanks alot

  8. #8
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Need VBA to find result from multiple condition range

    Quote Originally Posted by breadwinner View Post
    HI boss Thank for code its solved !! can i have critical range as array include in code, Becoz i run this code with sending mail vba, so if u can help me thanks alot
    I tell you this in case you haven't noticed yet that in posts #5 and #6 you can read:

    This post has not received any reputation.
    And that does not give too much desire to continue helping...

+ 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. Need formula to get the result in multiple condition.
    By anwitha in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-24-2018, 02:23 AM
  2. Search multiple specific Text in a range and find end result
    By Flaverdure in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2017, 04:05 PM
  3. [SOLVED] Multiple condition, muktiple result
    By akhileshgs in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-23-2014, 05:07 AM
  4. If condition for dates in range result depends upon changes of date
    By breadwinner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2013, 08:26 AM
  5. [SOLVED] Unable to combine IF & VLOOKUP for multiple condition to produce Result
    By kelwin2504 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-15-2013, 08:06 PM
  6. Replies: 6
    Last Post: 05-06-2010, 10:06 PM
  7. find, meet condition, sum range, deduce, find next
    By pinstripe in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-27-2007, 09:30 AM

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