Compare Rows, group identical entries, and find lowest value

Tim1900

New Member
Joined
Jun 17, 2011
Messages
7
Hi
I have a sheet with over 1000 entries.
Part of the columns are build up as below.

A A 4
A A 6
A A 5
A B 7
A B 9
A B 8

I'm trying to make a formula that:
- first checks in which rows columns A and B are equal, (in this example, row 1, 2 and 3)
- then, from those reflected rows, determine which has the lowest value.
- display this with an X in the following column.

So this should give the following results:

A A 4 -> X
A A 6 ->
A A 5 ->

A B 7 ->
A B 9 ->
A B 8 -> X


The values above, like A and B, are really citynames in the real document.
Tried vlookup, in combination with IF and AND statements, but I keep locking up.

any help appreciated.

thanx,
Tim
 
Last edited:
OK.
I surely understand it has to go through to the entire column-range to find/detect group the data, but I'd expect it to then put 3 X-es in my sheet, when I make an exact copy of your example in an empty sheet. And that what it doesn't do for me.

It only puts 1 X in the entire sheet on the row where column C has the lowest value of all rows. So the formula thinks the entire sheet is 1 group (as I name it).
It should present 3 X-es in the above example, using this formula.

It's either me not copying the data correctly as I have to make some changes for the IF-statements. (changing the comma's to the ';'-character due to my regional settings), or the formula is incorrect for my purpose.

Nevertheless, thanks for the help, and maybe somebody could have an eye on it again.

If you happen to have an excel file where this does work normally as I , I'd really love to receive a copy. Any way we could share files through the forum?

Thanx a lot,
Tim
Here's a small sample file that demonstrates this (as I understand it!).

zzzTim1900.xls 16kb

http://cjoint.com/?AFsxwU09shB

If you want to swap files then it has to be done either through private email or by posting the file to some other site then downloading it from that site. In this case I've used a free file hosting site.
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
That is it!! Great!
I really don't get why the formula doesn't work when I manually add it to my test-sheet, but this behaves as it mentioned.

I now only have to include it in the real excel file.


Thanx a lot for this.
 
Upvote 0
That is it!! Great!
I really don't get why the formula doesn't work when I manually add it to my test-sheet, but this behaves as it mentioned.

I now only have to include it in the real excel file.


Thanx a lot for this.
Good deal. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,225,155
Messages
6,183,212
Members
453,151
Latest member
Lizamaison

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