Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjust tab key function and enter key function in Excel Daryl Bachalo New Users to Excel 2 March 20th 10 02:30 PM
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
Help to build a Look Up Function or What Ever Function Excel 2002 Carlo Excel Worksheet Functions 6 April 3rd 08 07:39 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
challenge! javascript function into excel function Kamila Excel Worksheet Functions 2 February 19th 07 06:35 AM


All times are GMT +1. The time now is 08:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"