Return a TEXT value if certain TEXT is missing

steve89

Board Regular
Joined
Oct 4, 2015
Messages
152
I really need help with this formula. This is what I'm looking for

I'm writing a schedule but want to make it very automated for the managers. I have the following positions on my schedule: AM 1, AM 2, AM 3, AM 4, PM 1, PM 2 & PM 3. These positions are on everyday. In that specific space sequence. I want the sheet to know if column d9:d23 were missing any of those shifts to automatically return that exact missing shift. I know how to use in conditional formula but don't want color coding just want it to return the missing shift if these are suppose to be all the shifts for 1 day.

Thank you kindly all love this site great help and knowledgeable smart individuals
 
Re: Need help..Want to return a TEXT value if certain TEXT is missing

sorry had to learn how to use HTML maker there is the revised paste - missing shifts is great function but if you see on cell E20 and E31 there are duplicates - can i add to those formulas that show the same two shifts as there shouldnt be the same two shifts?
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Re: Need help..Want to return a TEXT value if certain TEXT is missing

Sorry, I still don't follow. In post 47 you said the problem was if there are empty cells its returns "missing 0". I can't see any of that in your sample post & in any case now you seem to be describing something different. :confused:

Further, the formulas shown refer to data on a sheet called 'Employee Data', which I cannot see.
Remember also that it is nearly two years since I had anything to do with this so it is completely unfamiliar to me again now.
 
Upvote 0
so sorry here is the other tab - so the two things are if there is no information in "Employee Data" cells A13:A29 which there isnt instead of putting " ' " to avoid seeing the erro "missing o" can there be a fix to that so its not saying "missing o" when the cell is empty and if there is a duplicate shift in the last example AM 1 listed twice is there a formula to show that shift is a duplicate and needs to be removed while keeping the "missing shift" alert?

Excel Workbook
A
2AM COOK
3PM COOK
4PR COOK
5AM 1
6AM 2
7AM 3
8AM 4
9PM 1
10PM 2
11PM 3
12PM 4
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Employee Data
 
Upvote 0
The question asking to remove the "missing o" is solved. But i still had a question as you can see on cells E20 and E31 there are duplicate shifts purposely done to try and figure out a formula on a separate cell that ensures the same shifts aren't listed twice based off of the data in "Employee Data" A2:A29. The formula needs to check E20:E32 (for this example) and ensure no duplicate shifts are entered.
 
Upvote 0
Could you put this in row 55? For column E it would be

=IF(AGGREGATE(14,6,COUNTIF(E20:E32,E20:E32)/((E20:E32<>"OFF")*(E20:E32<>"VAC")),1)=1,"OK","Duplicates")
 
Upvote 0
Thats truly amazing it works but can it name the shift that duplicated using whats provided below on the other sheet? similar to how the one formula says missing whatever shift is missing

Excel Workbook
A
2AM COOK
3PM COOK
4PR COOK
5AM 1
6AM 2
7AM 3
8AM 4
9PM 1
10PM 2
11PM 3
12PM 4
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Employee Data
 
Upvote 0
also when i put "N/A" on the schedule it says duplicate as two people arent available those days. Thats why i was think the formula would be best referencing the above sheet instead
 
Upvote 0
this is what we have so far you see how the formula has missing and it names the shift cant your do the same for a duplicate by naming the shifts

Excel Workbook
D
20OFF
21AM 1
22VAC
23AM 4
24AM 3
25N/A
26AM 2
27PM 1
28PM 3
29PM 2
30OFF
31PM 4
32OFF
53
54 
55NO DUPLICATE SHIFTS
MASTER UNIVERSAL SCHEDULE
 
Upvote 0
Like this?

Excel Workbook
DE
20OFFAM 1
21AM 1N/A
22VACVAC
23AM 4AM 3
24AM 3OFF
25N/AAM 4
26PM 1PM 1
27AM 2OFF
28PM 3N/A
29OFFVAC
30OFFPM 1
31PM 4AM 1
32PM 2OFF
33
34
53
54
55OKDuplicates: PM 1, AM 1
Duplicate Shifts
 
Upvote 0

Forum statistics

Threads
1,215,102
Messages
6,123,099
Members
449,096
Latest member
provoking

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