Dates in Table

claven123

Board Regular
Joined
Sep 2, 2010
Messages
83
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I have a table set up like a check register. I have a date column names Date with full date ie 12/15/2023. I have a slicer set up for date, but want to limit it to only the month, not each individual date in the register. So, I set up another column with Month. The formula in that column is =[@Date]. I then format the column to only show MMM. I then set up a slicer with that column. So, the slicer shows the months ie Jan, Feb, Mar etc..

The issue is when I click on say, Jan (slicer) it only shows 1/1/2024, same for Feb and Mar etc... I thought maybe the format was off, ie showing dd/mm/yyyy, but I'm in the US and the clock/date is set to US region. So, I put in some dates like 12/1/2024, 12/18/2024 and when I click on the slicer for Dec it only shows the 12/1/2024 items.

Dennis
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try changing your formula to =TEXT(MONTH([@[Date]]),"Mmm")
Your current formula is essentially just pointing to the full date rather than just the month, even though your formatting shows only the month.
 
Upvote 0
Try changing your formula to =TEXT(MONTH([@[Date]]),"Mmm")
Your current formula is essentially just pointing to the full date rather than just the month, even though your formatting shows only the month.
Interestingly, it change ALL the dates to Jan (left side of the cell) in the Month column. I have Jan, Feb and Dec dates.


D
 
Upvote 0
When I change it to this.... =TEXT(MONTH([@Date]),"Mmm/yyyy/dd")
I get this in the cell.

First is the date columnd

1/30/2024​
2/1/2024​
12/1/2024​
12/18/2024​
12/19/2024​

Month column (with the formula above)
Jan/1900/01​
Jan/1900/02​
Jan/1900/12​
Jan/1900/12​
Jan/1900/12​


The formatting in the date cell is *3/14/2012 as Date

D
 
Upvote 0
No, you need to leave it as "Mmm". this will give you just Jan, Feb, Mar, etc. =TEXT(MONTH([@Date]),"Mmm/yyyy/dd")
 
Upvote 0
Oh sorry I didn't see the first reply. I think your Dates in your table aren't formatted as dates correctly, so it is giving you a bad return.
 
Upvote 0
The format in the column is set as above: *3/14/2012 as Date
I've changed it to mmm/dd/yyyy and same issue. The table is connected to power query as well. I went into the that and changed the format as best I could.

I'm not sure how to fix it.

d
 
Upvote 0
Book1slicertest.xlsx
BCDEFGHIJKLMNOPQRS
2
3ItemDateStuff columnItemsMonthItemDateStuff columnItemsMonth
4car1/1/24blueoneJancar1/1/24blueoneJan
5boat1/6/24orangefiveJanboat1/6/24orangefiveJan
6Jeep1/23/24bluegoJanjeep1/23/24bluegoJan
7car2/9/24orangesumFebcar2/9/24orangeoneJan
8boat2/26/24blueoneFebboat2/26/24bluefiveJan
9Jeep3/14/24orangefiveMarjeep3/14/24orangegoJan
10car3/31/24bluegoMarcar3/31/24blueoneJan
11boat4/17/24orangesumAprboat4/17/24orangefiveJan
12Jeep5/4/24blueoneMayjeep5/4/24bluegoJan
13car5/21/24orangefiveMaycar5/21/24orangeoneJan
14boat6/7/24bluegoJunboat6/7/24bluefiveJan
15Jeep6/24/24orangesumJunjeep6/24/24orangegoJan
16car7/11/24blueoneJulcar7/11/24blueoneJan
17boat7/28/24orangefiveJulboat7/28/24orangefiveJan
18Jeep8/14/24bluegoAugjeep8/14/24bluegoJan
19car8/31/24orangesumAugcar8/31/24orangeoneJan
20boat9/17/24blueoneSepboat9/17/24bluefiveJan
21Jeep10/4/24orangefiveOctjeep10/4/24orangegoJan
22car10/21/24bluegoOctcar10/21/24blueoneJan
23boat11/7/24orangesumNovboat11/7/24orangefiveJan
24Jeep11/24/24blueoneNovjeep11/24/24bluegoJan
25car12/11/24orangefiveDeccar12/11/24orangeoneJan
26boat12/28/24bluegoDecboat12/28/24bluefiveJan
27
28
29
Sheet1
Cell Formulas
RangeFormula
H4:H26H4=[@Date]
P4:P26P4=TEXT(MONTH([@Date]),"Mmm")


The slicers didn't copy over to this. Are we not supposed to use slicer to filter a date range from a table?

D
 
Upvote 0
If you change the month formula to this, does it do what you need ?
Excel Formula:
=TEXT([@Date],"mmm")
 
Upvote 0
Solution
Yes, that worked.
I should have actually LOOKED at the syntax, TEXT(value, format_text)
You know how you just overlook something and its staring you in the face the whole time.

D
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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