kashif.special2005
Active Member
- Joined
- Oct 26, 2009
- Messages
- 443
Hi,
I have data, and I want to color cell on the column B ("Deposit") and column C ("Withdrawal"), on some condition.
Condition:-
Rule 1 :- Deposit & withdrawal entry for same date and same amount - color code "green"
Rule 2 :- Deposit & withdrawal entry for different dates with same amount - color code "yellow"
Rule 3 :- One Deposit but 2 withdrawals of same amount on same date then color code as "red"
Rule 4 :- Same date with different amounts of deposit and withdrawal then color code "red"
Rule 5 :- Only one entry either depoist or withdrawal then - color code "no color"
Data Heading:-
A1=Date
B1=Deposit
C1=Withdrawal
Data:-
A2_____02/07/2018___B2_____8605.59___C2_IS BLANK
A3_____02/07/2018___B3_IS BLANK___C3_____8606
A4_____02/08/2018___B4_IS BLANK___C4_____5086
A5_____02/08/2018___B5_____82320___C5_IS BLANK
A6_____02/08/2018___B6_IS BLANK___C6_____93534
A7_____02/08/2018___B7_____11214___C7_IS BLANK
A8_____02/14/2018___B8_IS BLANK___C8_____99.93
A9_____02/15/2018___B9_IS BLANK___C9_____29096
A10_____02/15/2018___B10_____29096___C10_IS BLANK
A11_____02/16/2018___B11_____1000000___C11_IS BLANK
A12_____02/16/2018___B12_IS BLANK___C12_____1000000
A13_____02/20/2018___B13_IS BLANK___C13_____1000000
A14_____02/20/2018___B14_IS BLANK___C14_____750
A15_____02/20/2018___B15_____1000000___C15_IS BLANK
A16_____02/20/2018___B16_____750___C16_IS BLANK
A17_____02/21/2018___B17_IS BLANK___C17_____68720
A18_____02/21/2018___B18_____75000___C18_IS BLANK
A19_____02/21/2018___B19_IS BLANK___C19_____6280
A20_____02/22/2018___B20_____200000___C20_IS BLANK
A21_____02/22/2018___B21_IS BLANK___C21_____200000
A22_____02/26/2018___B22_____1428193.84___C22_IS BLANK
A23_____02/26/2018___B23_IS BLANK___C23_____1428193.84
A24_____02/27/2018___B24_____1500000___C24_IS BLANK
A25_____02/27/2018___B25_IS BLANK___C25_____1500000
A26_____02/28/2018___B26_IS BLANK___C26_____4809.77
A27_____02/28/2018___B27_____500000___C27_IS BLANK
A28_____02/28/2018___B28_____3265431.51___C28_IS BLANK
A29_____02/28/2018___B29_IS BLANK___C29_____1500000
A30_____02/28/2018___B30_____700000___C30_IS BLANK
A31_____02/28/2018___B31_IS BLANK___C31_____700000
A32_____02/28/2018___B32_IS BLANK___C32_____500000
A33_____02/28/2018___B33_____1500000___C33_IS BLANK
A34_____02/28/2018___B34_IS BLANK___C34_____3265431.51
Here I showed some sample data, but reality the data is huge.
Please help me to achieve this task.
I am very new in VBA, and I don't know how to do this, please help me.
Thanks
Kashif
I have data, and I want to color cell on the column B ("Deposit") and column C ("Withdrawal"), on some condition.
Condition:-
Rule 1 :- Deposit & withdrawal entry for same date and same amount - color code "green"
Rule 2 :- Deposit & withdrawal entry for different dates with same amount - color code "yellow"
Rule 3 :- One Deposit but 2 withdrawals of same amount on same date then color code as "red"
Rule 4 :- Same date with different amounts of deposit and withdrawal then color code "red"
Rule 5 :- Only one entry either depoist or withdrawal then - color code "no color"
Data Heading:-
A1=Date
B1=Deposit
C1=Withdrawal
Data:-
A2_____02/07/2018___B2_____8605.59___C2_IS BLANK
A3_____02/07/2018___B3_IS BLANK___C3_____8606
A4_____02/08/2018___B4_IS BLANK___C4_____5086
A5_____02/08/2018___B5_____82320___C5_IS BLANK
A6_____02/08/2018___B6_IS BLANK___C6_____93534
A7_____02/08/2018___B7_____11214___C7_IS BLANK
A8_____02/14/2018___B8_IS BLANK___C8_____99.93
A9_____02/15/2018___B9_IS BLANK___C9_____29096
A10_____02/15/2018___B10_____29096___C10_IS BLANK
A11_____02/16/2018___B11_____1000000___C11_IS BLANK
A12_____02/16/2018___B12_IS BLANK___C12_____1000000
A13_____02/20/2018___B13_IS BLANK___C13_____1000000
A14_____02/20/2018___B14_IS BLANK___C14_____750
A15_____02/20/2018___B15_____1000000___C15_IS BLANK
A16_____02/20/2018___B16_____750___C16_IS BLANK
A17_____02/21/2018___B17_IS BLANK___C17_____68720
A18_____02/21/2018___B18_____75000___C18_IS BLANK
A19_____02/21/2018___B19_IS BLANK___C19_____6280
A20_____02/22/2018___B20_____200000___C20_IS BLANK
A21_____02/22/2018___B21_IS BLANK___C21_____200000
A22_____02/26/2018___B22_____1428193.84___C22_IS BLANK
A23_____02/26/2018___B23_IS BLANK___C23_____1428193.84
A24_____02/27/2018___B24_____1500000___C24_IS BLANK
A25_____02/27/2018___B25_IS BLANK___C25_____1500000
A26_____02/28/2018___B26_IS BLANK___C26_____4809.77
A27_____02/28/2018___B27_____500000___C27_IS BLANK
A28_____02/28/2018___B28_____3265431.51___C28_IS BLANK
A29_____02/28/2018___B29_IS BLANK___C29_____1500000
A30_____02/28/2018___B30_____700000___C30_IS BLANK
A31_____02/28/2018___B31_IS BLANK___C31_____700000
A32_____02/28/2018___B32_IS BLANK___C32_____500000
A33_____02/28/2018___B33_____1500000___C33_IS BLANK
A34_____02/28/2018___B34_IS BLANK___C34_____3265431.51
Here I showed some sample data, but reality the data is huge.
Please help me to achieve this task.
I am very new in VBA, and I don't know how to do this, please help me.
Thanks
Kashif