Trying Again... Seeking assistance with criteria based sort and filter.

Status
Not open for further replies.

xoenix

New Member
Joined
Feb 17, 2015
Messages
15
I posted prior. However, I could not get the solution I was looking for. I have a spreadsheet w/ approximately 40K lines of data. The data is formatted into 3 columns – employee name; week ending; avg. hours worked.

Is there a way for me to filter this data in such a way that it omits employees who do not have any hours or entries for the prior two weeks? BUT here's the catch. I need to keep those that do without omitting the entries entries for the other remaining weeks. Let me explain.

In the example below, such filtering would only pull Bob Smith because he has hours the week ending 7/28 and the week ending 8/4 (while still keeping the entries for 7/7, 7/14, and 7/21). However, the filtering would omit Mary Moore because she has no hours these dates. Looking for the most efficient way to sort this large amount of data given the criteria above. Any help you can provide would be greatly appreciated and will have my eternal gratitude! Please note that I cannot attach the spreadsheet here. I do not see that as an option.


[TABLE="class: cms_table"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Week Ending[/TD]
[TD]Avg. Hours Worked[/TD]
[/TR]
[TR]
[TD]Bob Smith[/TD]
[TD]07/07/19[/TD]
[TD]8.10[/TD]
[/TR]
[TR]
[TD]Bob Smith[/TD]
[TD]07/14/19[/TD]
[TD]7.50[/TD]
[/TR]
[TR]
[TD]Bob Smith[/TD]
[TD]07/21/19[/TD]
[TD]5.50[/TD]
[/TR]
[TR]
[TD]Bob Smith[/TD]
[TD]07/28/19[/TD]
[TD]6.25[/TD]
[/TR]
[TR]
[TD]Bob Smith[/TD]
[TD]08/04/19[/TD]
[TD]8.25[/TD]
[/TR]
[TR]
[TD]Mary Moore[/TD]
[TD]07/07/19[/TD]
[TD]9.00[/TD]
[/TR]
[TR]
[TD]Mary Moore[/TD]
[TD]07/14/19[/TD]
[TD]8.50[/TD]
[/TR]
[TR]
[TD]Mary Moore[/TD]
[TD]07/21/19[/TD]
[TD]7.75[/TD]
[/TR]
</tbody>[/TABLE]


Here's the raw data I'm working with:

https://www.mrexcel.com/forum/redir...auRyw_SXS3TTS2XiO0D1HePzRLJs/view?usp=sharing
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,748
Messages
6,180,721
Members
452,995
Latest member
isldboy

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