pcvchriskmg
Board Regular
- Joined
- Feb 10, 2010
- Messages
- 118
Good Morning,
I'm helping a colleague with some expense report issues and I think Excel can help systematically solve some of the problems.
In a nutshell, people are trying to claim expenses when they are not allowed to.
For example, people can only claim expense 'X' if they have traveled 'Y' miles.
My idea is that the user will need to enter in the number of miles traveled. Based on that number, Excel will "unlock" a cell (H3 for example) where the person can then enter a value to claim an expense. It would look like this:
User enters miles traveled in cell 'A1" - User enters '20' for example
"IF statement" evaluates the value '20' against value in cell 'B1' - '50' for example (number of miles user must travel in order to claim expense) - Excel determines that 20 is less than Y (50)
Excel does not unlock cell 'H3" and therefore user cannot enter in value.
User changes miles traveled to '60' (in cell 'A1') 60 > 50, so "IF statement" unlocks cell 'H3' and user can enter a value into cell 'H3' to claim the expense.
I have two questions: 1) Is what I have described possible? Basically, an IF statement being able to unlock cells. 2) For the problem I initially described, is there an easier way to design the solution in Excel?
Thanks in advance,
Chris
I'm helping a colleague with some expense report issues and I think Excel can help systematically solve some of the problems.
In a nutshell, people are trying to claim expenses when they are not allowed to.
For example, people can only claim expense 'X' if they have traveled 'Y' miles.
My idea is that the user will need to enter in the number of miles traveled. Based on that number, Excel will "unlock" a cell (H3 for example) where the person can then enter a value to claim an expense. It would look like this:
User enters miles traveled in cell 'A1" - User enters '20' for example
"IF statement" evaluates the value '20' against value in cell 'B1' - '50' for example (number of miles user must travel in order to claim expense) - Excel determines that 20 is less than Y (50)
Excel does not unlock cell 'H3" and therefore user cannot enter in value.
User changes miles traveled to '60' (in cell 'A1') 60 > 50, so "IF statement" unlocks cell 'H3' and user can enter a value into cell 'H3' to claim the expense.
I have two questions: 1) Is what I have described possible? Basically, an IF statement being able to unlock cells. 2) For the problem I initially described, is there an easier way to design the solution in Excel?
Thanks in advance,
Chris