Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
anyone know if there is a formula that can return the first word of a string
example: 1 Abelia grandiflora 'Sherwoodii' return - Abelia example: 2 Abies balsamea return - Abies example: 3 Abutilon return - Abutilon what is needed is one formula that will cover all string possibilities Thnkyou if you can help. |
#2
![]() |
|||
|
|||
![]()
Try this:
=LEFT(A1,FIND(" ",A1,1)-1) "Pat" wrote: anyone know if there is a formula that can return the first word of a string example: 1 Abelia grandiflora 'Sherwoodii' return - Abelia example: 2 Abies balsamea return - Abies example: 3 Abutilon return - Abutilon what is needed is one formula that will cover all string possibilities Thnkyou if you can help. |
#3
![]() |
|||
|
|||
![]()
Thanks David, it works for example 1 & 2
#VALUE! is returned for 3 "David Hepner" wrote in message ... Try this: =LEFT(A1,FIND(" ",A1,1)-1) "Pat" wrote: anyone know if there is a formula that can return the first word of a string example: 1 Abelia grandiflora 'Sherwoodii' return - Abelia example: 2 Abies balsamea return - Abies example: 3 Abutilon return - Abutilon what is needed is one formula that will cover all string possibilities Thnkyou if you can help. |
#4
![]() |
|||
|
|||
![]()
On Fri, 9 Sep 2005 13:54:29 +0100, "Pat"
wrote: Thanks David, it works for example 1 & 2 #VALUE! is returned for 3 Try modifying David's suggestion to: =IF(ISERROR(FIND(" ",A1)),A1,LEFT(A1,FIND(" ",A1,1)-1)) Rgds __ Richard Buttrey Grappenhall, Cheshire, UK __________________________ |
#5
![]() |
|||
|
|||
![]()
Sorry, I didn't test all three. This should work.
=IF(FIND("",A1,1),LEFT(A1,LEN(A1)),LEFT(A1,FIND(" ",A1,1)-1)) "Pat" wrote: Thanks David, it works for example 1 & 2 #VALUE! is returned for 3 "David Hepner" wrote in message ... Try this: =LEFT(A1,FIND(" ",A1,1)-1) "Pat" wrote: anyone know if there is a formula that can return the first word of a string example: 1 Abelia grandiflora 'Sherwoodii' return - Abelia example: 2 Abies balsamea return - Abies example: 3 Abutilon return - Abutilon what is needed is one formula that will cover all string possibilities Thnkyou if you can help. |
#6
![]() |
|||
|
|||
![]()
On Fri, 9 Sep 2005 13:36:37 +0100, "Pat" wrote:
anyone know if there is a formula that can return the first word of a string example: 1 Abelia grandiflora 'Sherwoodii' return - Abelia example: 2 Abies balsamea return - Abies example: 3 Abutilon return - Abutilon what is needed is one formula that will cover all string possibilities Thnkyou if you can help. =LEFT(A1,FIND(" ",A1&" ")-1) (will also work on the last example) --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to return a dollar value for a part number entered in a cell | Excel Worksheet Functions | |||
I need help with an "If" Statement | Excel Worksheet Functions | |||
Replace part of link address in a cell with a value(date) from ano | Excel Discussion (Misc queries) | |||
Syntax for inferred cell references | Excel Worksheet Functions | |||
Formula to return cell contents based on multiple conditions | Excel Worksheet Functions |