Group Duplicate Entries by date and Display in a Field
Posted: Fri Jan 13, 2012 8:58 am
Hi there,
I've been struggling with this one.
I have a text file that is full of tab delimited entries that looks something like this:
"Date" "Customer Name" "Payment" "Payment Type" "Notes"
I want to read that file in and display display item 1 (the date) in a field. The tricky part is that I want to group duplicate date entries together so that they take up one line and display the number of duplicates with it.
I would like to end up with a field that has entries sorted like this:
Monday, January 10, 2011[1]
Monday, January 11, 2011[3]
Monday, January 12, 2011[8]
Monday, January 13, 2011[1]
Monday, January 14, 2011[10]
Any help on where to begin with grouping the dates together would be much appreciated!
Thanks in advance!
Josh
I've been struggling with this one.
I have a text file that is full of tab delimited entries that looks something like this:
"Date" "Customer Name" "Payment" "Payment Type" "Notes"
I want to read that file in and display display item 1 (the date) in a field. The tricky part is that I want to group duplicate date entries together so that they take up one line and display the number of duplicates with it.
I would like to end up with a field that has entries sorted like this:
Monday, January 10, 2011[1]
Monday, January 11, 2011[3]
Monday, January 12, 2011[8]
Monday, January 13, 2011[1]
Monday, January 14, 2011[10]
Any help on where to begin with grouping the dates together would be much appreciated!
Thanks in advance!
Josh