Hi,
i need to present a weekly report which would sum the results of validated values in several excel files (excel 2010).
It is not the same files every week, however all files are in exactly the same format.
The report needs to sum the number of approved, rejected and revised values in the files, however only values marked as 'Done' should be taken into account.
this is the format of the files (all files have identical format)
[TABLE="width: 288"]
<tbody>[TR]
[TD="class: xl68, width: 72, align: left"][TABLE="width: 324"]
<tbody>[TR]
[TD]ID[/TD]
[TD="align: left"]Value[/TD]
[TD="align: left"]Status[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]356[/TD]
[TD="align: left"]Vienna[/TD]
[TD="align: left"]Rejected[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]548[/TD]
[TD="align: left"]USA[/TD]
[TD="align: left"]Approved[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]953[/TD]
[TD="align: left"]Canada[/TD]
[TD="align: left"]Approved[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]852[/TD]
[TD="align: left"]Melbourne[/TD]
[TD="align: left"]Rejected[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]963[/TD]
[TD="align: left"]England[/TD]
[TD="align: left"]Revised[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]961[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]962[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]964[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="class: xl68, width: 72, align: left"][/TD]
[TD="class: xl68, width: 72, align: left"][/TD]
[TD="class: xl69, width: 72, align: left"][/TD]
[/TR]
</tbody>[/TABLE]
the report format is:
[TABLE="width: 898"]
<tbody>[TR]
[TD][/TD]
[TD]Approved[/TD]
[TD]Rejected[/TD]
[TD]Revised[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]Sum of files 1,2,3,4[/TD]
[TD]5559[/TD]
[TD]396[/TD]
[TD]198[/TD]
[/TR]
[TR]
[TD="align: left"]Sum of files 5,6[/TD]
[TD]2181[/TD]
[TD]94[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
Until now i've been using the countifs formula in every file to count the total of approved, rejected, revised values in every file, and then manually summed up the results of several files together for the report.
these are the formulas i've used:
=COUNTIFS($P:$P,"Done",$J:$J,"Rejected")
=COUNTIFS($P:$P,"Done",$J:$J,"Approved")
=COUNTIFS($P:$P,"Done",$J:$J,"Revised")
this is very time consuming, so i am looking for a macro which will automatically calculate the data,
and present the weekly report in the correct format.
Looking forwards to your reply!
i need to present a weekly report which would sum the results of validated values in several excel files (excel 2010).
It is not the same files every week, however all files are in exactly the same format.
The report needs to sum the number of approved, rejected and revised values in the files, however only values marked as 'Done' should be taken into account.
this is the format of the files (all files have identical format)
[TABLE="width: 288"]
<tbody>[TR]
[TD="class: xl68, width: 72, align: left"][TABLE="width: 324"]
<tbody>[TR]
[TD]ID[/TD]
[TD="align: left"]Value[/TD]
[TD="align: left"]Status[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]356[/TD]
[TD="align: left"]Vienna[/TD]
[TD="align: left"]Rejected[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]548[/TD]
[TD="align: left"]USA[/TD]
[TD="align: left"]Approved[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]953[/TD]
[TD="align: left"]Canada[/TD]
[TD="align: left"]Approved[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]852[/TD]
[TD="align: left"]Melbourne[/TD]
[TD="align: left"]Rejected[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]963[/TD]
[TD="align: left"]England[/TD]
[TD="align: left"]Revised[/TD]
[TD="align: left"]Done[/TD]
[/TR]
[TR]
[TD]961[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]962[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]964[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="class: xl68, width: 72, align: left"][/TD]
[TD="class: xl68, width: 72, align: left"][/TD]
[TD="class: xl69, width: 72, align: left"][/TD]
[/TR]
</tbody>[/TABLE]
the report format is:
[TABLE="width: 898"]
<tbody>[TR]
[TD][/TD]
[TD]Approved[/TD]
[TD]Rejected[/TD]
[TD]Revised[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]Sum of files 1,2,3,4[/TD]
[TD]5559[/TD]
[TD]396[/TD]
[TD]198[/TD]
[/TR]
[TR]
[TD="align: left"]Sum of files 5,6[/TD]
[TD]2181[/TD]
[TD]94[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
Until now i've been using the countifs formula in every file to count the total of approved, rejected, revised values in every file, and then manually summed up the results of several files together for the report.
these are the formulas i've used:
=COUNTIFS($P:$P,"Done",$J:$J,"Rejected")
=COUNTIFS($P:$P,"Done",$J:$J,"Approved")
=COUNTIFS($P:$P,"Done",$J:$J,"Revised")
this is very time consuming, so i am looking for a macro which will automatically calculate the data,
and present the weekly report in the correct format.
Looking forwards to your reply!