#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default help with formula

If B16 (which is a date) is between January 1st. and June 30th. then 3
If B16 (which is a date) is between July 1st. and September 30th then 2
If B16 (which is a date) is between October 1st. and December 31st. then 0
If B16 5 years then 4
Thanks in advance for any help!!



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default help with formula

"Richard" ha scritto nel messaggio
...
If B16 (which is a date) is between January 1st. and June 30th. then 3
If B16 (which is a date) is between July 1st. and September 30th then 2
If B16 (which is a date) is between October 1st. and December 31st. then 0
If B16 5 years then 4
Thanks in advance for any help!!


I don't understand the last if. What do you mean with

If B16 5 years then 4 ?




--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default help with formula

=if(and(b16date(2006,01,01),b16<2006,06,30),3,if( and(b16date(july
1st),b16<(September 30th),2,etc.

"Franz Verga" wrote:

"Richard" ha scritto nel messaggio
...
If B16 (which is a date) is between January 1st. and June 30th. then 3
If B16 (which is a date) is between July 1st. and September 30th then 2
If B16 (which is a date) is between October 1st. and December 31st. then 0
If B16 5 years then 4
Thanks in advance for any help!!


I don't understand the last if. What do you mean with

If B16 5 years then 4 ?




--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default help with formula


B16 is formatted as a date and never changes, Example 7/31/06, If TODAYS
DATE is 1/1/2011 or greater then 4

"Franz Verga" wrote:

"Richard" ha scritto nel messaggio
...
If B16 (which is a date) is between January 1st. and June 30th. then 3
If B16 (which is a date) is between July 1st. and September 30th then 2
If B16 (which is a date) is between October 1st. and December 31st. then 0
If B16 5 years then 4
Thanks in advance for any help!!


I don't understand the last if. What do you mean with

If B16 5 years then 4 ?




--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default help with formula

Richard wrote:
B16 is formatted as a date and never changes, Example 7/31/06, If
TODAYS DATE is 1/1/2011 or greater then 4


Hi Richard,
try this:

=IF(YEAR(TODAY())-YEAR(B16)5,4,IF(AND(B16=DATE(YEAR(B16),1,1),B16< =DATE(YEAR(B16),6,30)),3,IF(AND(B16=DATE(YEAR(B16 ),7,1),B16<=DATE(YEAR(B16),9,30)),2,IF(AND(B16=DA TE(YEAR(B16),10,1),B16<=DATE(YEAR(B16),12,31)),0," "))))


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 213
Default help with formula

If B16 (which is a date) is between January 1st. and June 30th. then 3
If B16 (which is a date) is between July 1st. and September 30th then
2 If B16 (which is a date) is between October 1st. and December 31st.
then 0 If B16 5 years then 4


Maybe this gets what you want:

=IF(B16DATE(YEAR(TODAY())+5,MONTH(TODAY()),DAY(TO DAY())),4,
2*(MONTH(B16)<10)+(MONTH(B16)<7))
Reply
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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 07:49 AM.

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

About Us

"It's about Microsoft Excel"