Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want to concatenate the text in different row but exclude a particular
criteria if it comes up. See below example: Different Scenarios: A B C D E 1 undecided John John undecided John 2 undecided Paul undecided Paul Paul 3 undecided undecided undecided undecided Lily RESULTS: undecided John, Paul John Paul John, Paul, Lily Basically, I only want the "undecided" shows up only if all three options are undecided; otherwise only give me the name(s) that is/are suggested. Thanks. -- M&M |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If all those names are single words:
=IF(COUNTIF(A1:A3,"undecided")=3,"undecided", SUBSTITUTE(TRIM(SUBSTITUTE(A1&" "&A2&" "&A3,"undecided"," "))," ",", ")) M&M wrote: I want to concatenate the text in different row but exclude a particular criteria if it comes up. See below example: Different Scenarios: A B C D E 1 undecided John John undecided John 2 undecided Paul undecided Paul Paul 3 undecided undecided undecided undecided Lily RESULTS: undecided John, Paul John Paul John, Paul, Lily Basically, I only want the "undecided" shows up only if all three options are undecided; otherwise only give me the name(s) that is/are suggested. Thanks. -- M&M -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try
=IF(AND(A1="undecided",A2="undecided",A3="undecide d"),"Undecided",IF(A1="undecided","",A1&", ")&IF(A2="undecided","",A2&", ")&IF(A3="undecided","",A3)) Hope you can live with an extra comma at the end if third row is 'undecided'... "M&M" wrote: I want to concatenate the text in different row but exclude a particular criteria if it comes up. See below example: Different Scenarios: A B C D E 1 undecided John John undecided John 2 undecided Paul undecided Paul Paul 3 undecided undecided undecided undecided Lily RESULTS: undecided John, Paul John Paul John, Paul, Lily Basically, I only want the "undecided" shows up only if all three options are undecided; otherwise only give me the name(s) that is/are suggested. Thanks. -- M&M |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Concatenate With Criteria | Excel Worksheet Functions | |||
EXCEL - Meet 2 criteria, then find next case of third criteria | Excel Worksheet Functions | |||
I know how to concatenate ,can one de-concatenate to split date? | New Users to Excel | |||
Counting Cells with multiple criteria.One criteria supporting wild | Excel Worksheet Functions | |||
Counting Cells with multiple criteria.One criteria supporting wild | Excel Worksheet Functions |