southcali12
New Member
- Joined
- Sep 22, 2015
- Messages
- 28
Hello,
I am trying to create an IF statement for column H to determine an available time for each client.
In column H, I am only looking at the preferred columns (B,D,F). If there are more than three duplicate times per column, I want column H to return with "Look at Preferred Options" so that way I know I have to look at their preferred availability. However, if there are not three or more duplicate times per column, then I want it to return with the preferred value for each client.
The formula I have right now in column H is: =IF(COUNTIF(B:B,B3)=3,"Look at Preferred Options",IF(COUNTIF(D:D,D3)=3,"Look at Preferred Options",IF(COUNTIF(F:F,F3)=3,"Look at Preferred Options",(B3,D3,F3))))
However, I understand that what I have underlined and bolded above for when the statement is false is not correct, but am lost at how to fix it so that it will look through the preferred times and return the preferred value. I hope that made sense!
Reference of what my sample looks like:
[TABLE="width: 812"]
<tbody>[TR]
[TD]Client
[/TD]
[TD]Preferred
[/TD]
[TD]Alternate
[/TD]
[TD]Preferred
[/TD]
[TD]Alternate
[/TD]
[TD]Preferred
[/TD]
[TD]Alternate
[/TD]
[TD]Selected Time
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]10/26/2015
[/TD]
[TD]10/26/2015
[/TD]
[TD]10/27/2015
[/TD]
[TD]10/27/2015
[/TD]
[TD]10/28/2015
[/TD]
[TD]10/28/2015
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Tom
[/TD]
[TD]4:00 - 5:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]3:00 - 4:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]Look at Preferred Options
[/TD]
[/TR]
[TR]
[TD]Sally
[/TD]
[TD]4:00 - 5:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]2:00 - 3:00 PM
[/TD]
[TD]Look at Preferred Options
[/TD]
[/TR]
[TR]
[TD]Maggie
[/TD]
[TD]
[/TD]
[TD]12:00 - 1:00 PM
[/TD]
[TD]6:00 - 7:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]#VALUE!
[/TD]
[/TR]
[TR]
[TD]Joe
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]10:00 - 11:00 AM
[/TD]
[TD]8:00 AM - 9:00 AM
[/TD]
[TD]
[/TD]
[TD]#VALUE!
[/TD]
[/TR]
[TR]
[TD]Lily
[/TD]
[TD]4:00 - 5:00 PM
[/TD]
[TD]1:00 - 2:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]Look at Preferred Options
[/TD]
[/TR]
[TR]
[TD]Harry
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]1:00 - 2:00 PM
[/TD]
[TD]4:00 - 5:00 PM
[/TD]
[TD]
[/TD]
[TD]#VALUE!
[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to create an IF statement for column H to determine an available time for each client.
In column H, I am only looking at the preferred columns (B,D,F). If there are more than three duplicate times per column, I want column H to return with "Look at Preferred Options" so that way I know I have to look at their preferred availability. However, if there are not three or more duplicate times per column, then I want it to return with the preferred value for each client.
The formula I have right now in column H is: =IF(COUNTIF(B:B,B3)=3,"Look at Preferred Options",IF(COUNTIF(D:D,D3)=3,"Look at Preferred Options",IF(COUNTIF(F:F,F3)=3,"Look at Preferred Options",(B3,D3,F3))))
However, I understand that what I have underlined and bolded above for when the statement is false is not correct, but am lost at how to fix it so that it will look through the preferred times and return the preferred value. I hope that made sense!
Reference of what my sample looks like:
[TABLE="width: 812"]
<tbody>[TR]
[TD]Client
[/TD]
[TD]Preferred
[/TD]
[TD]Alternate
[/TD]
[TD]Preferred
[/TD]
[TD]Alternate
[/TD]
[TD]Preferred
[/TD]
[TD]Alternate
[/TD]
[TD]Selected Time
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]10/26/2015
[/TD]
[TD]10/26/2015
[/TD]
[TD]10/27/2015
[/TD]
[TD]10/27/2015
[/TD]
[TD]10/28/2015
[/TD]
[TD]10/28/2015
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]Tom
[/TD]
[TD]4:00 - 5:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]3:00 - 4:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]Look at Preferred Options
[/TD]
[/TR]
[TR]
[TD]Sally
[/TD]
[TD]4:00 - 5:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]2:00 - 3:00 PM
[/TD]
[TD]Look at Preferred Options
[/TD]
[/TR]
[TR]
[TD]Maggie
[/TD]
[TD]
[/TD]
[TD]12:00 - 1:00 PM
[/TD]
[TD]6:00 - 7:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]#VALUE!
[/TD]
[/TR]
[TR]
[TD]Joe
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]10:00 - 11:00 AM
[/TD]
[TD]8:00 AM - 9:00 AM
[/TD]
[TD]
[/TD]
[TD]#VALUE!
[/TD]
[/TR]
[TR]
[TD]Lily
[/TD]
[TD]4:00 - 5:00 PM
[/TD]
[TD]1:00 - 2:00 PM
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]Look at Preferred Options
[/TD]
[/TR]
[TR]
[TD]Harry
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]1:00 - 2:00 PM
[/TD]
[TD]4:00 - 5:00 PM
[/TD]
[TD]
[/TD]
[TD]#VALUE!
[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: