Simple Date Formula

dragonmouse

Board Regular
Joined
May 14, 2008
Messages
129
Office Version
  1. 2016
Platform
  1. Windows
I exported an excel spreadsheet using Crystal. Crystal insists on storing the date regardless of format as "3/14/2019 4:04:26 PM" when it's exported. I have some formulas in which I want to look for "Mar-2019". Formatting in Excel doesn't help. It still sees the date as "3/14/2019 4:04:26 PM". What is a formula that will convert this "3/14/2019 4:04:26 PM" to "Mar-2019"
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,

Try these:

Book3.xlsx
BCDEFG
33/14/2019 4:04:26 PMMar-2019Mar-2019FALSETRUE
4^Custom format mmm-yyyy
Sheet720
Cell Formulas
RangeFormula
C3C3=TEXT(INT(B3),"mmm-yyyy")
D3D3=INT(B3)
F3:G3F3=ISNUMBER(C3)
 
Upvote 0
Hi,

Try these:

Book3.xlsx
BCDEFG
33/14/2019 4:04:26 PMMar-2019Mar-2019FALSETRUE
4^Custom format mmm-yyyy
Sheet720
Cell Formulas
RangeFormula
C3C3=TEXT(INT(B3),"mmm-yyyy")
D3D3=INT(B3)
F3:G3F3=ISNUMBER(C3)
Thank you...sadly it doesn't quite convert the number to the format. It is a cool formula though.

I'm trying to get this formula to work:

=SUMPRODUCT(COUNTIF($N:$N,"Mar-19"))

once this date "1/13/2021 9:38:13 AM" is translated to "MAR-19" I want to be able to count all the Mar-19 items in the spread sheet. I can subtotal them but I really want to summarize items.
 
Upvote 0
Maybe:
Book1
AB
13/14/2019 4:04:26 PMMar-19
Sheet1
Cell Formulas
RangeFormula
B1B1=TEXT(INT(A1*1),"mmm-yy")
 
Upvote 0
Solution
Hi,

Try these:

Book3.xlsx
BCDEFG
33/14/2019 4:04:26 PMMar-2019Mar-2019FALSETRUE
4^Custom format mmm-yyyy
Sheet720
Cell Formulas
RangeFormula
C3C3=TEXT(INT(B3),"mmm-yyyy")
D3D3=INT(B3)
F3:G3F3=ISNUMBER(C3)
We HAVE a WINNER ?:)? THANK YOU. that works. I guess it wanted "TEXT" for my counting formula. It's going to be GLORIOUS!!! THANK YOU SOOOOOOOO MUCH. Not sure why the first one didn't work...maybe I just typed something wrong when I translated it to my spreadsheet.
 
Upvote 0

Forum statistics

Threads
1,214,598
Messages
6,120,441
Members
448,966
Latest member
DannyC96

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