Sort Data According to date/lowest balance:

Bruce2000

New Member
Joined
Feb 18, 2012
Messages
10
Sample Data:

ID # Date Balance
3605944 2/15/2012 15:20 $1.19
3605944 2/15/2012 15:20 $2.19
3605944 2/15/2012 15:21 $3.19
3605944 2/15/2012 15:21 $2.94
3605944 2/15/2012 15:21 $2.69 ***
3605972 2/12/2012 9:05 $10.42
3605972 2/13/2012 9:05 $9.42
3605972 2/14/2012 9:05 $8.42 ***
3605981 2/14/2012 10:58 $1.07
3605981 2/14/2012 10:58 $0.82
3605981 2/14/2012 10:58 $0.57
3605981 2/14/2012 10:59 $0.32
3605981 2/14/2012 10:59 $0.07***



How do I sort the data so that only the latest date is left over with it's respective (lowest) balance and card number?

So that I would end up with the data below.

3605944 2/15/2012 15:21 $2.69
3605972 2/14/2012 9:05 $8.42
3605981 2/14/2012 10:59 $0.07

thanks,
Bruce
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Well first off, sorting won't do it by itself.
You'll really need some kind of filtering.
But before we get to that, how do we differentiate between entries that appear to have identical date and time, such as items 3, 4, and 5, or items 12 and 13 ?
Is it sufficient to rely on the sequence that they are already in, and simply take whichever is the last entry for each item ?
 
Upvote 0
OK. Is the lowest $ balance always the one at the bottom (for that ID / date / time combination), or could it be higher up ?
 
Upvote 0
The $ Balance is at the bottom because that is the last time that the specific ID Card was used.

i.e.

3605981 2/14/2012 10:59 $0.07***

The last time ID# 3605981 was used on the 2-14 at 10:59pm and the remaining balance was 7 cents.
 
Upvote 0
OK. Here's what I would do, there may be better ways.
I'm assuming we can rely on the data already being in the correct sequence, which I think is what you are saying.

I would use a helper column to identify which rows to highlight, like this.
Let's assume
ID # is in Col A
Date and time is in Col B
Balance is in col C

On your first row, let's assume it's row 2
=if(A2=A3,0,1)
and copy this down as far as required.
Then, use Data Filter to show only items with a 1 in this helper column.
If you want, you can then copy the filtered data to another range / worksheet.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,240
Members
448,555
Latest member
RobertJones1986

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