Hi All,
Thanks everyone for solving my issue every time.
Here is my next one, i have created below multiple if condition macro
usually i'll have 1000's of data and here in my attachment i have given less data as sample.
1. If product column is G4 then highlight the row with red color and bold and no further action required in that row, go to next row
2. If product is not G4, then check bank column if it is DER or COM or OIL and also in A/c balance column value is less than 10000, if both are true then highlight the row with light yellow color, and go to next row
3. if product is not G4 and bank is not DER or COM or OIL, then check level column is ETT3 and column A/c balance in less than 500 and if both are true highlight that row with light yellow color and go to next row
4. If Product column is not G4 next
If Bank is not DER or COM or OIL ,, or if it is DER or COM or OIL and A/c balance is not less than 10000 next
If level column is not ETT3 or if its is ETT3 and A/c balance is not less than 500 next
Then
directly Check A/c balance column, whether it's value is less than 5% leverage of value in Min balance. ( that is only 5 % of leverage of Min balance is allowed to maintain in A/c balance)
If A/c balance value is less than (Min Balance - (0.05*Min Balance)), then highlight the row with light yellow color and go to next row.
Have attached my excel, If am not clear kindly come back.
Here in my code some conditions are skipped or clash occurs with other conditions and not working in order.
Kindly correct me in my macro code. Will keep learning. Thanks.
![]()
Bookmarks