# Calculate highest value based on another value

1. ## Calculate highest value based on another value

Hello,

Would anyone be able to help please?
I need to calculate the highest version of Internet Explorer (column C) for each unique AssetTag (column A).
Does anybody know how to start calculating this scenario?

For example, this list
SBC399695 MICROSOFT INTERNET EXPLORER 7 7.00.6000.16762
SBC399695 MICROSOFT INTERNET EXPLORER 7 7.00.6000.16827
SBC399695 MICROSOFT INTERNET EXPLORER 7 7.00.6000.17055
SBC399695 MICROSOFT INTERNET EXPLORER 7 7.0.6000.16850
SBC399695 MICROSOFT INTERNET EXPLORER 6 6
SBC399695 MICROSOFT INTERNET EXPLORER 7 7.0.6000.16791
SBC399695 MICROSOFT INTERNET EXPLORER 7 7.00.6000.*
SBC399695 MICROSOFT INTERNET EXPLORER 6 6.0.3790.3959
SBC399697 MICROSOFT INTERNET EXPLORER 7 7.00.6000.16762
SBC399697 MICROSOFT INTERNET EXPLORER 7 7.00.6000.16827
SBC399697 MICROSOFT INTERNET EXPLORER 7 7.00.6000.*
SBC399697 MICROSOFT INTERNET EXPLORER 7 7
SBC399697 MICROSOFT INTERNET EXPLORER 6 6.0.3790.3959
SBC399697 MICROSOFT INTERNET EXPLORER 7 7.0.6000.16850
SBC399697 MICROSOFT INTERNET EXPLORER 7 7.0.6000.16791
SBC399697 MICROSOFT INTERNET EXPLORER 7 7.00.6000.17055
SBC399697 MICROSOFT INTERNET EXPLORER 7 7.00.6001.18248
SBC399697 MICROSOFT INTERNET EXPLORER 6 6

to extract only the following:
SBC399695 MICROSOFT INTERNET EXPLORER 7
SBC399697 MICROSOFT INTERNET EXPLORER 7

Attached is a sample file.

Thank you in advance.
aldousbri

2. ## Re: Calculate highest value based on another value

If you sort also by column C in ascending order, you can use:

=LOOKUP(2,1/(\$A\$2:\$A\$34248=A2),\$C\$2:\$C\$3428)

copied down.

Note: this will take a minute or so to calculate.

A faster way, would be to create a pivot table to show unique AssetTag vs. Latest version

or you could use a formula like:

=If(A2=A3,"",C2) copied down, after sorting again for columns A and C in ascending order... this will show a value only at last asset entry.

3. ## Re: Calculate highest value based on another value

Awesome, that works.
Thank you very much.

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1