Match two criteria to generate data in other format

lmmay

Board Regular
Joined
Jun 6, 2014
Messages
87
I produce a weekly work log of time spent on various Disasters for my Disaster Recovery Director. The Grant Administrator requires a monthly Management Hours report in a different format.

I wish to automate the process. I am presently using [IF(AND('Work Log'!C58=1819,'Work Log'!e58'MGMT HRS 9-14(HM)'!A6='Work Log'!A58),'Work Log'!E58,"")].
This is quite cumbersome, since it requires modifying each cell. Is there a Match formula to make my life easier?
Sheet 1 (9/1/14) is Col A57, Sheet 2 (9/1/14) is Col A6.
[TABLE="width: 1400"]
<tbody>[TR]
[TD="class: xl701006, width: 248"]Work Log[/TD]
[TD="class: xl151006, width: 113"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 154"][/TD]
[TD="class: xl151006, width: 65"][/TD]
[TD="class: xl151006, width: 80"][/TD]
[TD="class: xl701006, width: 248"]Management Hours[/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 45"][/TD]
[TD="class: xl151006, width: 42"][/TD]
[/TR]
[TR]
[TD="class: xl151006"]Sheet 1[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"]Sheet 2[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[/TR]
[TR]
[TD="class: xl631006, align: center"]DAY[/TD]
[TD="class: xl631006, align: center"]APPLICANT[/TD]
[TD="class: xl631006, align: center"]DR[/TD]
[TD="class: xl631006, align: center"]Description[/TD]
[TD="class: xl631006, align: center"]HOURS[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl671006, align: center"]DATE[/TD]
[TD="class: xl671006, align: center"]1819[/TD]
[TD="class: xl671006, align: center"]1918[/TD]
[TD="class: xl671006, align: center"]1975[/TD]
[TD="class: xl671006, align: center"]1861[/TD]
[TD="class: xl671006, align: center"]4100[/TD]
[TD="class: xl671006, align: center"]4124[/TD]
[TD="class: xl671006, align: center"]4143[/TD]
[TD="class: xl671006, align: center"]4160[/TD]
[TD="class: xl671006, align: center"]4174[/TD]
[TD="class: xl671006, align: center"]HRS[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Monday, September 1, 2014[/TD]
[TD="class: xl651006"]Newton County[/TD]
[TD="class: xl631006, align: center"]4143[/TD]
[TD="class: xl661006"]Reviewed email from[/TD]
[TD="class: xl631006, align: center"]1[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Monday, September 1, 2014[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]0.0[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Tuesday, September 2, 2014[/TD]
[TD="class: xl651006"]Carroll County[/TD]
[TD="class: xl631006, align: center"]4143[/TD]
[TD="class: xl661006"]Reviewing PW 019[/TD]
[TD="class: xl631006, align: center"]7[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Tuesday, September 2, 2014[/TD]
[TD="class: xl681006, align: center"]8.0[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]8.0[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Wednesday, September 3, 2014[/TD]
[TD="class: xl651006"]Newton County[/TD]
[TD="class: xl631006, align: center"]4143[/TD]
[TD="class: xl661006"]Printing, reviewing to r[/TD]
[TD="class: xl631006, align: center"]1[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Wednesday, September 3, 2014[/TD]
[TD="class: xl681006, align: center"]8.0[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]8.0[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Wednesday, September 3, 2014[/TD]
[TD="class: xl651006"]Carroll County[/TD]
[TD="class: xl631006, align: center"]4143[/TD]
[TD="class: xl661006"]Reviewing PW 019-re[/TD]
[TD="class: xl631006, align: center"]7[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Thursday, September 4, 2014[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]0.0[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Thursday, September 4, 2014[/TD]
[TD="class: xl651006"]Newton County[/TD]
[TD="class: xl631006, align: center"]4143[/TD]
[TD="class: xl661006"]Review PW 11[/TD]
[TD="class: xl631006, align: center"]2[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Friday, September 5, 2014[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]0.0[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Friday, September 5, 2014[/TD]
[TD="class: xl651006"]Carroll County[/TD]
[TD="class: xl631006, align: center"]4143[/TD]
[TD="class: xl661006"]Review PW 019[/TD]
[TD="class: xl631006, align: center"]6[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Saturday, September 6, 2014[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]0.0[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Monday, September 8, 2014[/TD]
[TD="class: xl651006"]Newton County[/TD]
[TD="class: xl631006, align: center"]4143[/TD]
[TD="class: xl661006"]Review PW 11, email[/TD]
[TD="class: xl631006, align: center"]8[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Sunday, September 7, 2014[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]0.0[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Tuesday, September 9, 2014[/TD]
[TD="class: xl651006"]Newton County[/TD]
[TD="class: xl631006, align: center"]4143[/TD]
[TD="class: xl661006"]Completed review of[/TD]
[TD="class: xl631006, align: center"]8[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Monday, September 8, 2014[/TD]
[TD="class: xl681006, align: center"]3.0[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"]5.0[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]8.0[/TD]
[/TR]
[TR]
[TD="class: xl641006"]Wednesday, September 10, 2014[/TD]
[TD="class: xl651006"]Arkansas VEC[/TD]
[TD="class: xl631006, align: center"]4160[/TD]
[TD="class: xl661006"]Sorting Documents fo[/TD]
[TD="class: xl631006, align: center"]8[/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Tuesday, September 9, 2014[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"]8.0[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]8.0[/TD]
[/TR]
[TR]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Wednesday, September 10, 2014[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl681006, align: center"]8.0[/TD]
[TD="class: xl681006, align: center"][/TD]
[TD="class: xl691006, align: right"]8.0[/TD]
[/TR]
[TR]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl641006"]Thursday, September 11, 2014[/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl661006"][/TD]
[TD="class: xl691006, align: right"]0.0[/TD]
[/TR]
[TR]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[TD="class: xl151006"][/TD]
[/TR]
[TR]
[TD="class: xl151006, colspan: 7"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Please check the formula you are using, The part in red seems to be incomplete

[IF(AND('Work Log'!C58=1819,'Work Log'!e58'MGMT HRS 9-14(HM)'!A6='Work Log'!A58),'Work Log'!E58,"")].
 
Upvote 0
Solution
Please check the formula you are using, The part in red seems to be incomplete

[IF(AND('Work Log'!C58=1819,'Work Log'!e58'MGMT HRS 9-14(HM)'!A6='Work Log'!A58),'Work Log'!E58,"")].

You are right. The formula actually reads:

=IF(AND('Work Log'!$C58=1819,'MGMT HRS 9-14(HM)'!$A6='Work Log'!$A58),'Work Log'!$E58,"")

Also, somehow when the HTML was created the DR numbers became erroneous. The first four should be 1819 and the last four should be 4160.
 
Upvote 0

Forum statistics

Threads
1,225,073
Messages
6,182,707
Members
453,132
Latest member
nsnodgrass73

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top