nathansizemore
New Member
- Joined
- Dec 21, 2011
- Messages
- 40
Hello, I am back for some more help...
I am working on a scheduling Spreadsheet. I have more than 7 conditions, so I cannot do an IF. I have been reading around on how to do one testing String conditions, and have found a reply to a question that I think I can use, problem is I need it do something a bit different...
This is the thing I found:
Now, I am sure you Excel gurus know what that will do, so no need to explain. I have a similar case where I think I can use something like this, just unsure of the syntax involved.
Depending on what String is in the check field, I need it to do a calculation, but it needs to pull a number from the cell directly to its left, every time. Not sure on how to accomplish that. This is what I have so far...
This is a screen shot of my file...
<a href="http://www.flickr.com/photos/61552010@N08/6790957731/" title="Sampledata by nathansizemore, on Flickr"><img src="http://farm8.staticflickr.com/7167/6790957731_a503b6f4c7.jpg" width="500" height="281" alt="Sampledata"></a>
The Days cell displays the number of days it takes to complete a task based on the team size. The user defined function determines the variable for each team, but how do I make it pull the value from the Hours? I have the two cells highlighted in the picture for better understanding. I will be using this function at various points in the spreadsheet. The columns always stay the same, but the number of rows between the cells with data vary.
Thanks in advance for any help. I am using Excel 2007.
I am working on a scheduling Spreadsheet. I have more than 7 conditions, so I cannot do an IF. I have been reading around on how to do one testing String conditions, and have found a reply to a question that I think I can use, problem is I need it do something a bit different...
This is the thing I found:
Code:
Function Grades(Letter As String) As Integer
Select Case Letter
Case Is = "A+"
Grades = 15
Case Is = "A"
Grades = 14
Case Is = "A-"
Grades = 13
Case Is = "B+"
Grades = 12
Case Is = "B"
Grades = 11
Case Is = "B-"
Grades = 10
Case Is = "C+"
Grades = 9
Case Is = "C"
Grades = 8
Case Is = "C-"
Grades = 7
Case Is = "D+"
Grades = 6
Case Is = "D"
Grades = 5
Case Is = "D-"
Grades = 4
Case Is = "F+"
Grades = 3
Case Is = "F"
Grades = 2
Case Is = "F-"
Grades = 1
End Select
End Function
Now, I am sure you Excel gurus know what that will do, so no need to explain. I have a similar case where I think I can use something like this, just unsure of the syntax involved.
Depending on what String is in the check field, I need it to do a calculation, but it needs to pull a number from the cell directly to its left, every time. Not sure on how to accomplish that. This is what I have so far...
Code:
Function Days(name As String) As Double
Select Case Name
Case Is = "Staci"
Days = (CELL_DIRECTLY_LEFT/N4)/P14
Case Is = "Chris"
Days = (CELL_DIRECTLY_LEFT/N5)/P14
Case Is = "Mike"
Days = (CELL_DIRECTLY_LEFT/N6)/P14
....and so on...
This is a screen shot of my file...
<a href="http://www.flickr.com/photos/61552010@N08/6790957731/" title="Sampledata by nathansizemore, on Flickr"><img src="http://farm8.staticflickr.com/7167/6790957731_a503b6f4c7.jpg" width="500" height="281" alt="Sampledata"></a>
The Days cell displays the number of days it takes to complete a task based on the team size. The user defined function determines the variable for each team, but how do I make it pull the value from the Hours? I have the two cells highlighted in the picture for better understanding. I will be using this function at various points in the spreadsheet. The columns always stay the same, but the number of rows between the cells with data vary.
Thanks in advance for any help. I am using Excel 2007.