Date Breakdown into Columns

Justinian

Well-known Member
Joined
Aug 9, 2009
Messages
1,557
Office Version
  1. 365
Platform
  1. Windows
I run a report every morning for moving dates. For example, today's report is 6/2-6/5. I want Excel to recognize each unique date and place those dates starting in E11. So for today, I want Excel to put "2nd" in E11, "3rd" in E12, "4th" in E13, and "15th" in E14. Tomorrow's report will be 6/3-6/9 so there will not always be just four (4) dates.

How do I get Excel to do this?
 
Doesn't need an AppData folder, it can go in any folder.

I don't know how far back you will need to go to fix this now, moving the file after installing it was the issue. Normal practice would be to extract the zip file directly to its intended location rather than dumping it on the desktop and moving it later.

I suspect that you might need to go back into add-ins and remove it from the list, then browse for it again, add it, then repeat the steps XL2BB Disappears when Excel is Reopened
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I unzipped to a folder, right-clicked, and selected "unblock" under general. When I open my Excel file, nothing appears. How is this supposed to work?
 
Upvote 0
You add it in the add-in menu as per the instructions, then it will be locked into the ribbon until you do something to remove it.

You've already done that once but because you moved the file afterwards, excel has lost sight of it so you need to repeat the process.
 
Upvote 0
My goodness, I finally got it working. Thank you for your patience.

Here is the code. I have to (2) options for counting dates (6/3, 6/4, 6/5) versus 3rd, 4th, 5th, etc.

Move-In Report.xlsx
ACDEFG
11Building/UnitScheduled Move-In DateOption 1
12156406/03/206/3-13
13210506/03/206/4-6
143310B06/03/206/5-4
153400D06/03/206/6-7
163403M06/03/206/7-1
173409H06/03/206/8-1
183411J06/03/206/9-6
193609E06/03/20 
204111C06/03/20Option 2
214702D06/03/203rd-0
224705C06/03/204th-0
234904M06/03/205th-0
245009A06/03/206th-0
25155606/04/207th-0
26324006/04/208th-0
273505M06/04/209th-0
283612K06/04/20
293909H06/04/20
304308E06/04/20
3191906/05/20
32141206/05/20
333909D06/05/20
344409J06/05/20
3596106/06/20
36223806/06/20
37323106/06/20
383704C06/06/20
393804A06/06/20
404506C06/06/20
414604G06/06/20
423807C06/07/20
43195306/08/20
4495006/09/20
45121706/09/20
Sheet1
Cell Formulas
RangeFormula
G12:G18,G21:G27G12=COUNTIF(C:C,E12)
F12:F19,F21:F27F12=IF(E12=FALSE,"","-")
 
Upvote 0
Ok, now that I see it, how does the date range that you asked for in post 1 related to the example above?

How do we know if it should cover the date range 6/2-6/5 or 6/3-6/9?

Do you want to use all dates in column C, or is the range specified somewhere?
 
Upvote 0
What I wanted to do is have Excel count the dates so I do not have to do it by hand. Every morning when I run this report, there will be varied number of rows with units and dates. If I run the report on Monday, the dates will be for that Monday through Thursday; if I run the report on Tuesday, the dates will be for that Tuesday through Friday; if i run the report on Wednesday, Thursday, or Friday, the dates will be for that day through the following Tuesday.

So, today when I ran the report, it was for 6/3-6/9/20 and I pasted the codes/dates as you see above. What I want is to have Excel look at the dates in column C and list them in column E, with a count of those dates in column G.
 
Upvote 0
Personally, I would use a pivot table to count the dates.

It could be done with formulas, but in my opinion that would be making a simple task more complicated than needed.
 
Upvote 0
Justinian2.xlsx
ABCDEFG
11Building/UnitScheduled Move-In DateResult
1215646/3/20206/3-13
1321056/3/20206/4-6
143310B6/3/20206/5-4
153400D6/3/20206/6-7
163403M6/3/20206/7-1
173409H6/3/20206/8-1
183411J6/3/20206/9-2
193609E6/3/2020   
204111C6/3/2020   
214702D6/3/2020   
224705C6/3/2020 
234904M6/3/2020 
245009A6/3/2020 
2515566/4/2020 
2632406/4/2020
273505M6/4/2020
283612K6/4/2020
293909H6/4/2020
304308E6/4/2020
319196/5/2020
3214126/5/2020
333909D6/5/2020
344409J6/5/2020
359616/6/2020
3622386/6/2020
3732316/6/2020
383704C6/6/2020
393804A6/6/2020
404506C6/6/2020
414604G6/6/2020
423807C6/7/2020
4319536/8/2020
449506/9/2020
4512176/9/2020
Sheet2 (2)
Cell Formulas
RangeFormula
F12:F21F12=IF(E12="","","-")
G12:G21G12=IF(E12="","",COUNTIF(C:C,E12))
E12:E25E12=IFERROR(IF(ROWS($E$11:E11)<2,MIN($C$12:$C$99),AGGREGATE(15,6,$C$12:$C$99/($C$12:$C$99>E11),1)),"")
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,215,720
Messages
6,126,436
Members
449,314
Latest member
MrSabo83

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