Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ben
 
Posts: n/a
Default Adding colour in a formula

Thanks Bob
the formula works great,is it possible for when the answer is displayed the
text colour can change for example

Late - would be red
Early - would be blue
On-time - would be green

Thanks
Ben


"Bob Phillips" wrote:

=IF(A1+B1=C1+D1,"On Time",IF(A1+B1C1+D1,"Early by "&TEXT(A1+B1-(C1+D1),"d
""days ""hh:mm"),"Late by "&TEXT(C1+D1-(A1+B1),"d ""days ""hh:mm")))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Ben" wrote in message
...
Hi,

Is it possible for a formula to calculate the diffence between seperate
cells.For example can A&B & D&E be read as one.The answer i'm looking for

in
F is LATE BY 1day 2hr. If they match to read ON-TIME, and if early to

read
EARLY BY and enter time

Expected Actual
Answer
A B D E F
05/03/2006 12:00 06/03/2006 14:00





  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Adding colour in a formula

This could be done using Conditional Formatting.

Select the cell your formula is in (I'll assume F1 for this example).
Choose "Conditional Formatting" from the Format Menu
Change "Cell Value Is" to "Formula Is"
Enter the formula: =LEFT(F1,1)="L"
Choose your format (red font color)
Click "ADD" to set a second condition
Change "Cell Value Is" to "Formula Is"
Enter the formula: =LEFT(F1,1)="E"
Choose your format (blue font color)
Click "ADD" to set a third condition
Change "Cell Value Is" to "Formula Is"
Enter the formula: =LEFT(F1,1)="O"
Choose your format (green font color)
Click OK

That should do it!
HTH,
Elkar


"Ben" wrote:

Thanks Bob
the formula works great,is it possible for when the answer is displayed the
text colour can change for example

Late - would be red
Early - would be blue
On-time - would be green

Thanks
Ben


"Bob Phillips" wrote:

=IF(A1+B1=C1+D1,"On Time",IF(A1+B1C1+D1,"Early by "&TEXT(A1+B1-(C1+D1),"d
""days ""hh:mm"),"Late by "&TEXT(C1+D1-(A1+B1),"d ""days ""hh:mm")))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Ben" wrote in message
...
Hi,

Is it possible for a formula to calculate the diffence between seperate
cells.For example can A&B & D&E be read as one.The answer i'm looking for

in
F is LATE BY 1day 2hr. If they match to read ON-TIME, and if early to

read
EARLY BY and enter time

Expected Actual
Answer
A B D E F
05/03/2006 12:00 06/03/2006 14:00





  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Adding colour in a formula

Ben, I responded in the original thread.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Ben" wrote in message
...
Thanks Bob
the formula works great,is it possible for when the answer is displayed

the
text colour can change for example

Late - would be red
Early - would be blue
On-time - would be green

Thanks
Ben


"Bob Phillips" wrote:

=IF(A1+B1=C1+D1,"On Time",IF(A1+B1C1+D1,"Early by

"&TEXT(A1+B1-(C1+D1),"d
""days ""hh:mm"),"Late by "&TEXT(C1+D1-(A1+B1),"d ""days ""hh:mm")))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Ben" wrote in message
...
Hi,

Is it possible for a formula to calculate the diffence between

seperate
cells.For example can A&B & D&E be read as one.The answer i'm looking

for
in
F is LATE BY 1day 2hr. If they match to read ON-TIME, and if early

to
read
EARLY BY and enter time

Expected Actual
Answer
A B D E F
05/03/2006 12:00 06/03/2006 14:00







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
Text Colour Within Formula JB2010 Excel Discussion (Misc queries) 4 February 6th 06 04:22 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Change Font Colour Automatic When Formula Match stevembe Excel Discussion (Misc queries) 3 October 3rd 05 11:45 AM
Formula to change rows a different colour? John Excel Worksheet Functions 2 August 10th 05 11:56 PM


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