Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

iferror

ResolvedVersion 2010

Karen has attended:
Excel Intermediate course
Excel Advanced course
Presentation Skills course

IFERROR

I am adding 10 years to the dates in column P. Where there is no date, a random date of 31/12/1909 comes up. Is there a way please to change the format so that if there is no date in column P, the date in column Q stays blank too?

I have the following formula in column Q

=DATE(YEAR(P2)+Sheet1!$A$1,MONTH(Report1!P2),DAY(Report1!P2))

I have tried to put in

=IF(P1=""(DATE(YEAR(P2)+Sheet1!$A$1,MONTH(Report1!P2),DAY(Report1!P2)),""

...but this doesn't work?

Thanks,

Karen

RE: IFERROR

Hello Karen,

Thank you for your question.

I think a few small tweaks to the formula you already have is all that's required (fingers crossed).

Try this
=IF(P1="","",DATE(YEAR(P1)+10,MONTH(P1),DAY(P1)))

If this doesn't correct the issue, please get back in contact and we'll try again.


Kind regards

Cindy
Microsoft Office Trainer

RE: IFERROR

Perfect! Thank you!!

Excel tip:

Checking formulas with multiple operators

When dealing with formulas containing more than one operator (+, -, /, *), Excel follow standard BEDMAS order of operation rules. These rules specify the order that calculations will be performed in, regardless of how the formula reads left to right:

B = brackets
E = exponents
D = division
M = multiplication
A = addition
S = subtraction

It should be noted that multiplication and division are considered equal; as are addition and subtraction.

If you would like to check the order in which Excel is performing calculations in a formula, simply click on the cell containing the formula. Then go to Tools - Formula Auditing and select Evaluate Formula.

In the Evaluate Formula dialogue box that appears on your screen, click the Evaluate button to see how Excel calculates the formula result.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.