finding the largest document revision

skittlz

New Member
Joined
Oct 26, 2012
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet which has a document numbers and document revisions. The revisions are either engineering (always numbers - so 1, 2, 3, 4 etc) or production (Alphabets - A through ZZ). I need a way to find the "highest" document revision. I tried using ASCII with the CODE function but it gets screwed up with numeric revs, or anything above Z.

Engineering Revs are always smaller than production revs.

Any suggestions?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Pretty hard to guess what your data layout is and where/how the result(s) should appear. What about a small set of dummy sample data with the expected result(s) manually filled in and explain again in relation to that sample data?
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi Peter,

Unfortunately I cannot install the plugin - work laptop. Here's a "Sample Data" screenshot - hope this helps! I'm using the latest revision of Excel - so 365. Hope this clarifies some of your questions!

Regards,

- Ritul
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    14.4 KB · Views: 5
Upvote 0
Unfortunately I cannot install the plugin - work laptop.
In that case it would be a good idea in any future threads to state that in the first post so we don't keep asking. ;)
An alternative (not as good though) is to simply copy/paste from Excel into the forum and tell us what range is posted and what formulas (if any) are used.

I'm using the latest revision of Excel - so 365
Please put it in your account details as requested so the information is always readily available to helpers.


Here's a "Sample Data" screenshot
I am afraid that I don't understand it.
  1. Does it mean that 5 cells in column B have formulas and the others do not? Or should those coloured cell values actually be appearing somewhere else? (if so where?)
  2. Why do some document names (Proc-10 & Proc-35) not have anything marked?
 
Upvote 0
Hi Peter,

Sorry for the confusion - I just realized I had several typos my screenshot (I wasn't paying attention apparently) -

I'll try to clarify:

The "Procs" are names of the procedures. Its just a naming convention we use.

The Column B has revisions for each Proc - so every time a document is modified in any way - it gets a new revision.

For example, Proc-10 was updated 3 times - from 1, to A, to B. The highest (current) rev is B, so the formula for Proc-10 should return B.

Similarly, Proc-35 is at Rev 2 (updated twice). I'm looking for the formula for Column C, which'll tell me the "Highest" revision for each Proc.

My sincere apologies for the errors.


1708954221293.png
 
Upvote 0
so the formula for Proc-10 should return B.
I'm thinking that the different result (C) shown in the image is probably actually what you want?

From the image it appears that you simply want the last item for each document name?

Also not sure about how the results should be presented but see if either of these is any use

24 02 27.xlsm
ABCDEF
1
2Proc-101 Proc-10C
3Proc-10A Proc-20C
4Proc-10B Proc-301
5Proc-10CThis oneProc-352
6Proc-20A Proc-38A
7Proc-20B Proc-40AA
8Proc-20CThis one
9Proc-301This one
10Proc-351 
11Proc-352This one
12Proc-38AThis one
13Proc-40Y 
14Proc-40Z 
15Proc-40AAThis one
16
Latest
Cell Formulas
RangeFormula
E2:F7E2=FILTER(A2:B15,A2:A15<>A3:A16)
C2:C15C2=IF(A2=A3,"","This one")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,078
Messages
6,122,996
Members
449,093
Latest member
masterms

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