+ Reply to Thread
Results 1 to 9 of 9

How to match a name to a value ?

  1. #1
    Registered User
    Join Date
    04-13-2017
    Location
    Iran
    MS-Off Ver
    2013
    Posts
    5

    How to match a name to a value ?

    Hi guys
    I need a formula to perform a very specific action.As you can see in the image uploaded,I've written IDes in C column and amount of their debts in front of them which are in column D.In column I12 I have asked the program to select the highest amount of debt among all.Here is the problem,I can not ask Excel to write the owner of debt next to it (I12).But as you can see,I manually wrote.
    Thank you for taking time.
    and with thanking Forum Moderator here is the xlsx link added.


    Capture.PNG
    Attached Files Attached Files
    Last edited by rasolrpd; 04-13-2017 at 04:39 AM.

  2. #2
    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,987

    Re: A very specific function is needed.

    Welcome to the forum! Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. In this case, mention that you are wanting to match a name to a value. Changing your thread title is not optional. Thanks!

    No help to be offered, please, until the OP complies with this request.


    When you have changed your thread title, then will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: A very specific function is needed.

    Hi, welcome to the forum

    rest of post deleted ( too slow lol)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    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,215

    Re: A very specific function is needed.

    Please change your thread title to better describe your problem: "Find customer with maximum value" ???

    Attach a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    04-13-2017
    Location
    Iran
    MS-Off Ver
    2013
    Posts
    5

    Re: A very specific function is needed.

    Here is the xlsx file.
    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 (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: How to match a name to a value ?

    Thank you.

    The name Ramtin does not exist in the lookup table. The person with that debt is Samir - is this the name you want to return? If so, use this:

    =INDEX(C:C,MATCH(I12,D:D,0))

    I do not fully understand the layout of your data - why is there a shorter set of data in columns A and B?

  7. #7
    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,215

    Re: How to match a name to a value ?

    To get name ..

    =IFERROR(INDEX(Table2[ID],MATCH(MAX(D:D,E:E),Table2[Debt],0)),INDEX(Table2[ID],MATCH(MAX(D:D,E:E),Table2[Debt2],0)))

  8. #8
    Registered User
    Join Date
    04-13-2017
    Location
    Iran
    MS-Off Ver
    2013
    Posts
    5

    Re: How to match a name to a value ?

    Quote Originally Posted by AliGW View Post
    Thank you.

    The name Ramtin does not exist in the lookup table. The person with that debt is Samir - is this the name you want to return? If so, use this:

    =INDEX(C:C,MATCH(I12,D:D,0))

    I do not fully understand the layout of your data - why is there a shorter set of data in columns A and B?
    Thank you very much,your solution solves my problem.
    And yes that should be samir,I forgot to update the cell,and about your question,names in column A haven't yet got any Id.Also any ID can have a name which is not set yet.

  9. #9
    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,987

    Re: How to match a name to a value ?

    You're welcome!

    Not sure what your last question is asking - sorry.

+ 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. Replies: 8
    Last Post: 06-02-2016, 03:00 AM
  2. [SOLVED] a function to copy the things needed from one sheet to another. only the ones needed
    By karim.zheng in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-31-2015, 09:49 AM
  3. Modifying "vloookup" function for a specific task. Help needed.
    By Dolke in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2013, 11:22 AM
  4. Help needed for a specific IF function
    By willm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2011, 09:11 AM
  5. macro needed to sum specific data in specific cells
    By nasser in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-24-2011, 08:11 AM
  6. Formula needed that changes according to a specific day
    By mr63249 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2008, 09:58 PM
  7. Help needed in finding specific series via row.
    By hadmybreaktoday in forum Excel Formulas & Functions
    Replies: 43
    Last Post: 09-06-2005, 07:05 PM

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