+ Reply to Thread
Results 1 to 4 of 4

Return single value out of several matching values

  1. #1
    Registered User
    Join Date
    02-23-2022
    Location
    Faisalabad, Pakistan
    MS-Off Ver
    2013
    Posts
    3

    Question Return single value out of several matching values

    Hi Everyone!
    I need help to get single value out of multiple matching values (criteria: if Name, Reg. No & Class are same then get values under Month & Amount). Attaching a sample file.
    Sample.gif
    Last edited by SalmanKS; 02-23-2022 at 02:45 AM.

  2. #2
    Registered User
    Join Date
    02-23-2022
    Location
    Faisalabad, Pakistan
    MS-Off Ver
    2013
    Posts
    3

    Re: Return single value out of several matching values

    Sorry... I was unable to attach an Excel file. Beg my pardon.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Return single value out of several matching values

    In K2, copied up to column M

    =IFERROR(INDEX(A$2:A$7,AGGREGATE(15,6,ROW($A$2:$A$7)/(ISERROR(MATCH($A$2:$A$7&$B$2:$B$7&$C$2:$C$7,$K$1:$K1&$L$1:$L1&$M$1:$M1,0))),1)-ROW($A$1)),"")

    In N2

    =TEXTJOIN(", ",TRUE,IF(($A$2:$A$7=$K2)*($B$2:$B$7=$L2)*($C$2:$C$7=$M2),$D$2:$D$7,""))

    In O2

    =IF(K2="","",SUMIFS($E$2:$E$7,$A$2:$A$7,$K2,$B$2:$B$7,$L2,$C$2:$C$7,$M2))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    02-23-2022
    Location
    Faisalabad, Pakistan
    MS-Off Ver
    2013
    Posts
    3

    Re: Return single value out of several matching values

    Thank you so much for your dedicated concern. All the fields are working good except "m column". It returns #NAME? even in the downloaded sheet. If it could be fixed, it will be marvelous .
    Attached Files Attached Files

+ 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: 1
    Last Post: 05-12-2020, 08:42 AM
  2. [SOLVED] VBA to return multiple matching values into a single cell
    By ChipsSlave in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-05-2017, 01:53 AM
  3. [SOLVED] looking for VBA code to return a value in a single cell of the sum of cells with matching
    By Rob69mfj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2014, 05:33 PM
  4. [SOLVED] Return cell values for non-matching & matching criteria
    By jenz_skallemose in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-13-2012, 11:52 AM
  5. matching values based on criteria and return values from another columns
    By lizard54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 11:29 AM
  6. Replies: 0
    Last Post: 08-23-2012, 01:43 PM
  7. Find Matching values from single row
    By simon123 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-17-2011, 10:22 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