IF than statement help

beanyboy7

New Member
Joined
Dec 15, 2003
Messages
22
:oops: :oops:

Ok here's what I need:

I have a list of ID#'s Date's entered and $Value of Investment.

What I need to do is Eliminate the repeat ID#'s and keep only the most recent ones.

Any help that could be offered would be extremely helpful.

And for those of you celebrating. MERRY CHRISTMAS!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Interesting thanks for the post link. However it's not exactly what I need. THen again, perhaps I need to clarify.

I need to eliminate the duplicate ID#'s without eliminating the most recent entry according to the date data.

You may need to explain the link you sent to me though.

Thanks again. :confused:
 
Upvote 0
Just a ref in the archive here to some material that I thought could be used in deleting the IDs I thought you want deleted.
Plenty of material in the archives here about that task.

(y)

beanyboy7 said:
You may need to explain the link you sent to me though.
Thanks again. :confused:
 
Upvote 0
ID # I Value Code Date
1002 100202 9/3/2003 13:23
1002 100203 9/5/2003 11:44
1023 102302 6/25/2003 11:48
1023 102303 7/28/2003 12:48
1023 102304 10/15/2003 14:08
1023 102305 10/24/2003 12:40
1046 104602 6/5/2003 13:00
1046 104603 6/24/2003 14:55
1046 104604 6/24/2003 15:35

Here's a sample.

If you can help me clear this up I'd really appreciate it.
:)
 
Upvote 0
beanyboy7 said:
ID # I Value Code Date
1002 100202 9/3/2003 13:23
1002 100203 9/5/2003 11:44
1023 102302 6/25/2003 11:48
1023 102303 7/28/2003 12:48
1023 102304 10/15/2003 14:08
1023 102305 10/24/2003 12:40
1046 104602 6/5/2003 13:00
1046 104603 6/24/2003 14:55
1046 104604 6/24/2003 15:35

Here's a sample.

If you can help me clear this up I'd really appreciate it.
:)

The last column appears to house date/time values. Right?

It seems I Value Code does not play a role in "clearing up". Right?
 
Upvote 0
That would be correct sir.
The I value code is the actual data I need to extract. However I need to use the ID# and the Date/time as the criterium.

I need to remove the duplicate ID#'s and keep only the most reccent records. THe most recent records will be determined by their date of entry. Which is what the date time colum is for.

Thanks, you guys rock. :pray:
 
Upvote 0
beanyboy7 said:
...
The I value code is the actual data I need to extract. However I need to use the ID# and the Date/time as the criterium...

In what follows it's expected that the data is sorted on the ID # column.
Book5
ABCDEFG
1ID#IValueCodeDate0IValueCode
210021002029/3/200313:23 3100203
310021002039/5/200311:441102305
410231023026/25/200311:48 104604
510231023037/28/200312:48  
6102310230410/15/200314:08  
7102310230510/24/200312:402 
810461046026/5/200313:00  
910461046036/24/200314:55  
1010461046046/24/200315:353 
Sheet1


Formulas...

D1 must house a 0.

D2:

=IF(INDEX($C$2:$C$10,MATCH(A2,$A$2:$A$10))=C2,LOOKUP(9.99999999999999E+307,$D$1:D1)+1,"")

F2:

=LOOKUP(9.99999999999999E+307,D2:D10)

G2:

=IF(ROW()-ROW($G$2)+1<=$F$2,INDEX($B$2:$B$10,MATCH(ROW()-ROW($G$2)+1,$D$2:$D$10)),"")
 
Upvote 0
Thanks for the prompt reply: Mr. Aladin Akyurek

I just have one question though, regarding the formulas you posted.

List I contains about 3000+ entries and will be used for future entires. What I need to do is set it up so that the formula will continue to function after the first 10 entries and can be expanded upon in the future.

-THANKS AGAIN EXCEL GODS, visions of spreadsheets and funtions will dance in my head tonight.
 
Upvote 0

Forum statistics

Threads
1,203,727
Messages
6,056,970
Members
444,899
Latest member
Excel_Temp

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