Value from list depending on conditions for Google sheets

yomarcos

New Member
Joined
Aug 13, 2021
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I have been working on this for 2 days straight and I can't figure it out.

I have a list of employees. Depending on the dates and hours needed for every project I get True or False if there is a conflict. I want a formula that provides me with an alternative when there is a conflict. So in H2 the next option should be James. Thomas is in conflict but Daniel (next on the list) is also in conflict. Please help!!

1628870282829.png
 

Attachments

  • 1628869523585.png
    1628869523585.png
    10.6 KB · Views: 8
  • 1628870102701.png
    1628870102701.png
    43.5 KB · Views: 8
Last edited by a moderator:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I have 2 more questions!!
Same table without column B (everyone from the same team). How do I do that?
When it gets to the end of the list, I get "". How can I introduce a message in there without adding it to the end of the list?
?
 
Upvote 0
Didn't understand your question. Please, show a data sample along with expected results

M.
 
Upvote 0
Sorry!!

There are 2 changes.
1) There is only one team now.
2) When I allocated every employee, I don't have anymore. So I want it to tell me that

1628884935247.png
 
Upvote 0
Try
=ArrayFormula(IFERROR(IF(--F2=0,"",INDEX(A$13:A$18,SMALL(IF(ISNA(MATCH(A$13:A$18,$E$2:$E$10,0)),ROW(A$13:A$18)-ROW(A$13)+1),COUNTIF(F$2:F2,F2)))),"NOBODY ELSE"))

M.
 
Upvote 0
Try
=ArrayFormula(IFERROR(IF(--F2=0,"",INDEX(A$13:A$18,SMALL(IF(ISNA(MATCH(A$13:A$18,$E$2:$E$10,0)),ROW(A$13:A$18)-ROW(A$13)+1),COUNTIF(F$2:F2,F2)))),"NOBODY ELSE"))

M.
Thank you!! This is exactly what I needed!!
I tried adding the IFERROR to the previous formula and I failed. Can you please help me again?
 
Upvote 0
IFERROR should work on any formula even on a Google sheet. Don't know why didnt work for you.

M.
 
Upvote 0
This worked for me in a Google sheet
H2 copied down
=ArrayFormula(IF(--G2=0;"";INDEX(INDEX(A$13:B$18;0;MATCH(B2;A$12:B$12;0));SMALL(IF(ISNA(MATCH(INDEX(A$13:B$18;0;MATCH(B2;A$12:B$12;0));F$2:F$10;0));ROW(INDEX(A$13:B$18;0;MATCH(B2;A$12:B$12;0)))-ROW(A$13)+1);COUNTIFS(B$2:B2;B2;G$2:G2;G2)))))

M.
Hi Marcelo, This works really well but I found a problem with it. It only goes through the list once. What I mean is, as I mentioned on the original post, Thomas is in conflict but Daniel (next on the list) is also in conflict but when Daniel or Thomas become available again depending on dates, they don't get suggested as alternatives even though there is no conflict
 
Upvote 0

Forum statistics

Threads
1,223,993
Messages
6,175,836
Members
452,674
Latest member
psion2600

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