Conditional Formatting based on Multiple Conditions.(With vba)

ootkhopdi

Board Regular
Joined
Sep 30, 2013
Messages
64
Hi. All

i am using excel 2016

i have a worksheet with 100 columns and 5000 rows..
in my data a column heading "Balance in repeating after 4 columns .like Column e, column J........

i want to create a rule for conditional formatting which applies only in column which having Balance, Means Column e, Column j...(and others.)


when balance is less than 0, row colour is red
when balance is greater than 0, row colour is green
when balance is 0, row colour is yellow

Column heading , Balance, in row 4..

any one help me..


vba also accepted...

thanks in advance...
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
52,070
Office Version
365
Platform
Windows
OK, if I understand you correctly, you have multiple columns with a heading of "Balance", i.e. columns E, J, etc. (by the way, are headings always in row 1)?
So, what if in a particular row (say, row 4), the "Balance" in column E is less than 0, but then "Balance" in column "J" is greater than 0?
Then what color do we want to make row 4? Red or green?
 

Forum statistics

Threads
1,089,376
Messages
5,407,903
Members
403,169
Latest member
Luna17

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top