Take sample 2 cells above highlighted cell

pltom55

New Member
Joined
Oct 6, 2014
Messages
27
So i have a column of data. i know how to conditionally format so it highlights it where i want. However, is it possible to get the cell's data 2 cells above the highlighted cell?
Here is a small sample set
Row # / Data
[TABLE="width: 64"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]#1 1.9818[/TD]
[/TR]
[TR]
[TD="align: right"]#2 1.9818[/TD]
[/TR]
[TR]
[TD="align: right"]#3 1.9818[/TD]
[/TR]
[TR]
[TD="align: right"]#4 1.9818[/TD]
[/TR]
[TR]
[TD="align: right"]#5 1.9818[/TD]
[/TR]
[TR]
[TD="align: right"]#6 1.9818[/TD]
[/TR]
[TR]
[TD="align: right"]#7 1.9818[/TD]
[/TR]
[TR]
[TD="align: right"]#8 1.9817[/TD]
[/TR]
[TR]
[TD="align: right"]#9 0.843

[/TD]
[/TR]
</tbody>[/TABLE]
The .0843 (row #9)gets highlighted through conditional formatting.
I want the 1.9818 (row #7) to be placed in P1 and then find the next highlighted cell and place the cell's data 2 cells above in P2.

Thanks for your help
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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