Concatenate based on values in another column

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,479
Office Version
365
Platform
Windows
Try
Code:
' Removes Brackets
    Cells.Replace What:=" (*)", Replacement:="", LookAt:=xlPart, SearchOrder _
        :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
Note the space before the bracket
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Steve1977

New Member
Joined
May 16, 2019
Messages
33
Try
Code:
' Removes Brackets
    Cells.Replace What:=" (*)", Replacement:="", LookAt:=xlPart, SearchOrder _
        :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
Note the space before the bracket
:) :) Nice one sir!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,479
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,479
Office Version
365
Platform
Windows
For future reference

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 

Steve1977

New Member
Joined
May 16, 2019
Messages
33
Apologies for the cross posting - certainly won't be doing that again especially with how helpful this place is :)

I'm revisiting my file and wondered if it's possible to tweak and to apply a minimum and maximum date. Basically, this is my data

PARTNO1HyundaiAccent01/01/9431/12/99
PARTNO1Hyundaii3001/01/9831/12/16
PARTNO1Hyundaii4001/01/9931/12/17
PARTNO2HyundaiAccent01/01/9431/12/99
PARTNO2SubaruImpreza01/01/9331/12/98
PARTNO2ToyotaCelica01/01/9531/12/01
PARTNO3ToyotaCelica01/08/9431/05/02
PARTNO3ToyotaMR201/01/9131/12/01

<tbody>
</tbody>


Using this fine thread I have the necessary code to put all applications on one line and also on how to seperate Column 2.
But...how would I incorporate the date? So based on the above sample, the output would be as follows:


PARTNO1Hyundai Accent, i30, i40 01/94>12/17
PARTNO2Hyundai Accent 01/94>12/99. Subaru Impreza 01/93>12/98. Toyota Celica 01/95>12/01
PARTNO3Toyota Celica, MR2 08/94>05/02

<tbody>
</tbody>


Trying best to explain but basically it now groups up the dates by Car manufacturer (Column 2). So PARTNO1 is Hyundai with a minimum date value of 01/94 and a maximum date value of 12/17.
PARTNO2, Hyundai's Min and Max is 01/94>12/99 and so on.


Thank you for any help :)
 
Last edited:

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,479
Office Version
365
Platform
Windows
This is totally different question & needs a new thread please.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,023
Messages
5,484,250
Members
407,436
Latest member
Szafranski

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top