+ Reply to Thread
Results 1 to 23 of 23

Multi-column search to return a single value

  1. #1
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Multi-column search to return a single value

    I have a 2 worksheet workbook with tabs title DEST and SOURCE.
    I have to search all the rows in the SOURCE tab matching multiple column values to return the value for SOURCE Default Code.

    In DEST worksheet, Row 1 I have to search and find the SOURCE row that matches on the columns titled Name, Vendor Code, Karate, Primary Material, Width and Ring Size. Once a match is found I need to return the value in column A, Default Code, to column D, Source default Code, on the DEST tab

    Thanx in advance for your help!
    This forum is awesome!
    Last edited by ara.darakjian; 02-22-2022 at 04:52 PM.

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

    Re: Multi-column search to return a single value

    Is this an Excel question... or Googlesheets... or what?
    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

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

    Re: Multi-column search to return a single value

    There are FAR too many rows. Cut it down to 10-20 rows. Make sure that there is AT LEAST one or two matching values and repost in this thread.

  4. #4
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    Excel question

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

    Re: Multi-column search to return a single value

    OK. Repost with a sensible sample file & I will move the thread for you, away from the Google sheets sub-form, where you posted it.

  6. #6
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    I don't understand. I uploaded an excel worksheet. Not a goole sheets doc.

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

    Re: Multi-column search to return a single value

    You POSTED it in the Google sheets sub-forum. I MOVED it to an Excel formula sub-forum.

    You often get people who post Excel sheets and fail to tell us that they want it to work in Google Sheets. That is why I asked the Q in the first place....

  8. #8
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    my apologies I meant to post in excel. If you look above, the post breadcrumb shows I posted it to excel formulas and functions

  9. #9
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Multi-column search to return a single value

    where is the file? i cant see it.

  10. #10
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    The attachment should be there. if not I can try to reattach

  11. #11
    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,053

    Re: Multi-column search to return a single value

    Quote Originally Posted by ara.darakjian View Post
    If you look above, the post breadcrumb shows I posted it to excel formulas and functions
    No you did not. I have already told you that I moved it after you clarified what solutuion you wanted.

  12. #12
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    So where is my thread?

  13. #13
    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,053

    Re: Multi-column search to return a single value

    I can no longer see the criteria you want to use to return the desired results!!

  14. #14
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    I need to match the values in the columns from the dest to the source sheet and return the signed value in the default code cell
    I may not be explaining myself well. So let me know how I can better explain the request

  15. #15
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    In DEST worksheet, Row 1 I have to search and find the SOURCE row that matches on the columns titled Name, Vendor Code, Karate, Primary Material, Width and Ring Size. Once a match is found I need to return the value in column A, Default Code, to column D, Source default Code, on the DEST tab.
    Is this a better explanation?

  16. #16
    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,053

    Re: Multi-column search to return a single value

    We'll see!! I'll have a look.

  17. #17
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    Thanx
    I think it is a INDEX, MATCH function but I am not good with that setup yet

  18. #18
    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,053

    Re: Multi-column search to return a single value

    When I asked you to cut down the sample to a sensible size, I also asked you to ensure that there was AT Least one row that matched. Which row(s) are supposed to match. My formula returns an error for all rows.

  19. #19
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    Hmmm. the rows I left should match in the source sheet
    SOURCE Row 5 = DEST Row 2

  20. #20
    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,053

    Re: Multi-column search to return a single value

    OK. I'll check that one. I also introduced a Match of my own (yellow rows). This worked:

    =IFERROR(INDEX('Product details - SOURCE'!$A$2:$A$50,MATCH(1,INDEX(('Product details - SOURCE'!$E$2:$E$50=F2)*('Product details - SOURCE'!$B$2:$B$50=G2)*('Product details - SOURCE'!$N$2:$N$50=M2)*('Product details - SOURCE'!$H$2:$H$50=N2)*('Product details - SOURCE'!$K$2:$K$50=S2)*('Product details - SOURCE'!$M$2:$M$50=U2),0),0)),"")

    I'll double check your one in a second.

  21. #21
    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,053

    Re: Multi-column search to return a single value

    In your "matching data":

    Source says 10k Rose Gold for Primary Material and blank for karetage.

    Destination says Rose Gold for PM and 10 k for karetage.

    That's why nothing was found. Anyway... does my formula (seem to) do the job?

  22. #22
    Registered User
    Join Date
    02-24-2013
    Location
    USA
    MS-Off Ver
    16.63.1 (2022)
    Posts
    82

    Re: Multi-column search to return a single value

    Thanx a lot

  23. #23
    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,053

    Re: Multi-column search to return a single value

    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. [SOLVED] create 1 multi-column array from multiple single column arrays
    By Coley356 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2021, 05:04 PM
  2. Replies: 4
    Last Post: 11-30-2015, 05:06 PM
  3. [SOLVED] Creating Single Column List from multi-row/column table and removing blanks
    By ChemistB in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-10-2014, 02:23 PM
  4. [SOLVED] Match search terms, and add data in next column. Multi search problem.
    By Wales MB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2013, 06:10 PM
  5. Replies: 19
    Last Post: 10-05-2012, 01:03 PM
  6. [SOLVED] VLOOKUP to search multiple columns and return value from single column
    By BBExcelusr in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 08-01-2012, 01:12 PM
  7. return multiple similar data on multi variable search
    By patrodgers in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 05-24-2012, 04:56 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