Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9131697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:10:58+00:00 2026-06-17T08:10:58+00:00

what I have here is a matrix like this id value 1 A 2

  • 0

what I have here is a matrix like this

    id  value  
     1   A 
     2   B
     3   C
     1   D 
     3   E
     1   F

What I need to do is to sum what I have in the value, having something along the lines of

    id  value  
     1   A, D, F 
     2   B
     3   C, E

Removing the duplicated it would be nice to have but not mandatory.
I tried with this formula in a third column but…

 =IF(COUNTIF(A:A,A1)>1,CONCATENATE(B1,",",VLOOKUP(A1,A1:B999,2)),B1)   

VLOOKUP just gives me back ONE value, it means that I cannot handle more than 1 duplicate.

I did try with VBA but it’s the first time for me and it’s getting complicated, furthermore I cannot find a decent documentation about excel VBA. every suggestion is appreciated. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:10:59+00:00Added an answer on June 17, 2026 at 8:10 am

    This link with the following VBA function may help you:

    Function vlookupall(sSearch As String, rRange As Range, _
        Optional lLookupCol As Long = 2, Optional sDel As String = ",") As String
    'Vlookupall searches in first column of rRange for sSearch and returns
    'corresponding values of column lLookupCol if sSearch was found. All these
    'lookup values are being concatenated, delimited by sDel and returned in
    'one string. If lLookupCol is negative then rRange must not have more than
    'one column.
    'Reverse("moc.LiborPlus.www") PB 16-Sep-2010 V0.20
    Dim i As Long, sTemp As String
    If lLookupCol > rRange.Columns.Count Or sSearch = "" Or _
        (lLookupCol < 0 And rRange.Columns.Count > 1) Then
        vlookupall = CVErr(xlErrValue)
        Exit Function
    End If
    vlookupall = ""
    For i = 1 To rRange.Rows.Count
        If rRange(i, 1).Text = sSearch Then
            If lLookupCol >= 0 Then
                vlookupall = vlookupall & sTemp & rRange(i,lLookupCol).Text
            Else
                vlookupall = vlookupall & sTemp & rRange(i).Offset(0,lLookupCol).Text
            End If
            sTemp = sDel
        End If
    Next i
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a headered matrix and I would like to add the word genes
I have created a 2D matrix like this: 45 67 Row Fine 25 22
I have A matrix part of which looks like this : 4080530 92 --
I have a list of key/value pairs and would like to convert it into
The objective here is to have a pointer that works like a 2D matrix.
in this function i have a matrix of colors(each pixel can has a value
I have a matrix in ssrs like this: +--------------------+-------------------------+ | | Date | +
I have a situation like this: I produced 1000 random lists (here only 4
I have a matrix from which I would like to select an observation together
I am new to c# and I have this problem: I have here a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.