Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Keeping only the latest revision in Excel

I have some text with revisions and some without revision in excel. I want to only keep the revision with the highest number. For example in the sample picture below. I want to include "002001" as it is unique but in case of "002050" I have 2 set of data one without the revision and one with the revision, in this case I want to keep "002050_R02" since it’s the highest revision. How do I accomplish this in excel without the VBA.

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Sort column A.

Then use:

=IF(A3<>"",IF(LEFT(A2,MIN(FIND({".","_"},A2&"_."))-1)=LEFT(A3,MIN(FIND({".","_"},A3&"_."))-1),"N","Y"),"Y")

And copy down.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading