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
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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

Try something like...

=IF(N(J165),EDATE(J165,L165),"NA")
 
Upvote 0
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
One way...

=IF(COUNT(J165,L165)=2,EDATE(J165,L165),"NA")
 
Upvote 0
Hello again,
Is it possible to adapt this formula to change the entire row red if the date is 1 month over the current date?

=IF(COUNT(J2,L2)=2,EDATE(J2,L2),"NA")
 
Upvote 0
Hello again,
Is it possible to adapt this formula to change the entire row red if the date is 1 month over the current date?

=IF(COUNT(J2,L2)=2,EDATE(J2,L2),"NA")

if the date
Which date?

The result of: EDATE(J2,L2) ?

Or, the date in J2 ?

1 month over the current date
A month is not a standard unit of measure. A month can contain anywhere from 28 to 31 days.

If the date in question was 1/31/2011, what date would be "1 month over" ?

What range of cells do you want to format? "The entire row" is kind of ambiguous.

What version of Excel are you using?
 
Upvote 0
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
 
Upvote 0
oops just amended error. couldn't find an edit button

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

Forum statistics

Threads
1,224,521
Messages
6,179,287
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