Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 354
Default Formula, automation turn red if value exceed a number


How to write a worksheet function,formula, vlookup so that if a value in a
cell is exceeded, the excel
window will flash or turn to red?

In a financial excel spread sheet, a manager has to keep track on the total
money
every day. If the money is exceed a certain value he has to take actions.

How to make this automation by flashing or turn red or even better send
email?

Thanks
Daniel

  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Formula, automation turn red if value exceed a number

Hi Daniel,

To make the cell turn red or flash when a certain value is exceeded, you can use conditional formatting in Excel. Here are the steps:
  1. Select the cell or range of cells that you want to apply the formatting to.
  2. Go to the Home tab in the ribbon and click on Conditional Formatting.
  3. Choose "Highlight Cell Rules" and then "Greater Than".
  4. Enter the value that you want to trigger the formatting and choose the formatting style you want (e.g. red fill color).
  5. Click OK to apply the formatting.

Now, whenever the value in the cell exceeds the threshold you set, it will turn red or flash.

To automate this process further, you can use a formula in another cell to check if the value exceeds the threshold and then trigger an action. For example, you could use the
Code:
IF
function to check if the value in cell A1 exceeds 1000 and then display a message or send an email. Here's an example formula:

Code:
=IF(A11000,"Take action","")
This formula will display the text "Take action" if the value in cell A1 exceeds 1000, otherwise it will display nothing.

To send an email automatically, you can use VBA (Visual Basic for Applications) code in Excel. Here's an example code:

Formula:
Sub SendEmail()
Dim OutApp As Object
Dim OutMail 
As Object
Set OutApp 
CreateObject("Outlook.Application")
Set OutMail OutApp.CreateItem(0)
With OutMail
    
.To     .Subject "Action required"
    
.Body "The value in cell A1 has exceeded the threshold."
    
.Send
End With
Set OutMail 
Nothing
Set OutApp 
Nothing
End Sub 
This code will send an email to the specified recipient with the subject "Action required" and the body text "The value in cell A1 has exceeded the threshold." You can call this code from the formula using the
Code:
Application.Run
method.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula, automation turn red if value exceed a number

Flashing text is not really recommended in a worksheet, but if you
must then Chip Pearson shows how to do it he

http://www.cpearson.com/excel/BlinkingText.aspx

You could use Conditional Formatting to change the colour of a cell if
a certain condition is met (more sedate).

Hope this helps.

Pete

On Jul 11, 6:21*pm, Daniel wrote:
How to write a *worksheet function,formula, vlookup *so that if a value in a
cell is exceeded, the excel
window will flash or turn to red?

In a financial excel spread sheet, a manager has to keep track on the total
money
every day. If the money is exceed a certain value he has to take actions.

How to make this *automation by flashing or turn red or even better send
email?

Thanks
Daniel


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 354
Default Formula, automation turn red if value exceed a number

Thanks Pete
But how can I write a condition to change cell color?
Daniel

"Pete_UK" wrote:

Flashing text is not really recommended in a worksheet, but if you
must then Chip Pearson shows how to do it he

http://www.cpearson.com/excel/BlinkingText.aspx

You could use Conditional Formatting to change the colour of a cell if
a certain condition is met (more sedate).

Hope this helps.

Pete

On Jul 11, 6:21 pm, Daniel wrote:
How to write a worksheet function,formula, vlookup so that if a value in a
cell is exceeded, the excel
window will flash or turn to red?

In a financial excel spread sheet, a manager has to keep track on the total
money
every day. If the money is exceed a certain value he has to take actions.

How to make this automation by flashing or turn red or even better send
email?

Thanks
Daniel



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula, automation turn red if value exceed a number

Well, let's say you have some numbers in A2:A10, and you want to
change the background colour of any cell if it exceeds 25. Highlight
those cells, with A2 as the active cell and click on Format |
Conditional Formatting. In the first box of the pop-up choose Formula
Is rather than Cell Value Is, and then in the Formula box enter:

=A225

Click on the Format button, then on the Patterns tab (for background
colour) and choose a colour, eg red. Click OK twice to exit the CF
dialogue box, and then any cells which exceed 25 should have a red
background.

You can affect the foreground colour and the font etc with conditional
formatting, and you can have up to 3 different settings in each cell
(more with Excel 2007). For example, you might want a different colour
if the cell exceeds 20 (as a warning), and a different colour again if
it is above 12. Play about with it to learn how to use it, and you
will find plenty of posts on the newsgroups relating to conditional
formatting.

Hope this helps.

Pete


On Jul 11, 7:13*pm, Daniel wrote:
Thanks Pete
*But how can I write a condition to change cell color?
Daniel



"Pete_UK" wrote:
Flashing text is not really recommended in a worksheet, but if you
must then Chip Pearson shows how to do it he


http://www.cpearson.com/excel/BlinkingText.aspx


You could use Conditional Formatting to change the colour of a cell if
a certain condition is met (more sedate).


Hope this helps.


Pete


On Jul 11, 6:21 pm, Daniel wrote:
How to write a *worksheet function,formula, vlookup *so that if a value in a
cell is exceeded, the excel
window will flash or turn to red?


In a financial excel spread sheet, a manager has to keep track on the total
money
every day. If the money is exceed a certain value he has to take actions.


How to make this *automation by flashing or turn red or even better send
email?


Thanks
Daniel- Hide quoted text -


- Show quoted text -


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
Can you exceed 15 number characters in an excel cell? Bailey Excel Discussion (Misc queries) 1 January 28th 08 12:09 PM
Sum of previous offset number of cells not to exceed certain value SimonK Excel Worksheet Functions 0 February 16th 06 02:41 PM
The number of hours in a day cannot exceed 24... TheBeowulf Excel Worksheet Functions 2 September 20th 05 09:09 PM
Change colour of Text if number in cell exceed limit Lewis Koh Excel Worksheet Functions 2 August 2nd 05 02:16 AM
Visio Text (Number) Automation dk Excel Discussion (Misc queries) 0 June 23rd 05 07:02 PM


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