+ Reply to Thread
Results 1 to 4 of 4

VBA code to get the value of a cell based on multiple criteria

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    3

    VBA code to get the value of a cell based on multiple criteria

    Hi,

    I have a table. From this table, I need to get the corresponding score of the values in A1, A4, B4 to B12 and C3, D3, E3.

    So basically, what I need the macro to do is to look for the values of A1, A4, B4 to B12 and C3, D3, E3 in the table. Once found, I need to return its corresponding score to a specified cell.

    Attached is a sample.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,936

    Re: VBA code to get the value of a cell based on multiple criteria

    Try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-08-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA code to get the value of a cell based on multiple criteria

    Awesome Phuocam!

    The code is a bit complicated for a newbie in vba like me. If it's not too much to ask what does the line "Set Dic = CreateObject("Scripting.Dictionary")" do?

    Thanks so much.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,936

    Re: VBA code to get the value of a cell based on multiple criteria


+ 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. Code or Formula to delete rows based on multiple criteria
    By lucasc10 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-14-2020, 01:22 PM
  2. alphanumeric code match based on multiple criteria
    By lukemc11 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-28-2019, 12:09 AM
  3. Colour code cells based on multiple criteria
    By STUWP01 in forum Excel General
    Replies: 2
    Last Post: 04-10-2017, 08:32 AM
  4. Extract Unique Position code based on multiple criteria
    By ajaypal.sp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2016, 11:16 PM
  5. Replies: 6
    Last Post: 06-17-2014, 11:11 AM
  6. VBA Code that will return max date based on multiple criteria
    By dubuquer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-19-2013, 02:13 AM
  7. VBA code to copy columns to Excel based on Multiple Criteria
    By xdetective in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2012, 02:48 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