Hello, I'm trying to create a macro or even just a formula that will automatically move information from one tab to another if it is a certain kind of expense. I understand that I can do an If Then to get the information moved over but I want the chart to not have to read down every column and put a "0" if it doesn't contain the right code.
For example, I have =IF('Credit Card Expense'!E12="6575",'Credit Card Expense'!A12,0). I can copy this down and across the sheet, but then there will be 0s in the rows that do not contain code 6575. Is there a way to get the chart to input information in consecutive rows only if information is present? Also, I'm having a problem when I enter the code above, "A12" is a date on the Credit Card Expense tab. When it transfers over to my new tab, it reads as a different date. How do I get it to copy exactly what the original cell says? Thanks.
For example, I have =IF('Credit Card Expense'!E12="6575",'Credit Card Expense'!A12,0). I can copy this down and across the sheet, but then there will be 0s in the rows that do not contain code 6575. Is there a way to get the chart to input information in consecutive rows only if information is present? Also, I'm having a problem when I enter the code above, "A12" is a date on the Credit Card Expense tab. When it transfers over to my new tab, it reads as a different date. How do I get it to copy exactly what the original cell says? Thanks.