LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If Array EDATE formula help

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"SCrowley" wrote in message
...
THANK YOU VERY MUCH!!! I love this forum!
--
Thank you,

scrowley(AT)littleonline.com


"T. Valko" wrote:

To shed some light on your actual problem:

=IF(B2="1 yr",EDATE(A2,12),IF(B2="2 yr",EDATE(A2,24)))
returns FALSE if "2 yr" or higher is selected.


That means what you *see* in B2 does not equal "2 yr".

There may be unseen characters like leading/trailing spaces:
<space2 yr
2 yr<space
<space2 yr<space

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=EDATE(A2,LEFT(B2)*12)

Assuming you don't project beyond 9 yrs.

--
Biff
Microsoft Excel MVP


"SCrowley" wrote in message
...
Hi,

I've looked in this forum and the help feature in Excel and have only
partially succeeded.

I'm trying to return an Warranty Expiry Date based on date of receipt
of
product.

Cell A2 has Date 9/06/08
Cell B2 has data validation list - "1 yr", "2 yr", "3 yr", etc.

Here are the two formulas I've played with:
=IF(B2="1 yr",EDATE(A2,12),IF(B2="2 yr",EDATE(A2,24)))
=IF(B2={"1 yr","2 yr","3 yr","4 yr"},EDATE(A2,{12,24,36,48}))

they work great if I have "1 yr" selected, it calculates 12 additional
months and returns 9/06/09, but returns FALSE if "2 yr" or higher is
selected.

I know I've missed it by just a comma or something. Any suggestions
are
welcome.





--
Thank you,

scrowley(AT)littleonline.com







 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Function & EDATE Harimau Excel Worksheet Functions 3 April 14th 08 12:14 PM
EDATE does not work Wiley Excel Discussion (Misc queries) 5 August 4th 06 07:08 PM
Edate Formula ROSE2102 Excel Discussion (Misc queries) 2 January 20th 06 06:47 PM
EDATE Problem pknivens Excel Discussion (Misc queries) 4 December 9th 05 10:56 AM
EDATE Droodhall Excel Worksheet Functions 2 August 31st 05 05:29 PM


All times are GMT +1. The time now is 10:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"