Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 97
Default assign a number to the same date & start over with 1 on new date

I have a column of dates then I have a column called Date Sequence number.
I want the sequence number to start at 1 and increase by one on each row
until the Date changes, then I want the date sequence number to start over at
one and Keep increasing by one until the date changes again. The date will
always be the same on each row until then next day.
For example.

Date Date Seq Nbr
08/16/09 1
08/16/09 2
08/16/09 3
08/17/09 1
08/17/09 2
08/17/09 3
08/17/09 4
08/17/09 5
08/18/09 1
08/18/09 2
08/19/09 1
08/19/09 2
08/19/09 3
08/19/09 4

I will enter the Date filed on each row but I want the Date Seq Nbr to
automatically fill and increase without having to type it in.
Can this be done? If so how?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default assign a number to the same date & start over with 1 on new date

In B2: =IF(A2="","",COUNTIF(A$2:A2,A2))

copy down as far as needed


"Barbara" wrote:

I have a column of dates then I have a column called Date Sequence number.
I want the sequence number to start at 1 and increase by one on each row
until the Date changes, then I want the date sequence number to start over at
one and Keep increasing by one until the date changes again. The date will
always be the same on each row until then next day.
For example.

Date Date Seq Nbr
08/16/09 1
08/16/09 2
08/16/09 3
08/17/09 1
08/17/09 2
08/17/09 3
08/17/09 4
08/17/09 5
08/18/09 1
08/18/09 2
08/19/09 1
08/19/09 2
08/19/09 3
08/19/09 4

I will enter the Date filed on each row but I want the Date Seq Nbr to
automatically fill and increase without having to type it in.
Can this be done? If so how?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 97
Default assign a number to the same date & start over with 1 on new da

Wow! I don't understand why that works - wish I did. But I sure appreciate
the assistance! Thank you SO much!!

"Teethless mama" wrote:

In B2: =IF(A2="","",COUNTIF(A$2:A2,A2))

copy down as far as needed


"Barbara" wrote:

I have a column of dates then I have a column called Date Sequence number.
I want the sequence number to start at 1 and increase by one on each row
until the Date changes, then I want the date sequence number to start over at
one and Keep increasing by one until the date changes again. The date will
always be the same on each row until then next day.
For example.

Date Date Seq Nbr
08/16/09 1
08/16/09 2
08/16/09 3
08/17/09 1
08/17/09 2
08/17/09 3
08/17/09 4
08/17/09 5
08/18/09 1
08/18/09 2
08/19/09 1
08/19/09 2
08/19/09 3
08/19/09 4

I will enter the Date filed on each row but I want the Date Seq Nbr to
automatically fill and increase without having to type it in.
Can this be done? If so how?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default assign a number to the same date & start over with 1 on new date

see your other post

--
Biff
Microsoft Excel MVP


"Barbara" wrote in message
...
I have a column of dates then I have a column called Date Sequence number.
I want the sequence number to start at 1 and increase by one on each row
until the Date changes, then I want the date sequence number to start over
at
one and Keep increasing by one until the date changes again. The date will
always be the same on each row until then next day.
For example.

Date Date Seq Nbr
08/16/09 1
08/16/09 2
08/16/09 3
08/17/09 1
08/17/09 2
08/17/09 3
08/17/09 4
08/17/09 5
08/18/09 1
08/18/09 2
08/19/09 1
08/19/09 2
08/19/09 3
08/19/09 4

I will enter the Date filed on each row but I want the Date Seq Nbr to
automatically fill and increase without having to type it in.
Can this be done? If so how?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Number of Days after a Start Date Jimbo Excel Discussion (Misc queries) 5 April 3rd 23 12:12 PM
Calculating number of days including the start and end date Terri Excel Discussion (Misc queries) 2 March 2nd 09 01:18 PM
Calculating number of days including the start and end date Shane Devenshire[_2_] Excel Discussion (Misc queries) 0 February 26th 09 10:45 PM
Calculating monthly start date with a start date Monique Excel Worksheet Functions 3 December 20th 08 09:50 AM
Determining an annual review date from an employee start date Phrank Excel Worksheet Functions 3 November 29th 07 06:37 AM


All times are GMT +1. The time now is 10:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"