+ Reply to Thread
Results 1 to 8 of 8

Alternative to what/if?? With attachment this time.

  1. #1
    Forum Contributor
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    200

    Alternative to what/if?? With attachment this time.

    I attached a file with 2 tabs. The first tab has a list of customer names and their assigned salesperson. The second tab has a dropdown list of the customers in column a. I want column d to automatically fill in the salesperson's name based on the value of column c (which is the result of the dropdown list). Since I have hundreds of customers and always adding more, the if/then would be may to complex. Any suggestions? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Alternative to what/if?? With attachment this time.

    You can use a number of formulas to achieve this. For this application, I went with INDEX/MATCH

    Paste into cell D2 and drag down:

    Please Login or Register  to view this content.
    Also, using data validation, it wouldn't be necessary to have a separate dropdown in cell A2 and the results in C2. You could just have a dropdown that you reference all in one.

    Hope this helps!
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Alternative to what/if?? With attachment this time.

    I'd use a dynamic named raneg that will add-on new customers and salesmen to the dropdown list (CTRL-F3 to see the set-up); a simple dropdown to select the customer and INDEX-MATCH to pull over the salesman.

    Add on a new customer/salesman combo and it all hangs together.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Alternative to what/if?? With attachment this time.

    That is awesome and will work perfectly. However, how did you make column A a dropdown list like that in a specific cell and define its range? Mine is different?? I add an object (dropdown list). Thanks for your help.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Alternative to what/if?? With attachment this time.

    Duplicate post... sorry!!
    Last edited by Glenn Kennedy; 01-07-2015 at 01:53 PM.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Alternative to what/if?? With attachment this time.

    Select any of the pale green cells in Col A. Go to Data/data Validation and you'll see that i referred to one of the named ranges (Custo) to set the acceptable content for the cells. The really handy part is the formula used to set the named range (check CTRL-F3). This allows for the data validation range to grow as the lsit of names grows, without you having to do anything extra.

    If all's well, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks. If not, please shout...

  7. #7
    Forum Contributor
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Alternative to what/if?? With attachment this time.

    thank you so much!!!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Alternative to what/if?? With attachment this time.

    You're welcome.... and Thanks!

+ 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. [SOLVED] UDF MLOOKUP takes too much time. Alternative approach needed.
    By radionut in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-16-2013, 05:58 PM
  2. Alternative to Sumproduct to Speed Up Calculation Time
    By John Vieren in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-12-2013, 05:39 AM
  3. [SOLVED] Alternative message box instead of run time error 1004 box no cells were found
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2013, 04:26 AM
  4. Replies: 6
    Last Post: 04-21-2010, 02:53 AM
  5. Replies: 4
    Last Post: 11-29-2006, 11:27 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