Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2015, 02:25 AM
dmcg9760 dmcg9760 is offline CONCATENATE formula, Comma seperate Windows 7 64bit CONCATENATE formula, Comma seperate Office 2010 64bit
Novice
CONCATENATE formula, Comma seperate
 
Join Date: Sep 2015
Posts: 19
dmcg9760 is on a distinguished road
Default CONCATENATE formula, Comma seperate

Merry Christmas All


I have attached a excel table that I am having issues getting a comma separation of numbers when using a CONCATENATE formula Column DS and DT.

I am not sure whether I need to use vba to get this result as am still learning in excel.
Much appreciated if any one can help with this.
Attached Files
File Type: xlsm auto batch.xlsm (329.9 KB, 18 views)
Reply With Quote
  #2  
Old 12-21-2015, 03:32 AM
Debaser's Avatar
Debaser Debaser is offline CONCATENATE formula, Comma seperate Windows 7 64bit CONCATENATE formula, Comma seperate Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

Change the formulas in columns DM to DP to this:
DM5:
=SUBSTITUTE(TRIM(CONCATENATE(BS5&" "&BW5&" "&CA5&" "&CE5&" "&CI5&" "&CM5&" "&CQ5&" "&CU5))," ",",")
DN5:
=SUBSTITUTE(TRIM(CONCATENATE(BT5&" "&BX5&" "&CB5&" "&CF5&" "&CJ5&" "&CN5&" "&CR5&" "&CV5))," ",",")
DO5:
=SUBSTITUTE(TRIM(CONCATENATE(BU5&" "&BY5&" "&CC5&" "&CG5&" "&CK5&" "&CO5&" "&CS5&" "&CW5))," ",",")
DP5:
=SUBSTITUTE(TRIM(CONCATENATE(BV5&" "&BZ5&" "&CD5&" "&CH5&" "&CL5&" "&CP5&" "&CT5&" "&CX5))," ",",")

and similarly with the formulas in columns BN:BQ, then your formulas in DS and DT will work as they are.

TRIM removes any leading and trailing spaces, and replaces any consecutive spaces within the text with a single space. SUBSTITUTE then replaces those single spaces with commas.
Reply With Quote
  #3  
Old 12-21-2015, 04:20 AM
dmcg9760 dmcg9760 is offline CONCATENATE formula, Comma seperate Windows 7 64bit CONCATENATE formula, Comma seperate Office 2010 64bit
Novice
CONCATENATE formula, Comma seperate
 
Join Date: Sep 2015
Posts: 19
dmcg9760 is on a distinguished road
Smile

Hi Debaser
Cheers for that mate
Works a treat
Very nice work
Sheet is a bit messy but as long as it outputs the result is the main thing. as I am a beginner in excel the other formulas are a bit long and drawn out
I have been struggling with that formula all day
Thanks very Much
Merry Christmas
Reply With Quote
  #4  
Old 12-21-2015, 04:35 AM
dmcg9760 dmcg9760 is offline CONCATENATE formula, Comma seperate Windows 7 64bit CONCATENATE formula, Comma seperate Office 2010 64bit
Novice
CONCATENATE formula, Comma seperate
 
Join Date: Sep 2015
Posts: 19
dmcg9760 is on a distinguished road
Default

Hi Debaser
Just a quick one on that attached Excel table.
is there a quick way to make all the formulas from AH4U500 absolute references other than clicking on each individual formula and clicking F4 Button

Last edited by dmcg9760; 12-21-2015 at 04:38 AM. Reason: spelling
Reply With Quote
  #5  
Old 12-21-2015, 06:45 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline CONCATENATE formula, Comma seperate Windows 7 64bit CONCATENATE formula, Comma seperate Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Try Ctrl+H
replace AH4:U500
with $AH$4:$U$500
look in : Formula
Replace All
( I can't read the real range, smiley)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
CONCATENATE formula, Comma seperate concatenate the currency too isasa74 Excel Programming 24 12-20-2015 06:01 AM
CONCATENATE formula, Comma seperate Add a comma mbesspiata Excel 7 06-09-2014 03:36 AM
Adding comma to a custom type. mcook Excel 1 08-13-2011 03:08 AM
adding a comma in end of each line in word juanb007 Word 0 07-23-2010 01:28 PM
CONCATENATE formula, Comma seperate thousands comma separator taylormayd Excel 3 02-20-2009 03:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:01 PM.


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