Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Combine and display values in range in 1 cell but skip blank cells

I have a range of data in collumns that I wish to combine into one cell at
location E3 (with comas so it should look like 9,5,10b,4). The range is
AE3:BG3 but some cells are blank. The values in the cells are just numbers
but I dont want to add them, just display them. Any tips are appreciated.

the data looks like this:
AG AH AI AJ -
11 9 23 24 18 21 3 4 8 10b 15 16 20 17

11 18 21 4 10b 15 16 20 17

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Combine and display values in range in 1 cell but skip blankcells

Well, this is a bit clumsy given that you have so many cells:

=SUBSTITUTE(AE3&", "&AF3&", "&AG3&", "&AH3&", "&AI3&", "&...
.... &BE3&", "&BF3&", "&IF(BG3="",",",BG3&","),", ,",",")

You will need to continue with the terms:

.... &cell&", " ...

in the middle of the formula for each of your cells. You will have a
comma at the end of the last non-blank term - you could delete this
using LEFT.

Hope this helps.

Pete

On Sep 4, 1:31*pm, Swiss wrote:
I have a range of data in collumns that I wish to combine into one cell at
location E3 (with comas so it should look like 9,5,10b,4). *The range is
AE3:BG3 but some cells are blank. *The values in the cells are just numbers
but I dont want to add them, just display them. *Any tips are appreciated.

the data looks like this:
AG * * * * * AH * * * * * * AI * * * * * * AJ -
11 * * *9 * * * 23 * * *24 * * *18 * * *21 * * *3 * * * 4 * * * 8 * * * 10b * * 15 * * *16 * * *20 * * *17

11 * * * * * * * * * * * * * * *18 * * *21 * * * * * * *4 * * * * * * * 10b * * 15 * * *16 * * *20 * * *17


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Combine and display values in range in 1 cell but skip blank cells

Download and install the free add-in Morefunc.xll from:
http://www.download.com/Morefunc/300...-10423159.html

then use this formula

=SUBSTITUTE(TRIM(MCONCAT(IF(AE3:BG3<"",AE3:BG3,"" )&" "))," ",", ")

ctrl+shift+enter, not just enter



"Swiss" wrote:

I have a range of data in collumns that I wish to combine into one cell at
location E3 (with comas so it should look like 9,5,10b,4). The range is
AE3:BG3 but some cells are blank. The values in the cells are just numbers
but I dont want to add them, just display them. Any tips are appreciated.

the data looks like this:
AG AH AI AJ -
11 9 23 24 18 21 3 4 8 10b 15 16 20 17

11 18 21 4 10b 15 16 20 17

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Combine and display values in range in 1 cell but skip blank c

Thank you so much - that solution worked well.

Cheers -

"Teethless mama" wrote:

Download and install the free add-in Morefunc.xll from:
http://www.download.com/Morefunc/300...-10423159.html

then use this formula

=SUBSTITUTE(TRIM(MCONCAT(IF(AE3:BG3<"",AE3:BG3,"" )&" "))," ",", ")

ctrl+shift+enter, not just enter



"Swiss" wrote:

I have a range of data in collumns that I wish to combine into one cell at
location E3 (with comas so it should look like 9,5,10b,4). The range is
AE3:BG3 but some cells are blank. The values in the cells are just numbers
but I dont want to add them, just display them. Any tips are appreciated.

the data looks like this:
AG AH AI AJ -
11 9 23 24 18 21 3 4 8 10b 15 16 20 17

11 18 21 4 10b 15 16 20 17

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
Chart to display only bars for values that are > 3 & blank cells Neil Goldwasser Excel Worksheet Functions 1 August 4th 05 09:37 PM
How do I skip blank cells when copying over a range of cells? tawells Excel Discussion (Misc queries) 2 June 7th 05 09:36 PM
display negative values as a blank cell in Excel pherozeb Excel Discussion (Misc queries) 3 January 5th 05 04:40 AM
display negative values as a blank cell in Excel Pheroze Bharucha Excel Discussion (Misc queries) 0 January 4th 05 10:51 PM


All times are GMT +1. The time now is 01:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"