Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ExcelQuestion
 
Posts: n/a
Default Returning a colored value in If function

Hello all,

=CONCATENATE(IF(C91.15*D8,"SELL","
"),IF(AND((D8*1.15=C9),(D8*1.05<=C9)),"HOLD", "
"),IF(AND((D8*1.05C9),(D8*0.95<=C9)),"APPROAC HING BUY","
"),IF(C9<0.95*D8,"BUY"," "))

How can i return a bold red "Sell" for this function?
  #2   Report Post  
Vacation's Over
 
Posts: n/a
Default Returning a colored value in If function

formula cannot do that but conditional formatting will.

"ExcelQuestion" wrote:

Hello all,

=CONCATENATE(IF(C91.15*D8,"SELL","
"),IF(AND((D8*1.15=C9),(D8*1.05<=C9)),"HOLD", "
"),IF(AND((D8*1.05C9),(D8*0.95<=C9)),"APPROAC HING BUY","
"),IF(C9<0.95*D8,"BUY"," "))

How can i return a bold red "Sell" for this function?

  #3   Report Post  
ExcelQuestion
 
Posts: n/a
Default Returning a colored value in If function

Ok, can you help me with the conditional formatting? Where do i go, what do i
do?

"Vacation's Over" wrote:

formula cannot do that but conditional formatting will.

"ExcelQuestion" wrote:

Hello all,

=CONCATENATE(IF(C91.15*D8,"SELL","
"),IF(AND((D8*1.15=C9),(D8*1.05<=C9)),"HOLD", "
"),IF(AND((D8*1.05C9),(D8*0.95<=C9)),"APPROAC HING BUY","
"),IF(C9<0.95*D8,"BUY"," "))

How can i return a bold red "Sell" for this function?

  #4   Report Post  
Ray A
 
Posts: n/a
Default Returning a colored value in If function

FormatConditional FromatCell Value is Equals Sell Click the format
button and select color red
HTH

"ExcelQuestion" wrote:

Ok, can you help me with the conditional formatting? Where do i go, what do i
do?

"Vacation's Over" wrote:

formula cannot do that but conditional formatting will.

"ExcelQuestion" wrote:

Hello all,

=CONCATENATE(IF(C91.15*D8,"SELL","
"),IF(AND((D8*1.15=C9),(D8*1.05<=C9)),"HOLD", "
"),IF(AND((D8*1.05C9),(D8*0.95<=C9)),"APPROAC HING BUY","
"),IF(C9<0.95*D8,"BUY"," "))

How can i return a bold red "Sell" for this function?

  #5   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default Returning a colored value in If function

Hi,

I think that the CONCATENATE function in your formula is unnecessary for
doing what you want (unless you have some other reason for having it). It is
adding extraneous spaces (leading or trailing) to the results.
For example, it returns "SELL" as "SELL " (i.e., with 2 trailing spaces).
The following formula will do the job.

=IF(C91.15*D8,"SELL",IF(AND((D8*1.15=C9),(D8*1.0 5<=C9)),"HOLD",IF(AND((D8*1.05C9),(D8*0.95<=C9)), "APPROACHING BUY",IF(C9<0.95*D8,"BUY"," "))))

Anyway,

Click on the cell containing the formula (say, E9)
"Format" -- "Conditional Formatting" -- Click on the dropdown list under
"Condition 1" to "Formula Is" and enter one of the following formulas in the
bar:
=E9 = "SELL " (2 trailing spaces) [Change the 'E9' in the formula
appropriately]
=TRIM(E9)="SELL" (no space after SELL) [--- ,, ---]
Click "Format" button in the CF window, and select Font Style (bold) and
Color (Red).

Regards,
B. R. Ramachandran


"ExcelQuestion" wrote:

Hello all,

=CONCATENATE(IF(C91.15*D8,"SELL","
"),IF(AND((D8*1.15=C9),(D8*1.05<=C9)),"HOLD", "
"),IF(AND((D8*1.05C9),(D8*0.95<=C9)),"APPROAC HING BUY","
"),IF(C9<0.95*D8,"BUY"," "))

How can i return a bold red "Sell" for this function?

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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


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