Excel - IF Function Problem - Expert Solution

Question description:
This user has given permission to use the problem statement for this blog.

I need a formula that has these 2 rules. If letter was rec'd between 1st and 15th = 1st of the month following letter rec'd date. If letter was rec'd between 16thst and end of the month= 1st of the 2nd month following letter rec'd date.
Solved by V. F. in 20 mins
This is the chat thread from the real Excelchat help session. It contains no private user information.
Excelchat Expert 27/06/2018 - 04:59
Hello, I understand that you need help with setting the date depending on when the received date is, right?
User 27/06/2018 - 04:59
correct
Excelchat Expert 27/06/2018 - 05:00
I see. I can help you with this. Before we proceed, this is a reminder that our policy is 1 question per session so for this session we'll be resolving this particular question. We also currently do not support VBA/Macro solutions.
Excelchat Expert 27/06/2018 - 05:00
Are you able to share your file so I can analyze it and offer the best possible solution?
User 27/06/2018 - 05:00
No I'm not able to share my file
Excelchat Expert 27/06/2018 - 05:01
How about a dummy file so I can understand your requirement better?
User 27/06/2018 - 05:02
I only have 2 columns.. 1- letter rec'd date
User 27/06/2018 - 05:03
2nd one would be the formula
User 27/06/2018 - 05:03
or date
Excelchat Expert 27/06/2018 - 05:03
So if received date is 1/5/2018 then the result you want is 2/1/2018? If the received date is 1/31/2018 then the received date is 3/1/2018?
User 27/06/2018 - 05:04
Yes
Excelchat Expert 27/06/2018 - 05:04
=if(day(A2)<=15,date(year(A2),month(A2)+1,1),date(year(A2),month(A2)+2,1))
Excelchat Expert 27/06/2018 - 05:04
Please use this formula.
Excelchat Expert 27/06/2018 - 05:04
This will check the value of A2.
User 27/06/2018 - 05:06
Let me try
User 27/06/2018 - 05:06
It gave me #VALUE!
Excelchat Expert 27/06/2018 - 05:07
This is the reason why I would prefer to have the file or a sample file since I don't know what your input in column A looks like.
Excelchat Expert 27/06/2018 - 05:07
The formula I gave you works on my file.
Excelchat Expert 27/06/2018 - 05:08
Here's my file where it works.
[Uploaded an Excel file]
Excelchat Expert 27/06/2018 - 05:08
The value error may be due to several reasons. One of which is that the value in your first column is not being recognized as a proper date by Excel.
User 27/06/2018 - 05:09
Oh I did it wrong
User 27/06/2018 - 05:09
It works now
User 27/06/2018 - 05:09
Thank you!
Excelchat Expert 27/06/2018 - 05:09
That's great!
Excelchat Expert 27/06/2018 - 05:09
Would there be anything else that I can help you with regards to the original question?
Excelchat Expert 27/06/2018 - 05:12
Alright, if you have no other questions regarding the original concern, I'd appreciate a 5-star rating and your feedback if you think I deserve it.
Excelchat Expert 27/06/2018 - 05:12
I'll be giving you high ratings as well so the other experts will know that you are a good client and should be taken care of.
Excelchat Expert 27/06/2018 - 05:12
Please do not forget to click the End Session button otherwise I'll be stuck here until the timer expires and be unable to help others. Thank you.
Excelchat Expert 27/06/2018 - 05:12
Thank you for contacting Got It Pro. Have an awesome day!

This is the output file from the real Excelchat help session:
This is an example of the expert help you can get. It contains no private user information.

Get instant expert help with Excel and Google Sheets

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Your privacy is guaranteed. Your session will not be used for blog unless you give us persmission.

Click here to get your free Excelchat help session

Subscribe to Excelchat.co
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
Macy's
The Allstate Corporation
United Parcel Service
Dell Inc