JonWhite123
New Member
- Joined
- Dec 3, 2008
- Messages
- 8
Hi All,
Long time reader, first time poster...
I have a report which has 14 columns. In one column there is a list of system names (often duplicates). What I need to do is show only one system name, depending on what data is in the other columns. Here's where it gets tricky.
This is a simple example of the problem:
A B C D
Word 4 12/12/13 Apples
Excel 5 1/12/13 Oranges
Word 3 31/6/13 Oranges
Excel 4 12/3/13 Apples
What I'd like it to do is take the highest value in column B, the earliest date in column D and the nicest fruit in column D (where Apples are nicer that Oranges!). So the filtered list in the example would look like this:
A B C D
Word 4 31/6/13 Apples
Excel 5 12/3/13 Apples
I hope this makes sense. I've looked at using sort/advanced and filter in place, but cannot see the best way to approach it. I'm using VBA to do a lot of stuff in this workbook, so perhaps there is an answer there? I'm using Excel 2007. If anyone can help, or offer any help I would greatly appreciate it!
Thanks all.
Long time reader, first time poster...
I have a report which has 14 columns. In one column there is a list of system names (often duplicates). What I need to do is show only one system name, depending on what data is in the other columns. Here's where it gets tricky.
This is a simple example of the problem:
A B C D
Word 4 12/12/13 Apples
Excel 5 1/12/13 Oranges
Word 3 31/6/13 Oranges
Excel 4 12/3/13 Apples
What I'd like it to do is take the highest value in column B, the earliest date in column D and the nicest fruit in column D (where Apples are nicer that Oranges!). So the filtered list in the example would look like this:
A B C D
Word 4 31/6/13 Apples
Excel 5 12/3/13 Apples
I hope this makes sense. I've looked at using sort/advanced and filter in place, but cannot see the best way to approach it. I'm using VBA to do a lot of stuff in this workbook, so perhaps there is an answer there? I'm using Excel 2007. If anyone can help, or offer any help I would greatly appreciate it!
Thanks all.