Join Memofields

Gerrit.B

Board Regular
Joined
Aug 10, 2004
Messages
237
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
In my query i have several memo fields.
I want to count and join this to new memofield.

See details below.

Code:
Line1[INDENT]Certificate1
Certificate2
Certificate3[/INDENT]
Line2[INDENT]Certificate1
Certificate2[/INDENT]
Line3[INDENT]Certificate1
Certificate3
Certificate4[/INDENT]
Line4[INDENT]Certificate1
Certificate2
Certificate4[/INDENT]


Result should be:[INDENT]4x Certificate1
3x Certificate2
2x Certificate3
2x Certificate4[/INDENT]

Is this possible?

Regards Gerrit
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Sometimes providing psuedo data in a post just causes the replies to start off on the wrong path. Your sample suggests the information is stored in the database incorrectly (not normalized), and as a result, you are trying to do something that would be so much easier if it wasn't. All you get from such a scenario is more issues like this one.

Not sure what I'm looking at either - query fields that you have called "lines" with rows of data (records) or lines of data that you have posted in columns. Not even sure if that's the output of a query. If this
Certificate1
Certificate2
Certificate3
represents the contents of a memo field, what you'd need complex code or perhaps a Union query on each table field, looking for Certificate1 and create such a Union query for each value to be found (i.e. 1 for Certificate1, 1 for Certificate2, etc.) and then find a way to count those results. A big task which is avoidable if the data is properly normalized.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,792
Messages
6,161,997
Members
451,735
Latest member
Deasejm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top