Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can put a text string in a cell

How can put a text string in a cell (message) based on tha calculation in
another cell?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default How can put a text string in a cell

On Thu, 9 Nov 2006 16:38:02 -0800, Dennis C BroadWare <Dennis C
wrote:

How can put a text string in a cell (message) based on tha calculation in
another cell?


In message cell, enter a formula of the type:

=IF(another_cell = good_result,"another_cell showed good result", "")




--ron
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default How can put a text string in a cell

Ron,
Are you trying to do this with VBA? If so,
For example, cell C4 will show result, if C3=C2

Range("C4").Select
ActiveCell.FormulaR1C1 = "=IF(R[-1]C=R[-2]C,""good"",""bad"")"
The RC lets you select the offset of the rows and columns, this says if
cell one row above = cell two rows above, then return "good", else
"bad"

Let me know if this is what you're looking for

Andrew J Armstrong

To do this
Ron Rosenfeld wrote:
On Thu, 9 Nov 2006 16:38:02 -0800, Dennis C BroadWare <Dennis C
wrote:

How can put a text string in a cell (message) based on tha calculation in
another cell?


In message cell, enter a formula of the type:

=IF(another_cell = good_result,"another_cell showed good result", "")




--ron


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
word match in string text in cell, color format cell jpmahony Excel Discussion (Misc queries) 1 October 31st 07 03:56 PM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
Compare text string of a cell in Column A VS another cell in Colum Tan New Users to Excel 2 August 1st 07 09:45 AM
Sumif text is contained winthin a longer text string in a cell Johnny M[_2_] Excel Worksheet Functions 3 March 21st 07 02:50 PM
Display contents of cell in another cell as part of text string? [email protected] New Users to Excel 3 July 8th 06 07:44 PM


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