Find month within date range (text format)

gammyg

New Member
Joined
Jan 3, 2018
Messages
2
My downloaded report consists of the following columns with 200+ rows:

A = invoice date
B = invoice number
C = Payee
D = date range (in text format) example: 07/29 – 08/12/18
E = amount

The first part of my reporting needs to pull a month and year from the information in column D. My example above should show July 2018 as the result.

For the second part I need use the amount in E to calculate the total by month, giving a monthly projection.

Thanks for looking,
Virginia
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Welcome to the Board!

For your first part, for an entry in D1, this will return what you want, unless you have date ranges that span years:
Code:
=TEXT(DATEVALUE(LEFT(D1,5) & RIGHT(D1,3)),"mmmm yyyyy")
If you have entries that span years, that you post exactly what those entries look like?

For the second part, I think we may need more information on how you want this calculated.
 
Upvote 0
Hello,

in A1: 07/29 – 08/12/18

Code:
cells(1,2) = split(cells(1,1))(2)

regards
(tested with LO)
 
Upvote 0
Joe4,

Thanks for posting, this worked great to get the months. Now on to phase two :)

Virginia
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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