Conditional Formating formula not calculating

dshafique

Board Regular
Joined
Jun 19, 2017
Messages
171
Hi guys, for some reason, in vba, i made the formula to capture data from 2 cells to the left and turn green if its greater or equal, and red if its less than. but it always shows cell E2 when i open the manage rules section.

it also gives me one wrong value for some reason. one cell is 99.93% it should be green because its greater than the value 2 to the left (99.00%) but it comes up as red. i dont know how many others might be wrong too. what could i be doing wrong in this?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Not sure why you need VBA for this, regular CF should do it just fine.

1 thing about CF is that if you indicate a range to apply it to, it will always show the rule applying to just the 1st cell in that range, no matter what other cell you test

What formula are you using? You will need 2 rules, =A1>+A2 format fill GREEN and =A1<A2 format fill, RED
 
Upvote 0
the reason i need vba is because i am creating a program which has dynamic data every month. we need to see the percentages, and see them pop out as there are hundreds of rows, and thousands of percents to read. my two formulas are
Cell Value >= $E2 for GREEN
Cell Value < $E2 for RED

however, even when i select row number 245, it shows E2 as the reference. I have it in a table, so I wanted match it agaisnt the data in the column [SLA target]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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