Thread: Bad result
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arlene Arlene is offline
external usenet poster
 
Posts: 38
Default Bad result

Thanks don't know why I did not realize I had an A instead of an I.

"PCLIVE" wrote:

If the following line is in multiple cells:
176.51 H083 02/01/2007 0:00 HAUL 1081 6.5 P 601 41805 H TGH6.51

A63 = 176.51
B63 = H083
C63 = 2/1/2007 0:00
D63 = HAUL
E63 = 1081
F63 = 6.5
G63 = P
H63 = 601
I63 = 41805
J63 = TGH6.51

Then it would appear you need to change your formula to reference only I63
and Not A63:
=IF(LEFT(I63,2)="41","TGH"&MID(I63,3,5),I63)

HTH,
Paul

"PCLIVE" wrote in message
...
What values do you have in A63 and I63?

"Arlene" wrote in message
...
176.51 H083 02/01/2007 0:00 HAUL 1081 6.5 P 601 41805 H TGH6.51

=IF(LEFT(I63,2)="41","TGH"&MID(A63,3,5),I63)

I have this formula attached to this line and the result should be TGH805
instead it comes out TGH6.51 can anyone please explain. Thanks