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

  • SEARCH
  • Home
  • 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 9027157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:41:26+00:00 2026-06-16T06:41:26+00:00

I have a database formatting problem in which I am trying to concatenate column

  • 0

I have a database formatting problem in which I am trying to concatenate column “B” rows based on column “A” rows. Like So:

https://docs.google.com/spreadsheet/ccc?key=0Am8J-Fv99YModE5Va3hLSFdnU0RibmQwNVFNelJCWHc

Sorry I couldn’t post a picture. I don’t have enough reputation points YET. I’LL Get them eventually though

So I’d like to solve this problem within Excel or Access. Its currently an access database, but I can export it to excel easily. As you can see, I want to find “userid” in column A and where there are multiple column A’s such as “shawn” I’d like to combine the multiple instances of shawn and concatenate property num as such.

Even though there are multiple instances of column A still, I could just filter all unique instances of the table later. My concern is how to concatenate column B with a “|” in the middle if column A has multiple instances.

This is just a segment of my data (There is a lot more), so I would be very thankful for your help.

The pseudo code in my head so far is:

If( Column A has more than one instance)
Then Concatenate(Column B with “#”+ “|” +”#”)

I’m also wondering if there is a way to do this on access with grouping.

Well Anyways, PLEASE HELP.

  • 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-16T06:41:28+00:00Added an answer on June 16, 2026 at 6:41 am

    In excel we can achieve it easily by custom function in vba module. Hopefully using vba(Macros) is not an issue for you.

    Here is the code for the function which can be added in vba. (Press Alt+F11, this will take you to visual editor, right click the project and add a module. Add the below code in module)

    Public Function ConcatenatePipe(ByVal lst As Range, ByVal values As Range, ByVal name As Range) As String
    ConcatenatePipe = ""
    Dim i As Integer
    
    For i = 1 To lst.Count
        If name.Value = lst.Item(i).Value Then ConcatenatePipe = ConcatenatePipe & "|" & values.Item(i).Value
    Next
    ConcatenatePipe = Mid(ConcatenatePipe, 2)
    End Function
    

    This function you can use in excel in F Column of your example. Copy the below formulla in F2 and the copy paste the cell to rest of F column. =ConcatenatePipe($A$2:$A$20,$B$2:$B$20,E2)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

that my problem: I have database table like that: id (AI) market_id 1 6
I have a web application which uses URLs that look like this: http://library.example.com/Register.aspx?query=academic&key=586c70bb-5683-419c-aae9-e596af9ab66a (The
I have a SQL Server database which has a column of date with value
I have Database with date field. I see the time like: 1900-01-01 13:38:00.000 How
i have database table like this +-------+--------------+----------+ | id | ip | date |
I have my database query currently set up like so: Edit, By the way
I came over the following problem during creating my homepage. I have a database
I have a MySQL database , with a column that is date type DATETIME
I'm trying to build a database based on some arbitrary data on a website.
Hey Stack Overflowians, I have a beginners problem for PHP which I've not had

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.