Conditional Formatting using a lookup formula

saenzj

New Member
Joined
Mar 14, 2017
Messages
3
Hello,

I need some help using conditional formatting. I have a spreadsheet with employee payroll data. In column A I have a formula that numbers the row. I did this, so that when I filter the data based on salary amount over a $ threshold, I could have a numbered list. The formula that I have in that column is =SUBTOTAL(2,G$2:G2). In column H I have dollar amount for each employee. In column P, I used a formula to create a random number. The formula that I have in column P is =RAND(). In column I, I have another formula that tells me what sample to select in my audit of the payroll data. For example, if cell I2 reads 228, I will select the employee that is 228 in column A. The formula that I have in column I is =IF(ROW()-ROW($I$2)+1>$J$1*COUNTA($A$2:$A$839),"",INDEX($A$2:$A$839,RANK(P2,$P$2:$P$839))). Cell J1 reads 10%.

So say that I wanted to see all the employees earning over $2,000 in this pay period, I filter on column H for all the values greater or equal to $2,000. Once I filter the date, column A and column I automatically update. In column I only shows values based on 10% of the number of employees that earn over $2,000. I would like to create a conditional format that will highlight the cell in column A that equals to the number in column I.

I hope this makes sense.

Any help is appreciated.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,162
Messages
6,170,432
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