nikio8
Board Regular
- Joined
- Oct 20, 2017
- Messages
- 128
Hi all. Thanks MrExcell for teaching me to macro.
Essentially I was practicing to convert quite a few files from PDF to excel. Say, create invoice templates.
The other day i had over 30,000 lines of PDF. Times 15 columns. It would just take too long to do anything.
I was wandering how to speed up code:
-Does excel calculate column by column, row by row, or uses value change event to calculate formulas?
Say if dat is copied to column 1 (A). In column 2 (B) we use very good formula to find my main data lines (containing product codes) from column 1 (A). Then the rest of columns can start with if(B<>"","",Formula). If I have this criteria formula in column 10, i was thinking excel may calculate the first 9 columns, go to 10, and then recalculate all. Use Search or Find?
What would be the best way to arrange formulas?
-SUMIF. I do not know any other way to make sure total is correct, as invoice is divided in rows. One column will get total from PDF, another will use SUMIF.
If(SUMIF_Col - PDF_Total = 0,"Balanced", SUMIF_Col). However, this formula seems to be the major bottleneck. Would SUMIFS be quicker, however I need to run SUMIF twice, total excluding tax + tax?
Thank you
Essentially I was practicing to convert quite a few files from PDF to excel. Say, create invoice templates.
The other day i had over 30,000 lines of PDF. Times 15 columns. It would just take too long to do anything.
I was wandering how to speed up code:
-Does excel calculate column by column, row by row, or uses value change event to calculate formulas?
Say if dat is copied to column 1 (A). In column 2 (B) we use very good formula to find my main data lines (containing product codes) from column 1 (A). Then the rest of columns can start with if(B<>"","",Formula). If I have this criteria formula in column 10, i was thinking excel may calculate the first 9 columns, go to 10, and then recalculate all. Use Search or Find?
What would be the best way to arrange formulas?
-SUMIF. I do not know any other way to make sure total is correct, as invoice is divided in rows. One column will get total from PDF, another will use SUMIF.
If(SUMIF_Col - PDF_Total = 0,"Balanced", SUMIF_Col). However, this formula seems to be the major bottleneck. Would SUMIFS be quicker, however I need to run SUMIF twice, total excluding tax + tax?
Thank you