Check if cells contain in dynamic range from different sheet

goriamir

New Member
Joined
May 26, 2022
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
Hello, this is my first post in this forum. I am currently doing a mini attendance sheet for number of employees. I have two different sheets, "A" and "B".
In sheet B, there are a list of employees with each of them have 4 values (date).
In Sheet A, there are column of days of a month. I would like to mark "R" in the specific cell according from sheet B as shown for Employee 1 in the second picture.
My current formula for the cell in Sheet A is,

=IF(COUNTIF('B'!$E$5:$H$5,A!E$8)>0,"R","")

I would like to copy this formula down for Employee 2, 3, etc2 and the range in sheet refered change to according to the employee name.

I'm sorry if I didn't explain this correctly but whenever I pull down the formula from Employee 1, the range refered is still of Employee 1 and not Employee 2.
How can I make the range respond to the range Im pulling the formula to such as, Employee 2 in Sheet A will find if any date in the row include in range of Employee 2 in Sheet B.
 

Attachments

  • rd.PNG
    rd.PNG
    15 KB · Views: 8
  • attendance.PNG
    attendance.PNG
    49.7 KB · Views: 7
  • abe2.PNG
    abe2.PNG
    52.2 KB · Views: 8

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Will the employee names always be in the exact same order on both sheets?
 
Upvote 0
In that case you can use
Excel Formula:
=IF(COUNTIF('B'!$E5:$H5,E$8)>0,"R","")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,653
Messages
6,120,755
Members
448,989
Latest member
mariah3

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