ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Combining data from multiple cells into one cell with commas (https://www.excelbanter.com/excel-discussion-misc-queries/232591-combining-data-multiple-cells-into-one-cell-commas.html)

lawandgrace

Combining data from multiple cells into one cell with commas
 
I have several cells containing data that have a common denominator that I
want to combine in one single cell with commas to separate the data.

I have tried the following formula (acquired from elsewhere on this blog):

=SUBSTITUTE(IF($A$9="20090501182755",$E$9&",","")& IF($A$10="20090501182755",$E$10&",",""),",","",COU NTIF($A$9:$A$10,"=20090501182755"))

However, instead of returning the data I want, it shows no data at all, not
even an error, just a blank cell.

Any suggestions? Thanks for your help!

RagDyeR

Combining data from multiple cells into one cell with commas
 
I think it all comes down to your use of quotes around your A9 and A10
values.

If those are real XL recognized numbers in A9 and A10, then simply remove
the quotes from your formula,
OR ...
Make the values in A9 and A10 text values by adding a single quote to the
beginning of those cells.

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"lawandgrace" wrote in message
...
I have several cells containing data that have a common denominator that I
want to combine in one single cell with commas to separate the data.

I have tried the following formula (acquired from elsewhere on this blog):

=SUBSTITUTE(IF($A$9="20090501182755",$E$9&",","")& IF($A$10="20090501182755",$E$10&",",""),",","",COU NTIF($A$9:$A$10,"=20090501182755"))

However, instead of returning the data I want, it shows no data at all, not
even an error, just a blank cell.

Any suggestions? Thanks for your help!




All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com