Hi all. I am working on a spreadsheet where you look at a 4-digit code, and according to that code you break down the amount in the cell next to it by certain percentages. For this, I am using a For loop and if statements (may do cases, but I am still playing around with it). What I want is for the loop to detect if the code is detected, then print the percentages of the amounts in a column, as well as the code next to each cell that has its total broken down. For this, I cannot specify a range to print the percentage amounts in a new worksheet, as it in a loop and I just want my values to print in the same column one after another if the code is detected. If I specify a range to print these values, then if the loop detects the code again, it would reprint in the same cells. I think I may need another loop, but I am unsure if so or what kind if I do. Please let me know if you have any suggestions or if clarification is needed! I am very new to VBA, but have experience in JAVA, so I am trying to make connections there. TIA for any help!