Thread: largest string
View Single Post
 
Old 05-12-2012, 01:53 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

That is pretty basic:
=MAX(LEN(B1),LEN(B2),LEN(A2))
returns the greatest string length and:
=IF(LEN(B1)=MAX(LEN(B1),LEN(B2),LEN(A2)),B1,"")&IF (LEN(B2)=MAX(LEN(B1),LEN(B2),LEN(A2)),B2,"")&IF(LE N(A2)=MAX(LEN(B1),LEN(B2),LEN(A2)),A2,"")
returns the longest string(s).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote