Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Greeneyez2
 
Posts: n/a
Default Need a formula to flag a cell

I have a vehicle maintenance worksheet with a row for each vehicle. In one
cell I have the mileage, in another I have a cell with a text box that has
the mileage of last oil change. Is there a formula to flag a cell if the
current mileage is 3000 more than the number in the text box?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Kevin B
 
Posts: n/a
Default Need a formula to flag a cell

You can do that with Conditional formatting, available on the FORMAT menu.
--
Kevin Backmann


"Greeneyez2" wrote:

I have a vehicle maintenance worksheet with a row for each vehicle. In one
cell I have the mileage, in another I have a cell with a text box that has
the mileage of last oil change. Is there a formula to flag a cell if the
current mileage is 3000 more than the number in the text box?

  #3   Report Post  
Posted to microsoft.public.excel.misc
VBA Noob
 
Posts: n/a
Default Need a formula to flag a cell


Try this

=IF(C4-B43000,"<<< Warning - Veh has exceeded Oil Change by "
&C4-B4-3000& " miles. Please arrange service !!","")


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=553821

  #4   Report Post  
Posted to microsoft.public.excel.misc
Greeneyez2
 
Posts: n/a
Default Need a formula to flag a cell

I'm very new at this... how would I insert it? In Visual Basic?

"VBA Noob" wrote:


Try this

=IF(C4-B43000,"<<< Warning - Veh has exceeded Oil Change by "
&C4-B4-3000& " miles. Please arrange service !!","")


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=553821


  #5   Report Post  
Posted to microsoft.public.excel.misc
VBA Noob
 
Posts: n/a
Default Need a formula to flag a cell


I assumed you meant cell ref not a text box.

I also assumed cell C4 had current mileage and B4 has mileage of last
oil change. In cell D4 copy the foumla in.

Change cell reference as required.


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=553821



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
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM


All times are GMT +1. The time now is 04:05 PM.

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"