I need to create an Excel Macro or VBA in Excel with conditional logic.
My data looks like this.
Row A B C D E F G
1 Alpha Beta Soup Book Red
2 Gamma Lamda Stew Ledger Green Hot 712
3 Beta Alpha Beans 0 0
4 Alpha Zeta Carrots 0 0
5 Mu Rho Lettuce Cards Yellow Cold 999
If any cell in column D=0, then copy the preceeding cell in D, E, F, and G to the row with the zero.
Data should look like this:
Row A B C D E F G
1 Alpha Beta Soup Book Red
2 Gamma Lamda Stew Ledger Green Hot 712
3 Beta Alpha Beans Ledger Green Hot 712
4 Alpha Zeta Carrots Ledger Green Hot 712
5 Mu Rho Lettuce Cards Yellow Cold 999
(I tried to put the data into columns, but I don't know how.)
Thanks.
My data looks like this.
Row A B C D E F G
1 Alpha Beta Soup Book Red
2 Gamma Lamda Stew Ledger Green Hot 712
3 Beta Alpha Beans 0 0
4 Alpha Zeta Carrots 0 0
5 Mu Rho Lettuce Cards Yellow Cold 999
If any cell in column D=0, then copy the preceeding cell in D, E, F, and G to the row with the zero.
Data should look like this:
Row A B C D E F G
1 Alpha Beta Soup Book Red
2 Gamma Lamda Stew Ledger Green Hot 712
3 Beta Alpha Beans Ledger Green Hot 712
4 Alpha Zeta Carrots Ledger Green Hot 712
5 Mu Rho Lettuce Cards Yellow Cold 999
(I tried to put the data into columns, but I don't know how.)
Thanks.