Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 68
Default writing text to different cell after comparing

Hi All,

I have one cell (A1) that contains "post, rf on, e109, e10". I would like to
extract information from this cell. Meaning, when I click on A2, I want A2 to
search A1 cell for the word/text "post", and if the word "post" is in A1,
then write "post" in A2 otherwise leave blank (or turn it into a red color).

Is this possible? Thanks in advance.

thank you,
tracktraining


--
Learning
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default writing text to different cell after comparing

How about a double click. Right click sheet tabview codecopy/paste this

Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
If Target.Address < Range("a2").Address Then Exit Sub
If InStr(Range("a1"), "post") Then Target = "post"
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"tracktraining" wrote in message
...
Hi All,

I have one cell (A1) that contains "post, rf on, e109, e10". I would like
to
extract information from this cell. Meaning, when I click on A2, I want A2
to
search A1 cell for the word/text "post", and if the word "post" is in A1,
then write "post" in A2 otherwise leave blank (or turn it into a red
color).

Is this possible? Thanks in advance.

thank you,
tracktraining


--
Learning


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default writing text to different cell after comparing

One way
In A2: =IF(COUNTIF(A1,"*"&"post"&"*"),"post","")
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"tracktraining" wrote:
I have one cell (A1) that contains "post, rf on, e109, e10". I would like to
extract information from this cell. Meaning, when I click on A2, I want A2 to
search A1 cell for the word/text "post", and if the word "post" is in A1,
then write "post" in A2 otherwise leave blank (or turn it into a red color).


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 create a line break writing text within a cell? Shel Excel Discussion (Misc queries) 1 December 11th 08 12:19 AM
using wordwrap in excel for text writing ksu1955 Excel Worksheet Functions 1 November 10th 08 12:48 AM
Comparing columns of text: cell value into array Myo_77 Excel Discussion (Misc queries) 0 December 5th 07 11:56 AM
comparing text against a text table for yes no result Nigel Toates Excel Discussion (Misc queries) 3 November 30th 07 12:30 AM
Excel 2007 Problems; in writing macro and convert text to colums bezl Excel Discussion (Misc queries) 2 December 22nd 06 11:20 AM


All times are GMT +1. The time now is 04:42 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"