+ Reply to Thread
Results 1 to 6 of 6

Reverse vlookup based on an account mask?

  1. #1
    Registered User
    Join Date
    06-18-2021
    Location
    Arizona
    MS-Off Ver
    10
    Posts
    3

    Reverse vlookup based on an account mask?

    Hello world!

    Please forgive any incorrect jargon ahead of time. But here is a gist of what I'm trying to accomplish:

    A business has thousands of account code strings in their accounting software (i.e. 610.100.4000.6450.500). Our accounting software allows transactions to route to different people based on an account mask (i.e. ???.???.4???.????.??? where anything in the third element starting with a '4' would route to a person assigned that mask).

    Given the volume of masks and potential for overlaps/misses, I was hoping to have a table showing column 1 - employee and column 2 - account masks assigned.

    Then I wanted to take a list of all possible account codes and do some sort of vlookup (or other function), to tell me if that code has been assigned to someone. Any insight in advance would be greatly appreciated.

    Thanks,
    Aaron

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,871

    Re: Reverse vlookup based on an account mask?

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-18-2021
    Location
    Arizona
    MS-Off Ver
    10
    Posts
    3

    Re: Reverse vlookup based on an account mask?

    Apologies for missing the attachment. I have uploaded an attachment where you can see in H20:J24 I created a formula to test if text strings were found in the account code. I think it's doing as intended but hoping there is an opportunity to automate which elements to search for instead of having to manually point to each account mask in C4:9. The reason being is I intend for those masks to change, and there will be several buyers with dozens of masks, so having the update the formula manually could be quite cumbersome.
    Attached Files Attached Files
    Last edited by vigidyvix; 08-03-2021 at 12:34 AM.

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Reverse vlookup based on an account mask?

    Not sure if I follow entirely but...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    the above would return Buyer 1, Buyer 3, Buyer 3, Buyer 2 and No Buyer for Accounts listed in rows 11:16
    if you want to return all instances of Buyer matches you can (the above will list the last found) but, you would need to outline how exactly you want them returned (separate columns, delimited string etc) -- and confirm XL version (2010?)

  5. #5
    Registered User
    Join Date
    06-18-2021
    Location
    Arizona
    MS-Off Ver
    10
    Posts
    3

    Re: Reverse vlookup based on an account mask?

    This looks great, thank you! I would like to be able to see all instances of returns, not just the last match found, and preferably in separate columns (one column for each buyer so I could get a count of how many buyers are assigned to an account code too.

    I have the most recent 365 version of excel on my desktop, but not sure if I have the XL version.

  6. #6
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Reverse vlookup based on an account mask?

    If you have O365 then, using your sample file as uploaded

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    the above should generate all buyers in the matrix C12:x16 -- where x will be determined by the last instance
    so in row 13 you will get Buyer 1, 2 & 3 in C13:E13, respectively, and in row 14 Buyer 1 & 3 in C14:D14

+ 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. Reverse VLookup?
    By ketnkopfchen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2020, 09:56 PM
  2. IF Statement that will assign account types based on "account number"
    By aladdin16 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-08-2014, 05:04 PM
  3. Replies: 1
    Last Post: 09-18-2013, 02:54 AM
  4. [SOLVED] How to censor account numbers based on how many characters are in the account number
    By Mcorydon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-25-2013, 01:06 PM
  5. reverse vlookup how
    By arctushar in forum Excel General
    Replies: 5
    Last Post: 02-08-2012, 08:57 AM
  6. Account heads - Vlookup??
    By Amarjeet Singh in forum Excel General
    Replies: 1
    Last Post: 02-12-2009, 09:56 AM
  7. vlookup reverse// please help
    By cecman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-13-2005, 10:06 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