| View previous topic :: View next topic |
| Author |
Message |
JonnyBee Newbie

Joined: 11 Feb 2007 Posts: 2
|
Posted: Sun Feb 11, 2007 6:44 pm Post subject: Merging formulas into cells with data |
|
|
Hi
Im a newb OO user, and have got 2 question, the most important being the one in the header.
1)I have quite a few cells already filled with data, but now am in need of a formula to modify that data based on inputs from other cells. The formula is as follows:
=IF('Order Form'.$M9="y";1.1*(DATA/1.1)*(100%+(10%/(1+$D$7)));(DATA/1.1)*(100%+(10%/(1+$D$7))))
Where DATA is what is needed to be input
So, instead of manually going through each cell and copying all my old data into the new formula(and taking hours doing so), Id like to know if there is a way of automating it.
2)Was wondering if there is a way of locking out cells based on another cells value.
For example:
If A1="y", then B1 is locked from user input and shows blank
If A1="n", then B1 is unlocked and a user entry is allowed.
Any help is appreciated.
Thanks in advance |
|
| Back to top |
|
 |
noranthon Super User

Joined: 07 Jul 2005 Posts: 3318
|
Posted: Sun Feb 11, 2007 11:21 pm Post subject: |
|
|
The first is straightforward. Put your data in a cell (say, N9) and substitute the cell address N9 for DATA.
You could do the second with Format >Conditional Formatting. It would involve creating a Style (F11) called, say, _Locked.
You would also have to modify the Default cell style so as to remove all selections on the Cell Protection tab. Right-click "Default" and choose "New" to create and "Modify" to alter. You would then to need to activate Cell Protection using Tools >Protect Document >Sheet.
You need to study Help and consider whether you want to do all that. Once set up, conditional formatting would apply the _Locked style if your condition was met. _________________ search forum by month |
|
| Back to top |
|
 |
JonnyBee Newbie

Joined: 11 Feb 2007 Posts: 2
|
Posted: Tue Feb 13, 2007 8:10 pm Post subject: |
|
|
Thanks for your reply noranthon.
1)having a separate area with just my data and then linking it wasnt really what i wanted initially, but after thinking about it if i hid all the linked cells from showing my original data it would still look good and no one would really notice them.
2) This one was a little trickier. I was almost fully successful with the conditional formatting except for one thing. The protection doesnt want to stay on in my style using the conditional formatting. i can format any other cell manually and keep it protected, but when i use a protected style within a conditional format it wont stick, even though any backgrounds or borders i put into the same style do. |
|
| Back to top |
|
 |
|