# Help with an If/And/Else Formula (I Think)

#### Dnoslo

##### New Member
Hello I am trying to create a formula for an employee schedule. I have all the employee's listed on the first page, then on the subsequent pages are the different calendar weeks and positions. So I'm trying to create a formula that says If Kim McLane is in any of these cells on the Jan 1-7 tab, then put the appropriate position under her name for that day on the overview tab. This is the formula I wrote, but there is something wrong with it.

Page 1

Page 2

=IF(‘Jan 1 – 7’!C4=”Kim McLane”, “WC Pos 1”,IF(‘Jan 1 – 7’!C4=””, IF(‘Jan 1 – 7’!C6=”Kim McLane”, “WC Pos 2”,IF(‘Jan 1 – 7’!C6=””, (‘Jan 1 – 7’!C8=”Kim McLane”, “WC Pos 3”,IF(‘Jan 1 – 7’!C8=””,)))

### Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

#### FDibbins

##### Well-known Member
1st, I think you left out an IF...
=IF(‘Jan 1 – 7’!C4=”Kim McLane”, “WC Pos 1”,IF(‘Jan 1 – 7’!C4=””
, IF(‘Jan 1 – 7’!C6=”Kim McLane”, “WC Pos 2”,IF(‘Jan 1 – 7’!C6=””
,IF (‘Jan 1 – 7’!C8=”Kim McLane”, “WC Pos 3”,IF(‘Jan 1 – 7’!C8=””,)))

2nd, you could probably do this with a MATCH, something like ...
="WC Pos "&match(”Kim McLane”,‘Jan 1 – 7’!C4:C8,0)

#### Dnoslo

##### New Member
Hi FDibbins,

You might be right. I'll give it a try in the morning.

Thank you

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,424
Messages
5,837,157
Members
430,479
Latest member
mamush200

### 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.

### Which adblocker are you using?

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

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