Match/Index between two sheets using VBA

SwiftM

New Member
Joined
Sep 11, 2021
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Hope you are all well.

I have a question regarding the subject above and would really appreciate your help :)

I have two sheets (Sheet1 and Shifts)
I am making an annual shift spreadsheet that automatically calculates the shift pattern for the year. Once the shifts are calculated in "Sheet 1" for Team 1, Team 2, Team 3, Team 4 and Team 5, I believe I need to use the Match Index function so that the newly calculated shifts for Team 1, Team 2 etc are copied across to range E8:AI20 in Sheet "Shifts", but only when the value in cells C8:C20 in this sheet match Team 1, Team 2 etc as these cells are dynamic. I have attached some screenshots of my sheets to help you understand what I mean.

Sheet 1 snippet
1686572237257.png


Sheet "Shifts" snippet
1686572912167.png


Thanks for any help you can provide.

Many thanks,
SwiftM
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,215,098
Messages
6,123,082
Members
449,094
Latest member
mystic19

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