Using Edate, if Date range is blank show blank

Garry1965

New Member
Joined
Nov 25, 2015
Messages
6
Hi All

I'm very new to this so I will apologise now if this seems longwinded.
I have been asked to create an "Equipment Register" at work.
The equipment is meant to be inspected every 3 months. Not all equipment is inspected on the same date so the inspection dates vary considerably.

I want to include a 'Next Inspection Due' date in one of the columns.

Assume I have an item in row 1. the first few columns show the items details. Then I have multiple columns with inspection dates
In cell H1 I want the next inspection due date. (3 months after the last one)
In cells Q1:AZ1 I have the actual date of the inspections.

In H1 I have the formula =EDATE(MAX(H1:AZ1),3) This works.

However, I want to build this so that additional items can be entered later by the storeman.

The problem is when I copy the formula into rows that have no data yet. Because all the date columns are blank, cell H1 defaults to show 31/3/00..
How do I get it to show blank when the inspection columns are blank yet still function properly after a new date is entered.
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi, you could give this a try:

=IF(COUNT(H1:AZ1),EDATE(MAX(H1:AZ1),3),"")
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,946
Members
449,480
Latest member
yesitisasport

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