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

Dnoslo

New Member
Joined
Jan 2, 2017
Messages
2
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

open


Page 2

open



=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=””,)))
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
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
Joined
Jan 2, 2017
Messages
2
Hi FDibbins,

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

Thank you
 

Watch MrExcel Video

Forum statistics

Threads
1,122,463
Messages
5,596,284
Members
414,051
Latest member
tabecker

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
Top