Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Spaces
Hi
Anyone can help I have this problem in this formula A B C D 1 Olives Chili Cumin 2 12 19 15 =IF(A2<20;$A$1;"")&IF(B2<20;$B$1;"")&IF(C2<20;$C$1 ;"") What I get is Oiveschilicumin without spaces in between, how to have the spaces in this formula Thanks in advance Jam |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Spaces
Hi Jam,
=IF(A2<20;$A$1;"")&" "&IF(B2<20;$B$1;"")&" "&IF(C2<20;$C$1;"") -- Kind regards, Niek Otten Microsoft MVP - Excel wrote in message oups.com... | Hi | Anyone can help | I have this problem in this formula | A B C D | 1 Olives Chili Cumin | 2 12 19 15 | =IF(A2<20;$A$1;"")&IF(B2<20;$B$1;"")&IF(C2<20;$C$1 ;"") | What I get is Oiveschilicumin without spaces in between, how to have | the spaces in this formula | Thanks in advance | Jam | |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Spaces
=IF(A2<20;$A$1;"")&" "&IF(B2<20;$B$1;"")&" "&IF(C2<20;$C$1;"")
-- David Biddulph wrote in message oups.com... Hi Anyone can help I have this problem in this formula A B C D 1 Olives Chili Cumin 2 12 19 15 =IF(A2<20;$A$1;"")&IF(B2<20;$B$1;"")&IF(C2<20;$C$1 ;"") What I get is Oiveschilicumin without spaces in between, how to have the spaces in this formula Thanks in advance Jam |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Spaces
Just a little point you may want to run trim over it afterwards to remove
duplicate spaces for example: =trim(IF(A2<20;$A$1;"")&" "&IF(B2<20;$B$1;"")&" "&IF(C2<20;$C$1;"")) if B2=20 you get Olives _ _ Cumin and therefore the trim will remove duplicate spaces as give you Olives _ Cumin -- Hope this helps Martin Fishlock, Bangkok, Thailand Please do not forget to rate this reply. "Niek Otten" wrote: Hi Jam, =IF(A2<20;$A$1;"")&" "&IF(B2<20;$B$1;"")&" "&IF(C2<20;$C$1;"") -- Kind regards, Niek Otten Microsoft MVP - Excel wrote in message oups.com... | Hi | Anyone can help | I have this problem in this formula | A B C D | 1 Olives Chili Cumin | 2 12 19 15 | =IF(A2<20;$A$1;"")&IF(B2<20;$B$1;"")&IF(C2<20;$C$1 ;"") | What I get is Oiveschilicumin without spaces in between, how to have | the spaces in this formula | Thanks in advance | Jam | |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Spaces
Maybe...
=trim(a1&" "&b1&" "&c1) wrote: Hi Anyone can help I have this problem in this formula A B C D 1 Olives Chili Cumin 2 12 19 15 =IF(A2<20;$A$1;"")&IF(B2<20;$B$1;"")&IF(C2<20;$C$1 ;"") What I get is Oiveschilicumin without spaces in between, how to have the spaces in this formula Thanks in advance Jam -- Dave Peterson |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Spaces
Niek Otten, Martin Fishlock, and David Biddulph all use
"")&" "& (why???) you could use this instead " ")& To eliminate many spaces as the result . The header should have a space in front than OP could use the original formula. " wrote: Hi Anyone can help I have this problem in this formula A B C D 1 Olives Chili Cumin 2 12 19 15 =IF(A2<20;$A$1;"")&IF(B2<20;$B$1;"")&IF(C2<20;$C$1 ;"") What I get is Oiveschilicumin without spaces in between, how to have the spaces in this formula Thanks in advance Jam |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Spaces
Because in your formula you are putting a space in place of the empty string
when the row 2 value is =20, but what the OP was asking for was a space between his $A$1,$B$1, and $C$1 results when the row 2 value is <20. As you say, if row 1 includes either leading or trailing spaces, then the change isn't needed, but text strings with leading or particularly trailing spaces often cause confusion elsewhere. -- David Biddulph "Teethless mama" wrote in message ... Niek Otten, Martin Fishlock, and David Biddulph all use "")&" "& (why???) you could use this instead " ")& To eliminate many spaces as the result . The header should have a space in front than OP could use the original formula. " wrote: Hi Anyone can help I have this problem in this formula A B C D 1 Olives Chili Cumin 2 12 19 15 =IF(A2<20;$A$1;"")&IF(B2<20;$B$1;"")&IF(C2<20;$C$1 ;"") What I get is Oiveschilicumin without spaces in between, how to have the spaces in this formula Thanks in advance Jam |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Remove trailing spaces from multiple columns in Excel | Excel Worksheet Functions | |||
Spaces in cells | Excel Worksheet Functions | |||
How keep Leading/Trailing spaces when save in Excel? | Excel Discussion (Misc queries) | |||
spaces not recognized as spaces | Excel Worksheet Functions | |||
Stripping out imbedded spaces in a cell/row | Excel Worksheet Functions |