+ Reply to Thread
Results 1 to 4 of 4

Need VBA_VBasic help to Identify values among ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    Need VBA_VBasic help to Identify values among ranges

    I’m trying to group trainees in different groups (base on the size of the training sessions)
    I have a table with ranges and a their respective group; need to identify if a predefined alphanumeric value assigned to each user (on column I) fit within a specific range (columns E & F) then assign their respective final training group (column G)
    I have more than 100 ranges in my current file. Thus, a nested IF formula won’t be able to work.
    I don't have experience with VBA and I need to find a solution to avoid assign them manually... (Have more than 5,000 trainees)
    Can anyone help with the formula?
    Thanks!
    Attached Files Attached Files
    Last edited by pachuken2012; 08-17-2012 at 08:58 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need VBA_VBasic help to

    Hi

    First sort your A:G data using A as the primary sort and B as the secondary
    Now enter as an array formula (i.e. Ctrl-Shift-Enter) in K2

    =INDEX(G:G,MATCH(VALUE(MID(RIGHT(I2,LEN(I2)-4),MATCH(TRUE,ISNUMBER(1*MID(RIGHT(I2,LEN(I2)-4),ROW($1:$9),1)),0),COUNT(1*MID(RIGHT(I2,LEN(I2)-4),ROW($1:$9),1)))),B:B,1),1)
    and copy down.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-15-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need VBA_VBasic help to

    Thanks a lot Rich for your quick response!!
    Great formula
    Cheers,

  4. #4
    Registered User
    Join Date
    08-15-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Need VBA_VBasic help to Identify values among ranges

    Richard
    After reviewing in more details your formula (working before with the sample provided) and adding the entire list of ranges; I’m not able to match the value (Column I) with the right group (Column G), in most of the cases.....
    I wonder if is related to part of your formula [ROW($1:$9)]…. I can’t figure it out…
    As you will see I added more details to the training groups to better differentiate or define unique values and avoid confusion among them.
    Can you please review the file attached with additional ranges?
    Thanks again!!!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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