Notification showing when date entered

soumendas001

New Member
Joined
Apr 16, 2020
Messages
5
Office Version
  1. 2010
Platform
  1. Windows
In a excel sheet 3 columns (Start date, end date and duration). When I entered start date a notification showing "OPEN" in duration cell. And after entered end date it is change to total duration of the day.

For example: I enter start date 15-april-2020 in the duration cell automatically showing "OPEN" with some color highlighted. After that when I enter end date 17-april-2020 it will change to 2 days.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Welcome to the Board!

So your formula would look smething like this (place in column C):
=IF(B2>0,B2-A2,"Open")
and be sure to format column C as "General" (and not a date format).

If you want to have a check for column A too, you can do:
=IF(B2>0,B2-A2,IF(A2>0,"Open",""))
 
Upvote 0
First of all thank you very much for your prompt reply. Second formula is working excellent. It is matched exactly what I want. But one thing not fulfill. I want when "OPEN" showing in column "c" automatically format Yellow fill color. How to do that?
 
Upvote 0
Use Conditional Formatting.
- Highlight column C,
- Go to Conditional Formatting and select the "Format ony cells that contain: option.
- Enter the following rule: Cell Value equal to Open
- Select the Format option
- Go to the Fill tab and select the yellow color and click OK twice.

This should do what you want.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,577
Members
449,039
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top