+ Reply to Thread
Results 1 to 5 of 5

VBA/Formula to find (#3 and #4 digit) MOST match key (defined key)

  1. #1
    Registered User
    Join Date
    11-19-2021
    Location
    Jakarta
    MS-Off Ver
    2019
    Posts
    22

    VBA/Formula to find (#3 and #4 digit) MOST match key (defined key)

    Dear All,
    as per subject, I'M looking forward to have your help to make VBA or Formula to to find (#3 and #4 digit) MOST match key (defined key).

    Attached the file and example the goal (just write one alphabet where is the most matched key).

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    27,095

    Re: VBA/Formula to find (#3 and #4 digit) MOST match key (defined key)

    Can you explain what exactly is required as you have numerous key values but no explanation as how they are derived.

    in CQ5

    =INDEX(CS2:CY199,MID(A$2,ROWS($1:3),1),MID($A$2,ROWS($1:4),1))

    is a match with A2 But what about all other columns?
    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
    Registered User
    Join Date
    11-19-2021
    Location
    Jakarta
    MS-Off Ver
    2019
    Posts
    22

    Re: VBA/Formula to find (#3 and #4 digit) MOST match key (defined key)

    Dear John,
    I apologize not clear/delete my try and error to make a formula.

    - the goal is explained at second yellow highlighted, looking for the most key matched with each column number (just find #3 and #4digit).
    example: in cell A2 (1221), looking for 21 match with what a KEYS?. if match with more than one key, then calculate which one the most (large/top) one.
    - there is row with describe:
    1. All Data key: index and match all data(number-just find #3 and #4digit) from A2 to Today
    2. 1 month Key: index and match data(number-just find #3 and #4digit) from Today - one month (past)
    3. 2 week key: index and match data(number-just find #3 and #4digit) from Today - 2 week (past)
    4. 3 week key: index and match data(number-just find #3 and #4digit) from Today - 3 week (past)
    5. 10 days key: index and match data(number-just find #3 and #4digit) from Today - 10 days (past)
    6. 7 days key: index and match data(number-just find #3 and #4digit) from Today - 7 days (past)

    that's why in A1..CQ1 value is date
    Attachment 761412

    Thank you

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, Suffolk (England), but grew up in Sawley, Derbyshire
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2312 (Windows 11 22H2 64-bit)
    Posts
    75,380

    Re: VBA/Formula to find (#3 and #4 digit) MOST match key (defined key)

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    11-19-2021
    Location
    Jakarta
    MS-Off Ver
    2019
    Posts
    22

    Re: VBA/Formula to find (#3 and #4 digit) MOST match key (defined key)

    Dear All,
    I made mistake and cross posting, here the links:
    https://www.excelforum.com/excel-pro...fined-key.html
    https://www.mrexcel.com/board/thread...d-key.1191506/

    Thank you

+ 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. Can't find if formula for 10 digit check
    By coolvibeguy in forum Excel General
    Replies: 3
    Last Post: 04-25-2017, 05:18 PM
  2. Please help - function to find first digit in a user-defined range
    By alexchan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2016, 11:49 PM
  3. Replies: 10
    Last Post: 09-26-2015, 04:19 PM
  4. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  5. [SOLVED] Remove digit by digit until match is found
    By blacktear in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2013, 09:40 AM
  6. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  7. Replies: 4
    Last Post: 03-04-2010, 11:53 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