View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default How can i find and change a value in a cell place?

With the part # in A1:

=IF(MID(A1,2,1)="0",LEFT(A1,1)&"
"&MID(A1,3,255),IF(MID(A1,4,1)="0",LEFT(A1,3)& " "&MID(A1,5,255),A1))

Duke

"toolman" wrote:

I have part numbers that have 1 or 3 letters followed by 5 numbers. B01234,
or COM12345. I want to right a formula that if the 1st number following the
letter is a 0, replace it with a space. If it is a 1 do nothing.