COUNTIFS dates match, dates as numeric but in text cell with many other numbers

Lanz

New Member
Joined
Jun 9, 2010
Messages
5
Hi, again thanks for previous help, I would not ask had I not tried several times already, but my new question is this:

I have a column listed as the ID tag for a dataset. This column has a large number for every row, with numbers representing different values of the identification, and formated as text (by default because import procedures require this to get true values).
e.g. 1023419990516004
-Where 10234 is the agent #, 19990516 is the date (year, month, date), and 004 is the survey # for that day for that agent.

I have made previous template keeping the stats locked and can drag and drop datasets to get different statistics without manipulating columns. My hope is to extract the date, or rather use COUNTIFS the cells meet a date range (season) without creating a new column that extracts these values.
e.g. =countifs(sheet!range:range,">=....19990320...,sheet!range:range,"<=....19990620...,sheet!rang:range,(other criteria)).

Anybody have an idea on how to do this or if this is possible without formatting column as number? If not, what would I place in the format code to extract this date? Thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Let's say that your value is in cell F3. You can use this formula to extract the date:

=DATE(MID(F3,6,4),MID(F3,10,2),MID(F3,12,2))
 
Upvote 0
Would something like this work?
Excel Workbook
ABCD
1IDStart DateEnd DateCount
210234199905160005/17/19995/19/19993
31023419990517000
41023419990518000
51023419990519000
61023419990520000
Sheet
 
Upvote 0
Thank you both for the quick reply. Joe thanks for the code. AlphaFrog's function looks as if it will allow additional columns in the stats sheet, which is fine so long as none are added to dataset, and just what I needed. I will try it and let you know how it worked..
Thank you so much.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,748
Members
448,989
Latest member
mariah3

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