Dear Excel Experts,
I'm not good in excel VBA, I need help to activate the following formulation in VBA or Excel Function if it can do it. Please see below interpretation
The black font in the left is the scenario and the red font is the output.
if Cell(A1) = "DP" and Cell(A2) = "" or <>"" and Cell(A3) = "" or <>"" then Cell(B1) = Cell(A2) and "Downpayment" then [Cell(A3) = should be automatically empty or deleted or blank or no value]
if Cell(A1) = "RB" and Cell(A2) = "" or <>"" and Cell(A3) = "" or <>"" then Cell(B1) = Cell(A2) and "Retention Billing" then [Cell(A3) = should be automatically empty or deleted or blank or no value]
if Cell(A1) = "PB" and Cell(A2) = "" or <>"" and Cell(A3) = "" or <>"" then Cell(B1) = "Progress Billing No." and Cell(A2) then [Cell(A3) = should be automatically empty or deleted or blank or no value]
if Cell(A1) = "FB" and Cell(A2) = "" or <>"" and Cell(A3) = "" or <>"" then Cell(B1) = "Final Billing" then [Cell(A2) and Cell(A3) = should be automatically empty or deleted or blank or no value]
if Cell(A1) = "OT" and Cell(A2) = "" or <>"" then Cell(B1) = Cell(A3) then [Cell(A2) = should be automatically empty or deleted or blank or no value]
Thank you in advance.
Kind regards,
Nhinx
I'm not good in excel VBA, I need help to activate the following formulation in VBA or Excel Function if it can do it. Please see below interpretation
The black font in the left is the scenario and the red font is the output.
if Cell(A1) = "DP" and Cell(A2) = "" or <>"" and Cell(A3) = "" or <>"" then Cell(B1) = Cell(A2) and "Downpayment" then [Cell(A3) = should be automatically empty or deleted or blank or no value]
A1 = "DP" | A1 = "DP" | A1 = "DP" | A1 = "DP" |
A2 = "20%" | A2 = "20%" | A2 = "" | A2 = "" |
A3 = "Maria" | A3 = "" | A3 = "" | A3 = "" |
B1 = 20% Downpayment | B1 = Downpayment |
if Cell(A1) = "RB" and Cell(A2) = "" or <>"" and Cell(A3) = "" or <>"" then Cell(B1) = Cell(A2) and "Retention Billing" then [Cell(A3) = should be automatically empty or deleted or blank or no value]
A1 = "RB" | A1 = "RB" | A1 = "RB" | A1 = "RB" |
A2 = "5%" | A2 = "5%" | A2 = "" | A2 = "" |
A3 = "Jennifer" | A3 = "" | A3 = "" | A3 = "" |
B1 = 5% Retention Billing | B1 = Retention Billing |
if Cell(A1) = "PB" and Cell(A2) = "" or <>"" and Cell(A3) = "" or <>"" then Cell(B1) = "Progress Billing No." and Cell(A2) then [Cell(A3) = should be automatically empty or deleted or blank or no value]
A1 = "PB" | A1 = "PB" | A1 = "PB" | A1 = "PB" |
A2 = "6" | A2 = "6" | A2 = "" | A2 = "" |
A3 = "Cristina" | A3 = "" | A3 = "" | A3 = "" |
B1 = Progress Billing No. 6 | B1 = Progress Billing No. |
if Cell(A1) = "FB" and Cell(A2) = "" or <>"" and Cell(A3) = "" or <>"" then Cell(B1) = "Final Billing" then [Cell(A2) and Cell(A3) = should be automatically empty or deleted or blank or no value]
A1 = "FB" | A1 = "FB" |
| A1 = "FB" | |
A2 = "6" | A2 = "" | A2 = "" | A2 = "" | |
A3 = "Brotsador" | A3 = "" | A3 = "" | A3 = "" | |
B1 = Final Billing | B1 = Final Billing |
if Cell(A1) = "OT" and Cell(A2) = "" or <>"" then Cell(B1) = Cell(A3) then [Cell(A2) = should be automatically empty or deleted or blank or no value]
A1 = "OT" | A1 = "OT" | A1 = "OT" | A1 = "OT" |
A2 = "25%" | A2 = "" | A2 = "" | A2 = "" |
A3 = "Parakado" | A3 = "Parakado" | A3 = "" | A3 = "" |
B1 = "Parakado" | B1 = "" |
Thank you in advance.
Kind regards,
Nhinx