Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm having a problem, and I don't know if there's a solution in the form of
an Excel function. I believe I could write a VB Macro to accomplish what I need to do, but I can't use macros for this application. I have a Dataset that looks like this: John Smith <blank cell Jane Doe John Doe <blank cell Jane Smith I need it to concatenate as John Smith, Jane Doe, John Doe, Jane Smith I have the MCONCAT function, which works, but it does not solve the blank cell problem. I have also tried the formula suggested by Toothless Mama in the past, but that doesn't help me with the space. Any suggestions would be appreciated! Thanks! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Leslie,
MCONCAT does solve the spaces problem =MCONCAT(A1:A6," ") Returns John Smith Jane Doe John Doe Jane Smith Mike "Leslie W." wrote: I'm having a problem, and I don't know if there's a solution in the form of an Excel function. I believe I could write a VB Macro to accomplish what I need to do, but I can't use macros for this application. I have a Dataset that looks like this: John Smith <blank cell Jane Doe John Doe <blank cell Jane Smith I need it to concatenate as John Smith, Jane Doe, John Doe, Jane Smith I have the MCONCAT function, which works, but it does not solve the blank cell problem. I have also tried the formula suggested by Toothless Mama in the past, but that doesn't help me with the space. Any suggestions would be appreciated! Thanks! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
=SUBSTITUTE(MCONCAT(IF(A1:A6<"",A1:A6&", ","")),",","",COUNTA(A1:A6)) ctrl+shift+enter, not just enter "Leslie W." wrote: I'm having a problem, and I don't know if there's a solution in the form of an Excel function. I believe I could write a VB Macro to accomplish what I need to do, but I can't use macros for this application. I have a Dataset that looks like this: John Smith <blank cell Jane Doe John Doe <blank cell Jane Smith I need it to concatenate as John Smith, Jane Doe, John Doe, Jane Smith I have the MCONCAT function, which works, but it does not solve the blank cell problem. I have also tried the formula suggested by Toothless Mama in the past, but that doesn't help me with the space. Any suggestions would be appreciated! Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
extract text between two spaces | Excel Discussion (Misc queries) | |||
remove spaces in front of text | Excel Discussion (Misc queries) | |||
How do I delete spaces from the end of text | Excel Discussion (Misc queries) | |||
how to erase all spaces in text cell? | Excel Worksheet Functions | |||
Replacing spaces in text, with another character | Excel Worksheet Functions |