AOB
Well-known Member
- Joined
- Dec 15, 2010
- Messages
- 669
- Office Version
- 365
- 2016
- 2013
- Platform
- Windows
Hi all,
I have a sheet of data with two columns I want to run a formula against.
The first column contains device names, the second, version numbers of a piece of software.
Both are text (the device name is alphanumeric and the software version is numerical but with major, minor and subminor versions separated by periods, i.e. 2.1.1234.6789)
Devices appear multiple times in the list
So for example if the "table" looks like this :
[TABLE="width: 500"]
<tbody>[TR]
[TD]Device
[/TD]
[TD]Version
[/TD]
[/TR]
[TR]
[TD]ABCD1234EFGH
[/TD]
[TD]2.1.1234.5678
[/TD]
[/TR]
[TR]
[TD]ZYXW9876VUTS
[/TD]
[TD]2.1.1234.5678
[/TD]
[/TR]
[TR]
[TD]ABCD1234EFGH
[/TD]
[TD]2.2.2345.6789
[/TD]
[/TR]
[TR]
[TD]ABCD1234EFGH
[/TD]
[TD]2.1.1234.5678
[/TD]
[/TR]
</tbody>[/TABLE]
I'm looking for a formula (on a separate sheet of unique/distinct devices), to return the latest version recorded against any given device :
[TABLE="width: 500"]
<tbody>[TR]
[TD]Device
[/TD]
[TD]Latest Version
[/TD]
[/TR]
[TR]
[TD]ABCD1234EFGH
[/TD]
[TD]2.2.2345.6789
[/TD]
[/TR]
[TR]
[TD]ZYXW9876VUTS
[/TD]
[TD]2.1.1234.5678
[/TD]
[/TR]
</tbody>[/TABLE]
I've tried using MAX / IF, like this (for simplicity, I've named the columns on the source data sheet "Devices" and "Versions" respectively)
But it only ever returns zero?
When I evaluate the array formula, I can see it "detecting" the appropriate matches :
But it's like all those "falses" trip up the Max function and it just evaluates to zero?
Really frustrating and I'm sure it's something stupid I've not taken into consideration (my guess is the text nature of the version!) but can't figure it out
Any suggestions??
Thanks!!
I have a sheet of data with two columns I want to run a formula against.
The first column contains device names, the second, version numbers of a piece of software.
Both are text (the device name is alphanumeric and the software version is numerical but with major, minor and subminor versions separated by periods, i.e. 2.1.1234.6789)
Devices appear multiple times in the list
So for example if the "table" looks like this :
[TABLE="width: 500"]
<tbody>[TR]
[TD]Device
[/TD]
[TD]Version
[/TD]
[/TR]
[TR]
[TD]ABCD1234EFGH
[/TD]
[TD]2.1.1234.5678
[/TD]
[/TR]
[TR]
[TD]ZYXW9876VUTS
[/TD]
[TD]2.1.1234.5678
[/TD]
[/TR]
[TR]
[TD]ABCD1234EFGH
[/TD]
[TD]2.2.2345.6789
[/TD]
[/TR]
[TR]
[TD]ABCD1234EFGH
[/TD]
[TD]2.1.1234.5678
[/TD]
[/TR]
</tbody>[/TABLE]
I'm looking for a formula (on a separate sheet of unique/distinct devices), to return the latest version recorded against any given device :
[TABLE="width: 500"]
<tbody>[TR]
[TD]Device
[/TD]
[TD]Latest Version
[/TD]
[/TR]
[TR]
[TD]ABCD1234EFGH
[/TD]
[TD]2.2.2345.6789
[/TD]
[/TR]
[TR]
[TD]ZYXW9876VUTS
[/TD]
[TD]2.1.1234.5678
[/TD]
[/TR]
</tbody>[/TABLE]
I've tried using MAX / IF, like this (for simplicity, I've named the columns on the source data sheet "Devices" and "Versions" respectively)
Code:
{=MAX(IF(Devices=$A2,Versions))}
But it only ever returns zero?
When I evaluate the array formula, I can see it "detecting" the appropriate matches :
MAX({"2.1.1234.5678";FALSE;"2.2.2345.6789";"2.1.1234.5678";FALSE;FALSE;....})
But it's like all those "falses" trip up the Max function and it just evaluates to zero?
Really frustrating and I'm sure it's something stupid I've not taken into consideration (my guess is the text nature of the version!) but can't figure it out
Any suggestions??
Thanks!!