Need Formula help

nicolemterrien

New Member
Joined
Nov 9, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I want to pull ONLY negative time delays PLUS zero times by physicians for each month: All Dr. MENDOZA's times that are 0 and below / negative for the month of October. I have tried the multiple formulas however, I either cannot include everything I want or the solution / answer is invalid or errors out.

DATE
10/3/23
10/4/23
10/3/23
10/7/23
10/3/23
10/20/23
10/4/23
11/1/23
11/3/23
10/5/23
11/7/23
11/3/23
10/30/23
10/6/23
10/7/23
10/10/23
10/11/23
10/11/23
10/11/31
10/11/35
10/12/23
10/12/23
10/12/23
10/13/23
10/13/23
10/13/23
10/13/23
10/14/23

ROOM
CVIR 1
CL 1
CVIR 2
CL 2
CVIR 4
CVIR 3
CVIR 2
CVIR 2
CVIR 1
CVIR 4
CVIR 3
CVIR 2
CVIR 1
CVIR 4
CVIR 1
CL 2
CL 2
CL 1
CVIR 2
CVIR 1
CVIR 3
CL 1
CVIR 4
CVIR 2
CVIR 1
CL 2
CVIR 4
CVIR 1

Patient Name
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john
smith, john

DOCTOR
MENDOZA
EDWARDS
ALAEDDINI
HOLSTE
RAMAKRISHNA
MENDOZA
ALAEDDINI
ALAEDDINI
ZICHAL
RAMAKRISHN
CHU
ABOU ZIKI
MENDOZA
RAMAKRISHNA
REPIC
MENDOZA
MENDOZA
MICALE
ALAEDDINI
HOLSTE
HARRIS
ANANTHRAM
RAMAKRISHNA
ABOU ZIKI
REPIC
ZICHAL
RAMAKRISHNA
REPIC

Sche Time
8:00
8:00
8:00
8:30
9:00
8:00
8:00
8:00
8:00
9:00
8:00
8:00
8:00
9:00
8:00
8:00
8:00
8:00
8:15
8:30
8:00
8:00
9:00
8:00
8:00
8:00
9:00
8:00

Start Time
7:54
7:54
7:48
8:20
9:17
7:58
8:24
7:43
8:00
8:46
9:41
8:57
7:58
8:46
8:17
8:00
8:01
8:33
8:31
8:42
7:36
7:49
9:17
8:48
8:15
7:59
8:46
8:05

Time Delay
-0:06
0:06
0:12
0:10
0:17
0:02
0:24
0:17
0:00
0:14
1:41
0:57
0:02
0:14
0:17
0:00
0:01
0:33
0:16
0:12
0:24
0:11
0:17
0:48
0:15
-0:01
0:14
0:05

 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Can I ask, how are you generating your time delay (what formula are you using in all the cells of that column ?)

The issue as I see it lies with your negative values - but we can't see how your formatting is.

Rob
 
Upvote 0
Can I ask, how are you generating your time delay (what formula are you using in all the cells of that column ?)

The issue as I see it lies with your negative values - but we can't see how your formatting is.

Rob
Sched Time = E
Start Time = F
=E2-F2
 
Upvote 0
Sorry, I'm not able to replicate your data, or what you say is the formula in column G in my test.

If you can use the "XL2BB" tool on this forum to actually post a copy of the spreadsheet it might make things a little easier for us to try and help solve.

thanks
Rob
 
Upvote 0
Maybe something like this:
Book1
ABCDEFGHIJKLMNO
1DATEROOMPatient NameDOCTORSche TimeStart TimeTime DelayMonth =10Doctor=MENDOZA
210/3/2023CVIR 1smith, johnMENDOZA8:00 AM7:54 AM-0.06DATEROOMPatient NameDOCTORSche TimeStart TimeTime Delay
310/4/2023CL 1smith, johnEDWARDS8:00 AM7:54 AM0:0610/3/2023CVIR 1smith, johnMENDOZA8:00 AM7:54 AM-0.06
410/3/2023CVIR 2smith, johnALAEDDINI8:00 AM7:48 AM0:1210/10/2023CL 2smith, johnMENDOZA8:00 AM8:00 AM0
510/7/2023CL 2smith, johnHOLSTE8:30 AM8:20 AM0:10
610/3/2023CVIR 4smith, johnRAMAKRISHNA9:00 AM9:17 AM0:17
710/20/2023CVIR 3smith, johnMENDOZA8:00 AM7:58 AM0:02
810/4/2023CVIR 2smith, johnALAEDDINI8:00 AM8:24 AM0:24
911/1/2023CVIR 2smith, johnALAEDDINI8:00 AM7:43 AM0:17
1011/3/2023CVIR 1smith, johnZICHAL8:00 AM8:00 AM0:00
1110/5/2023CVIR 4smith, johnRAMAKRISHN9:00 AM8:46 AM0:14
1211/7/2023CVIR 3smith, johnCHU8:00 AM9:41 AM1:41
1311/3/2023CVIR 2smith, johnABOU ZIKI8:00 AM8:57 AM0:57
1410/30/2023CVIR 1smith, johnMENDOZA8:00 AM7:58 AM0:02
1510/6/2023CVIR 4smith, johnRAMAKRISHNA9:00 AM8:46 AM0:14
1610/7/2023CVIR 1smith, johnREPIC8:00 AM8:17 AM0:17
1710/10/2023CL 2smith, johnMENDOZA8:00 AM8:00 AM0:00
1810/11/2023CL 2smith, johnMENDOZA8:00 AM8:01 AM0:01
1910/11/2023CL 1smith, johnMICALE8:00 AM8:33 AM0:33
2010/11/1931CVIR 2smith, johnALAEDDINI8:15 AM8:31 AM0:16
2110/11/1935CVIR 1smith, johnHOLSTE8:30 AM8:42 AM0:12
2210/12/2023CVIR 3smith, johnHARRIS8:00 AM7:36 AM0:24
2310/12/2023CL 1smith, johnANANTHRAM8:00 AM7:49 AM0:11
2410/12/2023CVIR 4smith, johnRAMAKRISHNA9:00 AM9:17 AM0:17
2510/13/2023CVIR 2smith, johnABOU ZIKI8:00 AM8:48 AM0:48
2610/13/2023CVIR 1smith, johnREPIC8:00 AM8:15 AM0:15
2710/13/2023CL 2smith, johnZICHAL8:00 AM7:59 AM-0.01
2810/13/2023CVIR 4smith, johnRAMAKRISHNA9:00 AM8:46 AM0:14
2910/14/2023CVIR 1smith, johnREPIC8:00 AM8:05 AM0:05
Sheet1
Cell Formulas
RangeFormula
I3:O4I3=FILTER($A$2:$G$29,(MONTH($A$2:$A$29)=$J$1)*($G$2:$G$29<=0)*($D$2:$D$29=$L$1))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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