plz help

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

Guest

i have a column containing different dates of a year. i want if the specified
date is greater than 7th of the month it should return me (in another column)
the 22nd day of next month,otherwise it should show me 7th day of next month.
 
What do you mean by "the month"?. Is it current month or value from th
column? You can enter formula to column where you want the result to b
written. Below is an example of the formula.

This assuming your date column is in A. Change the column to sui
yours. Don't forget to set your result column to date format (othe
wise it'll only shows some numbers).

=IF(DAY(A1)>7,DATE(YEAR(A1),MONTH(A1)+1,DAY(22)),DATE(YEAR(A1),MONTH(A1)+1,DAY(7)))

Best regards
 

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

Back
Top