Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2021, 05:06 AM
p45cal's Avatar
p45cal p45cal is offline Copying and Concatenating data in excel based on a value in another column Windows 10 Copying and Concatenating data in excel based on a value in another column Office 2019
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

You can try a function like this:
Code:
Function ConcatRows(sce, WhichRows)
For Each rw In WhichRows
  Z = Z & sce.Cells(rw).Value
Next rw
ConcatRows = Z
End Function
and use it in a worksheet thus:
=ConcatRows(A1:A15,D1:D4)
or:


=ConcatRows(A1:A15,{2,4,6,8})


No checks or bells and whistles.
Reply With Quote
  #2  
Old 10-17-2021, 06:25 AM
BoardingSUP BoardingSUP is offline Copying and Concatenating data in excel based on a value in another column Windows 10 Copying and Concatenating data in excel based on a value in another column Office 2019
Novice
Copying and Concatenating data in excel based on a value in another column
 
Join Date: Oct 2021
Posts: 3
BoardingSUP is on a distinguished road
Default

That worked great, Thank you for the help.
Reply With Quote
Reply

Tags
excel 2019, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto populate form (data from excel) in Word based on drop down list selection (data from excel) wvlls Word VBA 1 03-22-2019 02:29 PM
Copying and Concatenating data in excel based on a value in another column Copying data in a column to another column Peace Freak Excel 2 04-28-2017 12:31 AM
Extract data based on pattern with respect to specific column PRA007 Excel Programming 14 12-04-2015 04:32 AM
Help with Macro - copying formula to last line of data based on another column kidwispa Excel Programming 1 07-12-2015 05:01 PM
Copying data from Project to Excel OTPM Project 13 12-20-2013 10:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft