Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel Function
Hi,
I have a cell with value (Jerry, Tom, Dave, Mark), i want to find first value (that is Jerry) from the list. Which function i can use to acheive this. Thanks in advance, Shashi |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel Function
Dim varr as Variant
varr = Array("Jerry","Tom","Dave","Mark") msgbox varr(lbound(varr)) -- Regards, Tom Ogilvy "Shashi Bhosale" wrote in message ... Hi, I have a cell with value (Jerry, Tom, Dave, Mark), i want to find first value (that is Jerry) from the list. Which function i can use to acheive this. Thanks in advance, Shashi |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel Function
=LEFT(A1,FIND(",",A1)-1)
if (Jerry, Tom, Dave, Mark) is in A1, then above will return Jerry "Shashi Bhosale" wrote in message ... Hi, I have a cell with value (Jerry, Tom, Dave, Mark), i want to find first value (that is Jerry) from the list. Which function i can use to acheive this. Thanks in advance, Shashi |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel Function
Or slightly more general
Dim x, varr x = Range("A1").TextToColumns(DataType:=xlDelimited, _ ConsecutiveDelimiter:=True, Space:=True, Comma:=True) varr = Range("a1", Range("a1").End(xlToRight)) MsgBox varr(LBound(varr), LBound(varr)) You posted in . . .programming, but if you just wanted a worksheet formula, and only for the first name =MID(A2,1,FIND(",",A2)-1) Alan Beban Tom Ogilvy wrote: Dim varr as Variant varr = Array("Jerry","Tom","Dave","Mark") msgbox varr(lbound(varr)) -- Regards, Tom Ogilvy "Shashi Bhosale" wrote in message ... Hi, I have a cell with value (Jerry, Tom, Dave, Mark), i want to find first value (that is Jerry) from the list. Which function i can use to acheive this. Thanks in advance, Shashi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Adjust tab key function and enter key function in Excel | New Users to Excel | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
Help to build a Look Up Function or What Ever Function Excel 2002 | Excel Worksheet Functions | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
challenge! javascript function into excel function | Excel Worksheet Functions |