if month is less than halfway over subtract 1

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

IF function says too many nested 1
If function across sheets prints value of cell 4
Problems 6
HELP PLEASE 1
Re-post Formula 2
Help with Date calculations 4
Vlookup, sumproduct, if, sumif... erggg! 1
formula help 2

Back
Top