1
"User Name: Hari Prasad
User ID: INHPR9
Machine Name: BNGRET-L-99950
SoldtoCode: 10005625"
D2
"User Name: Stuart Macdonald
Machine Name: LONSC-L-97778
SoldtoCode: 10003058"
我寫的FR
E1
=IF(FIND("User",D1,5),LEFT(D1,FIND("User",D1,5)),LEFT(D1,FIND("Machine",D1)))
E2
=IF(FIND("User",D2,5),LEFT(D2,FIND("User",D2,5)),LEFT(D2,FIND("Machine",D2)))
RESULT
E1=User Name: Hari Prasad
E2=#VALUE ERROR
請不要忘記接受答案。請參閱http://stackoverflow.com/faq#howtoask和http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work – JMax 2011-12-15 17:41:55