Out of interest what was wrong with Koul's 'concatenate' example with  
nested IF's ... ? This is the route I would have gone, although I  
would update it slightly like so ...

=CONCATENATE(IF(OR(ISBLANK(A1), A1=" ", A1="  "),"  
",A1),IF(OR(ISBLANK(B1), B1=" ", B1="  ")," ",B1),IF(OR(ISBLANK(C1),  
C1=" ", C1="  ")," ",C1),IF(OR(ISBLANK(D1), D1=" ", D1="  "),"  
",D1),IF(OR(ISBLANK(E1), E1=" ", E1="  ")," ",E1),IF(OR(ISBLANK(F1),  
F1=" ", F1="  ")," ",F1),IF(OR(ISBLANK(G1), G1=" ", G1="  "),"  
",G1),IF(OR(ISBLANK(H1), H1=" ", H1="  ")," ",H1))

Adding the OR function to each logical test for examples where a  
'space' or 2 'spaces' were introduced, the other arguments suggested  
assume that every cell without a value is always going to be a Null /  
Blank only ... you could extend this formula to look at more columns  
although you'd maybe have to be careful with the number of OR's used.

Luke

On 24 Nov 2009, at 09:01, Dave Bonallack wrote:

> Hi Steve,
> If you use the suggested =B4 & " " &C4 & " "  & D4 etc, the result  
> will be double spaces for each blank cell.
> You can get rid of these using the TRIM function.
> =TRIM(B4 & " " &C4 & " "  & D4)
> Regards = Dave.

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe

Reply via email to