EDATE to display "na"

theexceldunce

New Member
Joined
Apr 3, 2011
Messages
10
Hello could anyone tell me the correct formula to the below?

My current formula is =EDATE(J165,L165) which returns a #VALUE! error

J165 has the text "na" so I would like this also printed in the cell with the EDATE formula (n165)

Thanks in advance
 
Hello again,

Thanks for your speedy reply, hope this makes it a bit easier to understand what I am trying to acheive. :)

i1 Jan-10 (user input mmm-yy)
j1 Jan-10 (user input mmm-yy)
k1 12 (this number is generated by different formula)
l1 24 (this number is generated by different formula)
m1 Jan-11 (generted by formula) =IF(COUNT(I2,K2)=2,EDATE(I2,K2),"NA")
n1 Jan-12 (generated by formula) =IF(COUNT(J2,L2)=2,EDATE(J2,L2),"NA")

The numbers in K1 & L1 are added to the months in I1 & J1 so if I changed K1 to 13 the then M1 would change to Feb-11.

So if the month and year (in M1 & N1) has changed by one month or more above the current date then I would like cells A1:R1 to be highlighted red.

I am using 2007

Many thanks
Sorry, I'm not following you on this at all! :confused:

When you say "the current date", does that mean today's date?

Also, what are the cell values for:

I2,K2
J2,L2

Also:

i1 Jan-10 (user input mmm-yy)
j1 Jan-10 (user input mmm-yy)
Those dates are ambiguous. For all I know one date could be 1/10/2010 and the other could be 1/31/2010.

:confused:
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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