Vlookup and Countifs??? (I think?)

Mark McInerney

Active Member
Joined
Apr 4, 2012
Messages
266
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a column with employee names (A1:A5), and to the right of these names are the days that they have requested off (B1:F5).

ABCDEF
1John1/1/195/2/19
2Mark3/6/1910/10/19
3Barry22/5/1931/12/1915/4/1917/8/193/8/19
4Kevin6/6/19
5Clare29/6/19

<tbody>
</tbody>

On another area of the worksheet there is a employee schedule.

100ABCDEFGH
1011/1/192/1/193/1/194/1/195/1/196/1/197/1/19
102John****

<tbody>
</tbody>


Cell A102 is a drop down linked to the data in a1:a5. I need to be able to conditional format cell b102, as the date stored in b101, is in the row of data from a1:f1.

The value in cell a102 can and will change.

Any help appreciated.

Thanks - Mark.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Select B102 to end of that row & use
=MATCH(B$101,INDEX($B$1:$F$5,MATCH($A102,$A$1:$A$5,0),0),0)
 
Last edited:
Upvote 0
I use formula as picture for range ("B12:H13"), you can use for range a lot.

Formula as:

Code:
[B12]=NOT(ISERROR(MATCH(B$11,INDIRECT("B" & MATCH($A12,$A$1:$A$5,0) & ":F" & MATCH($A12,$A$1:$A$5,0)),0)))

As Picture:

56Gaio8.jpg
 
Upvote 0
Hi Guys,

Thanks so much for taking the time to review my query - worked a treat! Many Thanks again - appreciated.

Best - Mark.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,170
Members
449,296
Latest member
tinneytwin

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