I have a control sheet that is checked against several data sheets that are attached in the same workbook. There can be several lines of data, over 1000. I am checking monthly so this total will very each month. I have created a testing sheet to reduce the formula to a smaller size, but now I am having a problem trying to automate the process.
For each line on the "control sheet", I need to run the formula which has set variables on the testing sheet, "parameters for various dsum formulas"; however, for each "next line", only one of the parameters change on the testing sheet, the "document number". I am trying to create a formula to run save result, go to next line, change the "document number" according to the document number on this line, run again, and continue until all lines of data on the control sheet have ran.
The results would be "ok", "Flag for Route", and "check on".
formula is:
[=IF(OR(DSUM(A:R,"Qty",checker!$D$1:$F$3)=DSUM('Data sheet1!A:AB,"Qty",checker!$D$1:$F$3),AND(DSUM(A:R,"Qty",checker!$H$1:$J$3)+DSUM('Data sheet!A:AB,"Qty",checker!$I$1:$L$3)>0,DSUM(A:R,"Qty",checker!$H$1:$J$3)=DSUM('Data sheet'!A:AB,"Qty",checker!$I$1:$L$3))),"ok",IF(AND(DSUM(A:R,"Qty",checker!$N$1:$P$3)+DSUM('Data sheet'!A:AB,"Qty",checker!$O$1:$R$8)>0,DSUM(A:R,"Qty",checker!$N$1:$P$3)=DSUM('Data sheet'!A:AB,"Qty",checker!$O$1:$R$8)),"flag for route","check on"))]
Thank you in advance for any and all help:)
For each line on the "control sheet", I need to run the formula which has set variables on the testing sheet, "parameters for various dsum formulas"; however, for each "next line", only one of the parameters change on the testing sheet, the "document number". I am trying to create a formula to run save result, go to next line, change the "document number" according to the document number on this line, run again, and continue until all lines of data on the control sheet have ran.
The results would be "ok", "Flag for Route", and "check on".
formula is:
[=IF(OR(DSUM(A:R,"Qty",checker!$D$1:$F$3)=DSUM('Data sheet1!A:AB,"Qty",checker!$D$1:$F$3),AND(DSUM(A:R,"Qty",checker!$H$1:$J$3)+DSUM('Data sheet!A:AB,"Qty",checker!$I$1:$L$3)>0,DSUM(A:R,"Qty",checker!$H$1:$J$3)=DSUM('Data sheet'!A:AB,"Qty",checker!$I$1:$L$3))),"ok",IF(AND(DSUM(A:R,"Qty",checker!$N$1:$P$3)+DSUM('Data sheet'!A:AB,"Qty",checker!$O$1:$R$8)>0,DSUM(A:R,"Qty",checker!$N$1:$P$3)=DSUM('Data sheet'!A:AB,"Qty",checker!$O$1:$R$8)),"flag for route","check on"))]
Thank you in advance for any and all help:)