formula help with text "yes, "no" already have formula just need it revised

steve89

Board Regular
Joined
Oct 4, 2015
Messages
152
hello i have this formula

=IFERROR(IF($BQ$24=13,IF($BL$26=0,"yes","no")&TEXT($BL$26/BL$26,),"NO"),"yes")

i want the formula to know the following because it works to an extent
if BL26 = 0 then "NO"
if BQ24 = 13 then "YES"


thank you
 
=IF(TEXTJOIN(", ",,IF(COUNTIF(D10:D52,'Employee Data'!$A$2:$A$29),"",IF('Employee Data'!$A$2:$A$29<>"",'Employee Data'!$A$2:$A$29,"")))="","","Missing: "&TEXTJOIN(", ",,IF(COUNTIF(D10:D52,'Employee Data'!$A$2:$A$29),"",IF('Employee Data'!$A$2:$A$29<>"",'Employee Data'!$A$2:$A$29,""))))

Ok, it looks like doing the same thing for the first half works too. Copy this formula and give it a try.
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
works amazingly perfect thank you - have another question as you can see the way its setup its alerts me when im missing a shift based off of whats is plugged in on "Employee Data." I want the formula to know as well if Am 1/Pm 1 is there it should not say both shifts are missing cant figure it out at all. Another question i have is if a shift is missing it alerts me is there a formula that tells you "duplicate shifts are on such as example two AM 1 shifts when only need 1. i know your helping me alot and thank you again
 
Upvote 0
works amazingly perfect thank you - have another question as you can see the way its setup its alerts me when im missing a shift based off of whats is plugged in on "Employee Data." I want the formula to know as well if Am 1/Pm 1 is there it should not say both shifts are missing cant figure it out at all. Another question i have is if a shift is missing it alerts me is there a formula that tells you "duplicate shifts are on such as example two AM 1 shifts when only need 1. i know your helping me alot and thank you again

For the first question, I'm not entirely sure I understand what you are asking. What should the following examples display(assume all other shifts are present):

[A]
AM 1
PM 1

Result?


AM 1
missing PM 1

Result?

[C]
PM 1
missing AM 1

Result?

[D]
missing AM 1 and PM 1

Result?

Second question, can this be done in a separate formula?
 
Upvote 0
thank you and sorry for the confusion - so at times an individual covers two shifts in this example Am 1/ PM 1 is what my schedule would show. The formulas currently know that if any ONE of these is shown on the schedule then nothing is missing. That being said i can't put in this example again Am 1/PM 1 in "Employee Data" tab A2:A29 because then it will always say im missing that shift. What the formula should know that if these occasions occur then those shifts are filled. for you second question yes it can be done in a second formula
 
Upvote 0
So, if "AM 1/PM 1" shows up in your shift list instead of "AM 1" and "PM 1" individually, then it should not show those as missing, correct?
 
Upvote 0
Do you have any limitations as to the layout of the sheets and how the problem might be solved? I'm not sure I can figure out the "AM 1/PM 1" issue and still incorporate it into the original formula. (I tried one thing and it is not working) And the other issue, about counting duplicate shifts, it might be more easily solved with a few separate formulas.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

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