Compare values between rows

Rosadocc

New Member
Joined
Mar 15, 2012
Messages
49
Hi,

Im looking to compare the price of items in a spreadsheet.

In the example below, Im looking for a function for the Higher or Lower column that compares Item ID "1" with itself and identifies which is the higher and lower price of the two.

Item ID
PriceHigher or Lower
110.00
Lower
454.00
323.00
214.00
478.00
141.00Higher
274.00
333.00

<tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Copy C2 down. Note this is an array formula: confirm with ctrl+shift+enter.
Excel Workbook
ABC
1Item IDPriceHigher or Lower
2110Lower
3454Lower
4323Lower
5214Lower
6478Higher
7141Higher
8274Higher
9333Higher
A
 
Upvote 0
Copy C2 down. Note this is an array formula: confirm with ctrl+shift+enter.
A

ABC
1Item IDPriceHigher or Lower
2110Lower
3454Lower
4323Lower
5214Lower
6478Higher
7141Higher
8274Higher
9333Higher

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:106px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
C2{=IF(COUNTIF($A$2:$A$9,A2)<2,"",IF(MAX(IF($A$2:$A$9=A2,$B$2:$B$9))=B2,"Higher","Lower"))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


Worked Great!
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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