Closed Thread
Results 1 to 12 of 12

Automate lead allocation in excel

  1. #1
    Registered User
    Join Date
    08-12-2019
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    5

    Exclamation Automate lead allocation in excel

    Hi,

    I'm new to VBA feature in excel, with no coding experience.

    I want to create a output sheet that assigns lead to sales person automatically based on the region criteria specified in input sheet.

    Please help me!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,375

    Re: Automate lead allocation in excel

    Welcome to the forum.

    You may be able to use PowerQuery for this.

    However, there are issues with your sample workbook:

    1. There is no apparent link between the Input sheet and the Info sheet - how would we know which part of the hierarchy was being referenced?
    2. You have provided no sample results on the Output sheet, so we have no idea what you are looking to achieve.

    Pleae replace the workbook with one that addresses these issues.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-12-2019
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Automate lead allocation in excel

    Hi,

    Please find the updated sheet with an example of the output to be generated
    Attached Files Attached Files
    Last edited by AliGW; 08-12-2019 at 05:38 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,375

    Re: Automate lead allocation in excel

    OK - we are getting there slowly.

    Excel will not know that Dubai matches the EMEA region. You will need to have a lookup table somewhere in your workbook that shows which locations are in which region, otherwise you can't match anything up.

  5. #5
    Registered User
    Join Date
    08-12-2019
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Automate lead allocation in excel

    I've added the region table also mentioned the region for the respective lead.
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,375

    Re: Automate lead allocation in excel

    Final question: how did you determine that this staff member should be representative E and not F, G or H?

    It's not at all clear to me what the output list is meant to achieve. In fact, it seems completely pointless as it stands.

  7. #7
    Registered User
    Join Date
    08-12-2019
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Automate lead allocation in excel

    The objective of this ‘Automated Lead Allocation Process’ is to ensure that Lead Allocation is perceived to be fair & unbiased and avoids conflict within the sales team.

    All Sales team members have equal bandwidth to handle leads, the leads can be assigned to anyone in the respective client region

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,375

    Re: Automate lead allocation in excel

    OK - I don't get it. Sorry - I'm out.

    One single sample result does not illustrate what you want. I can't be bothered trying to drag the detail out of you - I don't have the time or the patience to do so today. Hopefully someone else will be able to read your mind.

  9. #9
    Registered User
    Join Date
    08-12-2019
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Automate lead allocation in excel

    Ok,

    Thanks for helping!

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,855

    Re: Automate lead allocation in excel

    I am going to make a guess here and suggest that you try the following:
    1. Populate column A using: =Input!A2
    2. Populate column B using: =Input!C2
    3. Apply conditional formatting with the rule: =A2=0 (font = fill which is yellow in this case)
    4. Populate column C using: =IF(A2=0,"",IFERROR(INDEX(INDIRECT(B2),MOD(COUNTIFS(B$2:B2,B2),COUNTA(INDIRECT(B2)))),INDEX(INDIRECT(B2),COUNTA(INDIRECT(B2)))))
    Note that Name Ranges have been produced from the lists in K1:M5 on the Info sheet.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Registered User
    Join Date
    11-30-2021
    Location
    Jaipur
    MS-Off Ver
    2016
    Posts
    1

    Re: Automate lead allocation in excel

    did not understand the ;ast step? how didyou make use of the names listed in the formula used?

  12. #12
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,702

    Re: Automate lead allocation in excel

    @jj
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sum-up weekly allocation to Monthly Allocation
    By juan.doe in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-11-2017, 04:41 AM
  2. [SOLVED] Remove lead single quote keeping lead zero
    By shreeja178 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2015, 09:53 AM
  3. [SOLVED] Keeping lead zeros in excel cells
    By shreeja178 in forum Excel General
    Replies: 3
    Last Post: 07-16-2014, 12:00 AM
  4. Producing a Target-Lead-Opportunity-Deal planning Funnel using an Excel Chart.
    By Wendy Collins in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-13-2013, 09:06 AM
  5. Lead Lag Correlation on Excel
    By andrian in forum Excel General
    Replies: 0
    Last Post: 07-16-2009, 02:34 AM
  6. Stop Excel from dropping the lead zero
    By DarkArchon in forum Excel General
    Replies: 8
    Last Post: 05-31-2007, 08:55 AM
  7. How do I resolve debug error macro Excel 2000? At least, any lead
    By Excel 2000 Macros debugger in forum Excel General
    Replies: 5
    Last Post: 10-25-2005, 04:05 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