+ Reply to Thread
Results 1 to 12 of 12

Matching one cell value but column has same multiple entries in one column

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    137

    Matching one cell value but column has same multiple entries in one column

    Dear All

    I have attached an excel showing a problem where I am trying to match a value in one sheet with another sheet that contains data. The problem I have is that in the Data sheet, the vlaue I am trying to find and get a result for has multiple entries. Anyone can please advsie how to possibly solve?

    Thank you for your kind help.

    Vba1234
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Matching one cell value but column has same multiple entries in one column

    Administrative Note:

    Is your forum profile showing the version of Excel that you need this to work for?

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    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
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Matching one cell value but column has same multiple entries in one column

    Where is the cell where you have issues?

    Which is the source data sheet?

    What is your expected result (value) and why?

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

    Re: Matching one cell value but column has same multiple entries in one column

    Where you DO have multiple results that are possible... what is the RULE that you use to decide WHICH one to return?
    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

  5. #5
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    137

    Re: Matching one cell value but column has same multiple entries in one column

    Dear AliGW and Glenn

    Thank you for your reply. Sorry for any problems caused by my thread.

    My Excel is part of Microsoft 365 Apps for Business.

    Regarding my thread, my sheets AIR and SEA are the ones that I get sent data and I need to try to match the information with the data I export from anothe program we use an dcreate two sheets - Airline Handling and Customs Clkearnce. In the original Air sheet, I add Columns - Customs Clearnce-DGL, Airline Handling and Collection. In SEA I add columns Quantity of invoice and Date. These are where I need the data from sheets Airline Handling and Customs Clearnce would be taken from. If you look at the Sheet Airline Handling you can see the occurrence of Job DGAI7887 coming up three times when i search. If i use vlookup it will only give me the first entry it matches, but this is incorrect as the result in this case should the third entry. This also goes for Customs Clearance- The same problem -I have highlighted in different colours the same job appearing more than once.

    PS I have addedd a comment on sheet AIR as an example

  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 2406
    Posts
    44,662

    Re: Matching one cell value but column has same multiple entries in one column

    Quote Originally Posted by vba1234 View Post
    If i use vlookup it will only give me the first entry it matches, but this is incorrect as the result in this case should the third entry
    You did not answer all of my question.

    WHY should it be the 3rd one... and not the first, or the second?

  7. #7
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Matching one cell value but column has same multiple entries in one column

    Please update your forum profile, as requested.

  8. #8
    Registered User
    Join Date
    05-29-2020
    Location
    Indiana, USA
    MS-Off Ver
    M365
    Posts
    27

    Re: Matching one cell value but column has same multiple entries in one column

    Assuming you want to return the largest value:
    Customs Clearance DGL:
    Formula: copy to clipboard
    =LARGE(FILTER('Customs Clearance'!M:M,'Customs Clearance'!A:A=Air!B2),1)

    Airline Handling:
    Formula: copy to clipboard
    =IFERROR(LARGE(FILTER('Airline Handling'!J:J,'Airline Handling'!A:A=Air!B2,),1),"Not found")

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

    Re: Matching one cell value but column has same multiple entries in one column

    Assuming that the answer to my Q is "the last one", try:

    =TAKE(FILTER('Customs Clearance'!$M$2:$M$100,'Customs Clearance'!$A$2:$A$100=Air!B2),-1)
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    137

    Re: Matching one cell value but column has same multiple entries in one column

    Hi All

    Thank you. I will look at your replies and try these out on the on the SEA sheet.

    vba1234

  11. #11
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    137

    Re: Matching one cell value but column has same multiple entries in one column

    Hi All

    I have had a chance to check with your replies and can say that this is working so will need to close this.

    Thank you again for your kind help.

    Have a great day.

    vba1234

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

    Re: Matching one cell value but column has same multiple entries in one column

    The two suggestions were VERY different. As a matter of interest... which one worked?

    In any event, 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 click on "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. Colour cells in column based on two criteria matching to entries on another sheet
    By Rabbitoh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2020, 10:05 PM
  2. Replies: 3
    Last Post: 01-29-2019, 02:40 PM
  3. Listing multiple column entries into a single column
    By roh710 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-27-2017, 09:12 PM
  4. [SOLVED] Count text in one column Matching single or multiple Criteria from Other Column Excel 2003
    By Jose Macieira in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2013, 06:55 AM
  5. [SOLVED] Concatenate the values in a column one by one with multiple entries in another column
    By Pavan Renjal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2013, 08:13 AM
  6. Matching Entries of Two Column
    By mazalam in forum Excel General
    Replies: 1
    Last Post: 09-01-2005, 10:05 AM
  7. [SOLVED] matching column entries
    By billytf in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-11-2005, 02:06 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