Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
coal_miner
 
Posts: n/a
Default if month is less than halfway over subtract 1

I need an if formula that takes a date in cell K3 and determines if the month
in that cell is halfway over. If it is not halfway over, then it subtracts
the number 1 from cell A25. If the month is halfway over, then do nothing.
Is this possible, and if so, please let me know. Much obliged.
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=if(day(k3)<16,a25-1,"")

"coal_miner" wrote in message
...
I need an if formula that takes a date in cell K3 and determines if the
month
in that cell is halfway over. If it is not halfway over, then it
subtracts
the number 1 from cell A25. If the month is halfway over, then do
nothing.
Is this possible, and if so, please let me know. Much obliged.



  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Here is something to work with
=A25-(DAY(J3)<=INT(DAY(DATE(YEAR(J3),MONTH(J3)+1,0))+1)/2)
DAY find the day-of-month from the date
The Date part computes the last day of the month by finding the zeroth day
of the following month
Your may want to experiment with the 1 and the INT depending on your meaning
of "month is half over"
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"coal_miner" wrote in message
...
I need an if formula that takes a date in cell K3 and determines if the
month
in that cell is halfway over. If it is not halfway over, then it
subtracts
the number 1 from cell A25. If the month is halfway over, then do
nothing.
Is this possible, and if so, please let me know. Much obliged.



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(DAY(K3)DATE(YEAR(K3),MONTH(K3)+1,0)/2,A25-1,0)

--
HTH

Bob Phillips

"coal_miner" wrote in message
...
I need an if formula that takes a date in cell K3 and determines if the

month
in that cell is halfway over. If it is not halfway over, then it

subtracts
the number 1 from cell A25. If the month is halfway over, then do

nothing.
Is this possible, and if so, please let me know. Much obliged.



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
Add one month to the previuos month heater Excel Discussion (Misc queries) 5 February 10th 05 12:33 AM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
Accounting Month vs. Calendar Month JN Excel Worksheet Functions 4 January 31st 05 08:09 PM
UserForm to select current month or earlier Steve Excel Discussion (Misc queries) 2 January 21st 05 09:41 PM
How to extract month number from month name PM Excel Discussion (Misc queries) 2 January 19th 05 03:07 PM


All times are GMT +1. The time now is 06:26 PM.

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"