#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default "Begins with"

How can I express the following within a function?

begins with
contains
ends with
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default "Begins with"

It depends what kind of function? Which one are you thinking of?


--
Regards,

Peo Sjoblom



"Amber" wrote in message
...
How can I express the following within a function?

begins with
contains
ends with



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default "Begins with"

Amber,

If you mean a UDF then you can use the LIKE function in VBA but you need to
be more specific.

Mike

"Amber" wrote:

How can I express the following within a function?

begins with
contains
ends with

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default "Begins with"

On May 25, 10:59 am, Amber wrote:
How can I express the following within a function?

begins with
contains
ends with


I think you are looking for the LEFT, FIND, and RIGHT functions. Not
sure exactly how you want to use these but here's some examples:

Does the cell A1 begin with "Bob"?
=LEFT(A1,3)="Bob"

Does the cell A1 contain "Bob"?
=FIND("Bob",A1)0

Does the cell A1 end with "Bob"?
=RIGHT(A1,3)="Bob"


If you want to refer to another cell, say B1, then it's:
=LEFT(A1,LEN(B1))=B1
=FIND(B1,A1)0
=RIGHT(A1,LEN(B1))=B1


cheers,
..o.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default "Begins with"

What I am trying to do is do a sumif statement but there are some of the the
line items that I want to not be added. I need to try to figure out how to
say that in an expression.... Any help you could give would be great.

Thanks Amber

" wrote:

On May 25, 10:59 am, Amber wrote:
How can I express the following within a function?

begins with
contains
ends with


I think you are looking for the LEFT, FIND, and RIGHT functions. Not
sure exactly how you want to use these but here's some examples:

Does the cell A1 begin with "Bob"?
=LEFT(A1,3)="Bob"

Does the cell A1 contain "Bob"?
=FIND("Bob",A1)0

Does the cell A1 end with "Bob"?
=RIGHT(A1,3)="Bob"


If you want to refer to another cell, say B1, then it's:
=LEFT(A1,LEN(B1))=B1
=FIND(B1,A1)0
=RIGHT(A1,LEN(B1))=B1


cheers,
..o.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default "Begins with"

Sorry I forgot to add that the items items to exclude would all start
with"600" but are all different.

"Amber" wrote:

What I am trying to do is do a sumif statement but there are some of the the
line items that I want to not be added. I need to try to figure out how to
say that in an expression.... Any help you could give would be great.

Thanks Amber

" wrote:

On May 25, 10:59 am, Amber wrote:
How can I express the following within a function?

begins with
contains
ends with


I think you are looking for the LEFT, FIND, and RIGHT functions. Not
sure exactly how you want to use these but here's some examples:

Does the cell A1 begin with "Bob"?
=LEFT(A1,3)="Bob"

Does the cell A1 contain "Bob"?
=FIND("Bob",A1)0

Does the cell A1 end with "Bob"?
=RIGHT(A1,3)="Bob"


If you want to refer to another cell, say B1, then it's:
=LEFT(A1,LEN(B1))=B1
=FIND(B1,A1)0
=RIGHT(A1,LEN(B1))=B1


cheers,
..o.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default "Begins with"

Maybe something like this:

=SUMPRODUCT(--(LEFT(A1:A10,3)<"600"),B1:B10)

Biff

"Amber" wrote in message
...
What I am trying to do is do a sumif statement but there are some of the
the
line items that I want to not be added. I need to try to figure out how to
say that in an expression.... Any help you could give would be great.

Thanks Amber

" wrote:

On May 25, 10:59 am, Amber wrote:
How can I express the following within a function?

begins with
contains
ends with


I think you are looking for the LEFT, FIND, and RIGHT functions. Not
sure exactly how you want to use these but here's some examples:

Does the cell A1 begin with "Bob"?
=LEFT(A1,3)="Bob"

Does the cell A1 contain "Bob"?
=FIND("Bob",A1)0

Does the cell A1 end with "Bob"?
=RIGHT(A1,3)="Bob"


If you want to refer to another cell, say B1, then it's:
=LEFT(A1,LEN(B1))=B1
=FIND(B1,A1)0
=RIGHT(A1,LEN(B1))=B1


cheers,
..o.






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default "Begins with"

What do A and B Stand for?

"T. Valko" wrote:

Maybe something like this:

=SUMPRODUCT(--(LEFT(A1:A10,3)<"600"),B1:B10)

Biff

"Amber" wrote in message
...
What I am trying to do is do a sumif statement but there are some of the
the
line items that I want to not be added. I need to try to figure out how to
say that in an expression.... Any help you could give would be great.

Thanks Amber

" wrote:

On May 25, 10:59 am, Amber wrote:
How can I express the following within a function?

begins with
contains
ends with

I think you are looking for the LEFT, FIND, and RIGHT functions. Not
sure exactly how you want to use these but here's some examples:

Does the cell A1 begin with "Bob"?
=LEFT(A1,3)="Bob"

Does the cell A1 contain "Bob"?
=FIND("Bob",A1)0

Does the cell A1 end with "Bob"?
=RIGHT(A1,3)="Bob"


If you want to refer to another cell, say B1, then it's:
=LEFT(A1,LEN(B1))=B1
=FIND(B1,A1)0
=RIGHT(A1,LEN(B1))=B1


cheers,
..o.







  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default "Begins with"

Cell references, replace them with the ranges you want to apply this on




--
Regards,

Peo Sjoblom



"Amber" wrote in message
...
What do A and B Stand for?

"T. Valko" wrote:

Maybe something like this:

=SUMPRODUCT(--(LEFT(A1:A10,3)<"600"),B1:B10)

Biff

"Amber" wrote in message
...
What I am trying to do is do a sumif statement but there are some of
the
the
line items that I want to not be added. I need to try to figure out how
to
say that in an expression.... Any help you could give would be great.

Thanks Amber

" wrote:

On May 25, 10:59 am, Amber wrote:
How can I express the following within a function?

begins with
contains
ends with

I think you are looking for the LEFT, FIND, and RIGHT functions. Not
sure exactly how you want to use these but here's some examples:

Does the cell A1 begin with "Bob"?
=LEFT(A1,3)="Bob"

Does the cell A1 contain "Bob"?
=FIND("Bob",A1)0

Does the cell A1 end with "Bob"?
=RIGHT(A1,3)="Bob"


If you want to refer to another cell, say B1, then it's:
=LEFT(A1,LEN(B1))=B1
=FIND(B1,A1)0
=RIGHT(A1,LEN(B1))=B1


cheers,
..o.









  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default "Begins with"

A1:A10 is the range of cells that contain your line items.
B1:B10 is the range to sum.

Maybe you need to post a more descriptive explanation.

Biff

"Amber" wrote in message
...
What do A and B Stand for?

"T. Valko" wrote:

Maybe something like this:

=SUMPRODUCT(--(LEFT(A1:A10,3)<"600"),B1:B10)

Biff

"Amber" wrote in message
...
What I am trying to do is do a sumif statement but there are some of
the
the
line items that I want to not be added. I need to try to figure out how
to
say that in an expression.... Any help you could give would be great.

Thanks Amber

" wrote:

On May 25, 10:59 am, Amber wrote:
How can I express the following within a function?

begins with
contains
ends with

I think you are looking for the LEFT, FIND, and RIGHT functions. Not
sure exactly how you want to use these but here's some examples:

Does the cell A1 begin with "Bob"?
=LEFT(A1,3)="Bob"

Does the cell A1 contain "Bob"?
=FIND("Bob",A1)0

Does the cell A1 end with "Bob"?
=RIGHT(A1,3)="Bob"


If you want to refer to another cell, say B1, then it's:
=LEFT(A1,LEN(B1))=B1
=FIND(B1,A1)0
=RIGHT(A1,LEN(B1))=B1


cheers,
..o.











  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default "Begins with"

Like this:

A1 = XXXabcZZZ

begins with


=LEFT(A1,3)="XXX"

contains


=ISNUMBER(SEARCH("abc",A1))

ends with


=RIGHT(A1,3)="ZZZ"

Note that none of these are case sensitive.

Biff

"Amber" wrote in message
...
How can I express the following within a function?

begins with
contains
ends with



  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default "Begins with"

On May 25, 10:59 am, Amber wrote:
How can I express the following within a function?

begins with
contains
ends with


I think you are looking for the LEFT, FIND, and RIGHT functions. Not
sure exactly how you want to use these but here's some examples:

Does the cell A1 begin with "Bob"?
=LEFT(A1,3)="Bob"

Does the cell A1 contain "Bob"?
=FIND("Bob",A1)0

Does the cell A1 end with "Bob"?
=RIGHT(A1,3)="Bob"


If you want to refer to another cell, say B1, then it's:
=LEFT(A1,LEN(B1))=B1
=FIND(B1,A1)0
=RIGHT(A1,LEN(B1))=B1


cheers,
..o.



  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default "Begins with"

As worksheet functions?

Begins with:
=countif(a1,"Amber*")0

contains:
=countif(a1,"*amber*")0

ends with:
=countif(a1,"*amber")0

Amber wrote:

How can I express the following within a function?

begins with
contains
ends with


--

Dave Peterson
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
How do I write "begins with"? Terri Excel Discussion (Misc queries) 1 February 22nd 07 01:48 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Sorting text that begins with "the" or "a" kcg727 Excel Discussion (Misc queries) 2 February 25th 06 10:44 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


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

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

About Us

"It's about Microsoft Excel"