If statement linking two tabs

Gummyworms1234

New Member
Joined
Jul 18, 2019
Messages
28
I am trying to make employee works schedules for first shift and I want to change cells based off of what's in a different tab using an if statement. I want the if statement to change any cell with a number 8 in it to change to the number referenced in the location column of the corresponding row or if it has the word off in the cell, change to show x in the cell.

The formula I'm currently trying but isn't working for me is IF(ISNUMBER(Sheet4!B7),Sheet4!A7,"x")

The first image I've attached is an example of how the schedules typically looks in the first tab and the second image is how I want it to look in the second tab.

Thanks for the help!
 

Attachments

  • snip 1.PNG
    snip 1.PNG
    9.8 KB · Views: 5
  • snip 2.PNG
    snip 2.PNG
    9.5 KB · Views: 5

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,052
Latest member
Fuddy_Duddy

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