ModifyCellText

M

mc

I am using Excel 2007. I use the code below to copy the value to E2 and
add a period to middle initial. It all works fine except when there is
not a cell value to copy it returns a 0 to the E cell and I want the E
cell to remain empty. I tried to add "" to the false part of the if,
but it still copies a zero. What am I doing wrong?



I paste this formula into the E column

=IF(LEN(D2)=1,D2&".",D2) original code

=IF(LEN(D2)=1,D2&".","") my modified code

Thanks
 
P

Patrick Molloy

your modified formula works as you expected. Are yuo sure you typed it in
correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top