JulioFuentes
New Member
- Joined
- Jul 6, 2011
- Messages
- 3
Hello. My Excel expert is away unexpectedly and my new boss needs something done right away (nice). I could really use some help! I hope this is clear.
Thank you!
Using Excel 2003. I would provide the 'real' workbook, but do not see how to attach a file in this posting. The problem is probably not that hard, but there is a lot of text here only to help make it clear.
The book has two sheets.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
In the Salaries and Benefits sheet Columns A and B refer to the other sheet named 'GEA Sal Sch'
EX: from Salaries and Benefits
A5 ='GEA Sal Sch'!$B$77 (displays the value 10.0)<o></o>
B5 ='GEA Sal Sch'!$E$77 (displays the value 68,887)<o></o>
<o> </o>
NOTE:<o></o>
1) Salaries and Benefits! Column A always references Column B in GEA Sal Sch!, but the Row referenced will differ.<o></o>
2) Each Row in Salaries and Benefits! Columns A and B always reference the Same Row in GEA Sal Sch!<o></o>
<o> </o>
***Here is the logic I need help incorporating:***<o></o>
<o> </o>
IF the value in Salaries and Benefits! column A = 10, then Salaries and Benefits! A and B remain unchanged - keep the same references<o></o>
EX: Since A5 = 10.0, then Salaries and Benefits! Row 5: A5 will remain ='GEA Sal Sch'!$B$77<o></o>
B5 ='GEA Sal Sch'!$E$77. No action taken.<o></o>
<o> </o>
IF the value in Salaries and Benefits! column A = 9.5, then Salaries and Benefits! A and B reference row increments by 1.<o></o>
EX: Since A6 = 9.5, then Salaries and Benefits! A6 must increment one ROW from ='GEA Sal Sch'!$B$76 TO ='GEA Sal Sch'!$B$77.<o></o>
AND Salaries and Benefits! B6 must increment one ROW from ='GEA Sal Sch'!$E$76 TO ='GEA Sal Sch'!$E$77.<o></o>
<o> </o>
ELSE<o></o>
Salaries and Benefits! A and B reference row increments by 2.<o></o>
EX: Since A7 = 6.0, then Salaries and Benefits! A7 must increment one ROW from ='GEA Sal Sch'!$B$69 TO ='GEA Sal Sch'!$B$71.<o></o>
AND Salaries and Benefits! B7 must increment one ROW from ='GEA Sal Sch'!$F$69 TO ='GEA Sal Sch'!$F$71.<o></o>
<o> </o>
<o>*** </o>
I have programming experince, but no VBA and not much Excel. I know how to write OFFSET and INDEX functions, but I do not know if they are useful for what I need to do, nor do I know if an Excel IF statement can use functions in place of the
value_if_true, value_if_false
I am wide open to suggestions, but I want to avoid making the end-user copy/paste any function, etc. unless it is very simple for them. I am hoping to automate the logic and cell updates as much as possible.<o></o>
Thank you!
Using Excel 2003. I would provide the 'real' workbook, but do not see how to attach a file in this posting. The problem is probably not that hard, but there is a lot of text here only to help make it clear.
The book has two sheets.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
In the Salaries and Benefits sheet Columns A and B refer to the other sheet named 'GEA Sal Sch'
EX: from Salaries and Benefits
A5 ='GEA Sal Sch'!$B$77 (displays the value 10.0)<o></o>
B5 ='GEA Sal Sch'!$E$77 (displays the value 68,887)<o></o>
<o> </o>
NOTE:<o></o>
1) Salaries and Benefits! Column A always references Column B in GEA Sal Sch!, but the Row referenced will differ.<o></o>
2) Each Row in Salaries and Benefits! Columns A and B always reference the Same Row in GEA Sal Sch!<o></o>
<o> </o>
***Here is the logic I need help incorporating:***<o></o>
<o> </o>
IF the value in Salaries and Benefits! column A = 10, then Salaries and Benefits! A and B remain unchanged - keep the same references<o></o>
EX: Since A5 = 10.0, then Salaries and Benefits! Row 5: A5 will remain ='GEA Sal Sch'!$B$77<o></o>
B5 ='GEA Sal Sch'!$E$77. No action taken.<o></o>
<o> </o>
IF the value in Salaries and Benefits! column A = 9.5, then Salaries and Benefits! A and B reference row increments by 1.<o></o>
EX: Since A6 = 9.5, then Salaries and Benefits! A6 must increment one ROW from ='GEA Sal Sch'!$B$76 TO ='GEA Sal Sch'!$B$77.<o></o>
AND Salaries and Benefits! B6 must increment one ROW from ='GEA Sal Sch'!$E$76 TO ='GEA Sal Sch'!$E$77.<o></o>
<o> </o>
ELSE<o></o>
Salaries and Benefits! A and B reference row increments by 2.<o></o>
EX: Since A7 = 6.0, then Salaries and Benefits! A7 must increment one ROW from ='GEA Sal Sch'!$B$69 TO ='GEA Sal Sch'!$B$71.<o></o>
AND Salaries and Benefits! B7 must increment one ROW from ='GEA Sal Sch'!$F$69 TO ='GEA Sal Sch'!$F$71.<o></o>
<o> </o>
<o>*** </o>
I have programming experince, but no VBA and not much Excel. I know how to write OFFSET and INDEX functions, but I do not know if they are useful for what I need to do, nor do I know if an Excel IF statement can use functions in place of the
value_if_true, value_if_false
I am wide open to suggestions, but I want to avoid making the end-user copy/paste any function, etc. unless it is very simple for them. I am hoping to automate the logic and cell updates as much as possible.<o></o>