Formula Suggestions - Multiple Criteria

Jonek2020

New Member
Joined
Nov 25, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi Experts

Please help

I am an office 365 user and I need suggestions on what formula to use for this scenario.
I have quite large data sets so I need the most efficient formulas that will not crash my workbook (+-30000 rows 69 columns).

Scenario
I need to be able to determine if a person worked on a specific day. Each person can work at multiple locations on the same day and must check in and out at each location throughout the day.
The assumption is that if all locations for that person on the day have a blank time in and blank time out that the person did not work. In that case I want the formula to return DID NOT RUN, if either condition is not blank then the formula needs to return RUN.

I have tried a sumproduct formula which evaluates all rows that are blank as TRUE which I can possibly use as part of a formula.
But that is as far as I have got as I don't have much experience with doing nested formulas
 

Attachments

  • Formula Help.png
    Formula Help.png
    32.3 KB · Views: 11

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
The assumption is that if all locations for that person on the day have a blank time in and blank time out that the person did not work. In that case I want the formula to return DID NOT RUN, if either condition is not blank then the formula needs to return RUN.
What about if a person has only checkin or only checkout???
refer to person B in store 13....
 
Upvote 0
Hi
What about if a person has only checkin or only checkout???
refer to person B in store 13....
If a person only has 1 check in or out the status is run. Only blank times for in and out are counted as did not run.
 
Upvote 0
how about....
Excel Formula:
=IF(AND(D1="",E1=""),"Did not Run","Run")

Book1
ABCDEF
1Person AStore 119/10/208:0012:00Run
2Person AStore 219/10/2012:0114:00Run
3Person AStore 319/10/2014:01Run
4Person AStore 419/10/2017:00Run
5Person AStore 519/10/20Did not Run
6Person BStore 920/10/208:0017:00Run
Sheet1
Cell Formulas
RangeFormula
F1:F6F1=IF(AND(D1="",E1=""),"Did not Run","Run")
 
Upvote 0
How about
+Fluff v2.xlsm
ABCDEF
1
2Person AStore 119/10/202008:00:0012:00:00Run
3Person AStore 219/10/202012:01:0014:00:00Run
4Person AStore 319/10/2020Run
5Person AStore 419/10/202008:00:00Run
6Person BStore 519/10/2020Did not run
7Person BStore 920/10/202008:00:0017:00:00Run
8Person CStore 120/10/2020Did not run
9Person DStore 319/10/202008:00Run
10
Main
Cell Formulas
RangeFormula
F2:F9F2=IF(COUNTIFS(A:A,A2,C:C,C2)=COUNTIFS(A:A,A2,C:C,C2,D:D,"",E:E,""),"Did not run","Run")
 
Upvote 0
The countifs formula works perfectly for what I need as a start. I am now inspired to expand the selection for more criteria to identify the more complex elements that need to flag as Check.
That is going to be tricky but I am going to give it a go ...
Thank you so much!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
The countifs formula works perfectly for what I need as a start. I am now inspired to expand the selection for more criteria to identify the more complex elements that need to flag as Check.
That is going to be tricky but I am going to give it a go ...
Thank you so much!
(y)(y)(y)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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