iferror

Forum home » Delegate support and help forum » Microsoft Excel Training and help » IFERROR

IFERROR

resolvedResolved · Urgent Priority · Version 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:

Move data worksheet to worksheet

To move data from one worksheet to another, highlight the data.

Select and hold down the ALT key and position the mouse on the border of the selection until the mouse pointer displays four-headed arrows.

Drag the selection down to the destination worksheet tab.

When the arrow touches the tab, Excel switches to the desired worksheet. Now drag the selection to the correct position. Let go of the mouse and then the ALT key.

To copy data from one worksheet to another, select and hold down the CTRL+ALT keystroke combination and perform the steps above.

View all Excel hints and tips


Server loaded in 0.08 secs.