Date range

tmwin

New Member
Joined
Apr 30, 2014
Messages
10
I have a date range that always covers a span of 3 different months. The net number of days and dates will vary. What formulas can I use to determine the month and year of the middle month?

Example:

Date range = 3/10/14-5/20/14
Required output = 042014

Thanks for the help!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
The date range is two cells. The start date is in one and end date is in another.
 
Upvote 0
I have a date range that always covers a span of 3 different months. The net number of days and dates will vary. What formulas can I use to determine the month and year of the middle month?

Example:

Date range = 3/10/14-5/20/14
Required output = 042014

Thanks for the help!

Does this work for you?

Excel Workbook
ABC
110-Mar-201420-May-2014042014
Sheet1
 
Upvote 0
I am having trouble running a vlookup off of the output to a MONTH()&YEAR() formula. Is there a way to adjust this formula or use a different one to lookup off the MMYYYY text output?
 
Upvote 0
Hi,

You could try changing your MONTH()&YEAR() formula to:
=TEXT(A1,"MMYYYY")

Or you could try changing the formula suggested in this thread to:
=TEXT(EOMONTH(A1,1),"MYYYY")

If neither of these work - it would probably help if you could post the MONTH()&YEAR() formula here.
 
Upvote 0
Hello,

I am continuing to run into problems when I vlookup off of the text formula.

Below is a copy of the MONTH()&YEAR() formula.

=month(b2)&year(b2)

b2=1/1/2012

Thanks again for the help!
 
Upvote 0
I am continuing to run into problems when I vlookup off of the text formula.

Hi, can you post the VLOOKUP() formula and a small screen shot of the lookup value and data you are looking for a match in, also you could expand on the problems you are experiencing (i.e. is the VLOOKUP() formula returning an error or a wrong result)?

You can use one of the following tools to post your example data directly into a reply:
Download
how to create table like Aladin
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top