• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Update Text based on conditions with 2 columns

Vijayarc

Member
Hi Ninja Team
please help to solve my below conditions

i have attached the excel were i want to Macro to update the text comment based on condition of before 2 columns,
since there is more than 90,000 rows and data is dynamic changes on Daily basis, it is impossible to update comments manually on daily basis


i have ID - on daily basis it will move from one pillar to other , or may not move
1 LOB
2 Credit
3 Reference Data Account Closure
4 KYC
5 Reference Data to Deactivate


based on pillar movement, i want to update the comment , if moved then movement as YES otherwise NO

please help and Needful !!!
 

Attachments

  • Tranch_Days.xlsm
    172.6 KB · Views: 4
Hi Ninja Team

I have done IF formula for 4 conditions, in fixed 'S' columns

please help to covert into vba code for dynamic data,

i will add one new column on daily date basis. So vba run on every last column

please Help!!

Code:
=IFERROR(IF(AND(Q33=Sheet3!$A$2,Sheet2!R33=Sheet3!$B$2),Sheet3!$C$2,IF(AND(Q33=Sheet3!$A$3,Sheet2!R33=Sheet3!$B$3),Sheet3!$C$3,IF(AND(Q33=Sheet3!$A$4,Sheet2!R33=Sheet3!$B$4),Sheet3!$C$4,IF(AND(Q33=Sheet3!$A$5,Sheet2!R33=Sheet3!$B$5),Sheet3!$C$5,"No change")))),"No Change")
 

Attachments

  • Tranch_Days (1).xlsx
    289.4 KB · Views: 2
Back
Top