Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Help with Function: Compare text and and edit in cells

Hi,

I need a function that compare text in two cells for a specific text
and if exists make edit the second cell as the first one.

For example my function willl:

1. Look for the text "#" in cell A1.
2. If "#" exists in A1 and there is a letter after it, like "#E", it
will compare it to B1.
3. If the letter after"#" is the same in A1 with B1, it should not do
anything. If the letter after "#" is different in B1 comparing to, it
needs to flag that cell by stating True or False.

Thanks in advance,
Mehmet

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,080
Default Help with Function: Compare text and and edit in cells

Put the following formula in C1:

=MID(A1,FIND("#",A1)+1,1)=MID(B1,FIND("#",B1)+1,1)

Adjust to suit.

Formulas cannot change cells,; if the formula shows FALSE you will have to
change the cell manually or write a macro to accomplish this.

__________________________________________________ ________________________


"CyranoDeBergarac" wrote in message
ups.com...
Hi,

I need a function that compare text in two cells for a specific text
and if exists make edit the second cell as the first one.

For example my function willl:

1. Look for the text "#" in cell A1.
2. If "#" exists in A1 and there is a letter after it, like "#E", it
will compare it to B1.
3. If the letter after"#" is the same in A1 with B1, it should not do
anything. If the letter after "#" is different in B1 comparing to, it
needs to flag that cell by stating True or False.

Thanks in advance,
Mehmet



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Help with Function: Compare text and and edit in cells

On Jun 11, 6:37 pm, "Vasant Nanavati" <vasantn AT aol DOT com wrote:
Put the following formula in C1:

=MID(A1,FIND("#",A1)+1,1)=MID(B1,FIND("#",B1)+1,1)

Adjust to suit.

Formulas cannot changecells,;ifthe formula shows FALSE you will have to
change thecellmanually or write a macro to accomplish this.

__________________________________________________ ________________________

"CyranoDeBergarac" wrote in message

ups.com...



Hi,


Ineedafunctionthatcomparetextintwocellsfor aspecifictext
andifexistsmakeeditthesecondcellas thefirstone.


For example myfunctionwilll:


1. Look for thetext"#" incellA1.
2.If"#"existsin A1 and there is a letter after it, like "#E", it
willcompareit to B1.
3.Ifthe letter after"#" is the same in A1 with B1, it should not do
anything.Ifthe letter after "#" is different in B1 comparing to, it
needs to flag thatcellby stating True or False.


Thanks in advance,
Mehmet- Hide quotedtext-


- Show quotedtext-


Thanks Vasant, that helps.

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
I cannot edit cell borders or text in certain cells. Ron West Excel Worksheet Functions 1 October 12th 06 08:38 PM
Text Compare Function JimK Excel Worksheet Functions 10 June 9th 06 04:02 PM
What function allows me to compare 20 repetting text. timbo Excel Worksheet Functions 3 July 24th 05 10:05 PM
What function allows me to compare 20 repetting text. timbo Excel Worksheet Functions 0 July 24th 05 08:13 PM
How do you compare text in cells Sam Excel Worksheet Functions 1 February 18th 05 05:16 PM


All times are GMT +1. The time now is 08:12 PM.

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"