Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 138
Default Expand an extra condition in formula

Hi

In a previous posting I was advised on the below formula, however I need to
expand it further to ask for the following conditions

If the length is 11 characters and the left 3 characters and right 3
charaters are the same say yes
If the length is 7 characters say yes.

I'm stuck on how to do this, can you help me adapt the below formula or
advise of what I could use?

Kind regards

Paula


=IF(AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2)=11),"yes"," no")

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Expand an extra condition in formula

=IF(OR(LEN(F2)=7,AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2 )=11)),"yes","no")
--
David Biddulph

Paula wrote:
Hi

In a previous posting I was advised on the below formula, however I
need to expand it further to ask for the following conditions

If the length is 11 characters and the left 3 characters and right 3
charaters are the same say yes
If the length is 7 characters say yes.

I'm stuck on how to do this, can you help me adapt the below formula
or advise of what I could use?

Kind regards

Paula


=IF(AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2)=11),"yes"," no")



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Expand an extra condition in formula

Try

=IF(OR(AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2)=11),LEN( F2)=7),"yes","no")

HTH

Bob


"Paula" wrote in message
...
Hi

In a previous posting I was advised on the below formula, however I need
to
expand it further to ask for the following conditions

If the length is 11 characters and the left 3 characters and right 3
charaters are the same say yes
If the length is 7 characters say yes.

I'm stuck on how to do this, can you help me adapt the below formula or
advise of what I could use?

Kind regards

Paula


=IF(AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2)=11),"yes"," no")




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Expand an extra condition in formula

Paula,

Try this

=IF(OR(LEN(A1)=7,AND(LEN(A1)=11,LEFT(A1,3)=RIGHT(A 1,3))),"Yes","")

Mike

"Paula" wrote:

Hi

In a previous posting I was advised on the below formula, however I need to
expand it further to ask for the following conditions

If the length is 11 characters and the left 3 characters and right 3
charaters are the same say yes
If the length is 7 characters say yes.

I'm stuck on how to do this, can you help me adapt the below formula or
advise of what I could use?

Kind regards

Paula


=IF(AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2)=11),"yes"," no")

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Expand an extra condition in formula

You never mentioned NO in your text but I see it in your first formula, Try
this instead

=IF(OR(LEN(F2)=7,AND(LEN(F2)=11,LEFT(F2,3)=RIGHT(F 2,3))),"Yes","No")

Mike

"Paula" wrote:

Hi

In a previous posting I was advised on the below formula, however I need to
expand it further to ask for the following conditions

If the length is 11 characters and the left 3 characters and right 3
charaters are the same say yes
If the length is 7 characters say yes.

I'm stuck on how to do this, can you help me adapt the below formula or
advise of what I could use?

Kind regards

Paula


=IF(AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2)=11),"yes"," no")



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 138
Default Expand an extra condition in formula

Hi Mike,

Fantastic!! It works perfecrtly. Thanks again for your help, you have helped
me before.. I'll mark the post as helpful..

Bye and have a great day.

Paula

"Mike H" wrote:

You never mentioned NO in your text but I see it in your first formula, Try
this instead

=IF(OR(LEN(F2)=7,AND(LEN(F2)=11,LEFT(F2,3)=RIGHT(F 2,3))),"Yes","No")

Mike

"Paula" wrote:

Hi

In a previous posting I was advised on the below formula, however I need to
expand it further to ask for the following conditions

If the length is 11 characters and the left 3 characters and right 3
charaters are the same say yes
If the length is 7 characters say yes.

I'm stuck on how to do this, can you help me adapt the below formula or
advise of what I could use?

Kind regards

Paula


=IF(AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2)=11),"yes"," no")

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Expand an extra condition in formula

Your welcome, glad i could help

"Paula" wrote:

Hi Mike,

Fantastic!! It works perfecrtly. Thanks again for your help, you have helped
me before.. I'll mark the post as helpful..

Bye and have a great day.

Paula

"Mike H" wrote:

You never mentioned NO in your text but I see it in your first formula, Try
this instead

=IF(OR(LEN(F2)=7,AND(LEN(F2)=11,LEFT(F2,3)=RIGHT(F 2,3))),"Yes","No")

Mike

"Paula" wrote:

Hi

In a previous posting I was advised on the below formula, however I need to
expand it further to ask for the following conditions

If the length is 11 characters and the left 3 characters and right 3
charaters are the same say yes
If the length is 7 characters say yes.

I'm stuck on how to do this, can you help me adapt the below formula or
advise of what I could use?

Kind regards

Paula


=IF(AND(LEFT(F2,3)=RIGHT(F2,3),LEN(F2)=11),"yes"," no")

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
Modify and add extra condition gootroots Excel Worksheet Functions 2 November 17th 09 11:06 AM
How to expand Index/Match formula Chris Excel Worksheet Functions 2 August 30th 08 08:24 PM
How to expand the formula bar when excel opens Jeff Lowenstein Excel Discussion (Misc queries) 9 March 18th 08 04:34 PM
How do I set a cell to auto expand when it has a formula? SriGog Excel Worksheet Functions 5 August 15th 06 09:35 PM
Need help to expand existing formula Connie Martin Excel Worksheet Functions 4 November 26th 04 04:23 PM


All times are GMT +1. The time now is 07:28 PM.

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"