+ Reply to Thread
Results 1 to 8 of 8

Name and contact number get from main data

  1. #1
    Forum Contributor
    Join Date
    02-16-2011
    Location
    Maharashtra, Thane
    MS-Off Ver
    Excel 2021
    Posts
    140

    Name and contact number get from main data

    Hi,
    I have a sheet where 4 column are there. I need the Employee name and contact number of the Locations where the designation is Branch Manager and in absent of Branch Manager then take Branch Credit Manager and their numbers. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name and contact number get from main data

    Are you still on Excel 2007: if not, please update your profile as answers depend on knowing your Excel version.
    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
    Forum Contributor
    Join Date
    02-16-2011
    Location
    Maharashtra, Thane
    MS-Off Ver
    Excel 2021
    Posts
    140

    Re: Name and contact number get from main data

    Sorry Sir,
    I have changed it to 2013. Request your help please.

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

    Re: Name and contact number get from main data

    In G2:

    =INDEX($A$2:$A$9,MATCH(1,($D$2:$D$9=$F2)*($B$2:$B$9=G$1),0))

    In H2:

    =INDEX($C$2:$C$9,MATCH(1,($D$2:$D$9=$F2)*($B$2:$B$9=G$1),0))

    Copy down.
    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
    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,063

    Re: Name and contact number get from main data

    G2, copied down:

    =IFERROR(INDEX($A$2:$A$9,IFERROR(MATCH(1,INDEX(($D$2:$D$9=F2)*($B$2:$B$9="Branch Manager"),0),0),MATCH(1,INDEX(($D$2:$D$9=F2)*($B$2:$B$9="Branch Credit Manager"),0),0))),"")

    Similar for H2... see sheet.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Name and contact number get from main data

    Another

    =IFERROR(INDEX($A$2:$A$9,AGGREGATE(15,6,ROW($A$1:$A$100)/($D$2:$D$9=$F2)/(($B$2:$B$9="Branch Manager")+($B$2:$B$9="Branch Credit Manager")),1)),"")

    =IFERROR(INDEX($C$2:$C$9,AGGREGATE(15,6,ROW($A$1:$A$100)/($D$2:$D$9=$F2)/(($B$2:$B$9="Branch Manager")+($B$2:$B$9="Branch Credit Manager")),1)),"")

  7. #7
    Forum Contributor
    Join Date
    02-16-2011
    Location
    Maharashtra, Thane
    MS-Off Ver
    Excel 2021
    Posts
    140

    Re: Name and contact number get from main data

    Thanks you Madam and Mr. John and Glenn. I have tried the codes and all are working fine. Thanks again for your kind help.

  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,063

    Re: Name and contact number get from main data

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. VBA to select a contact in outlook to Populate Contact Information in an Excel Form
    By onelastcast in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2017, 02:01 PM
  2. Pull the contact number's of companies from a webpage and auto-populating in ex
    By Kaarthick in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-27-2016, 09:38 AM
  3. Formula to Pull Last Contact Date for each Contact in Call Log
    By Tweet2Quit in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-11-2016, 03:00 PM
  4. Searching by contact number and to display the details.
    By rajanvell1 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-05-2013, 08:28 AM
  5. Replies: 0
    Last Post: 02-09-2012, 08:17 AM
  6. Contact list the will automatically add a contact
    By mike.richards in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2008, 10:35 AM
  7. Replies: 2
    Last Post: 06-18-2007, 08:45 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