Change A Cell To Being Locked When Cell Equals Certain Value

Oct 14, 2007

The spreadsheet is password protected. The only cells that students can enter values into are the answer cells.

I am trying to figure out how to have a cell switch to being locked if the correct answer is inputted. ( I have a column that I hide that has the correct answers in it. Then I use a countif function to determine if the answer cell equals the inputted answer.)

View 9 Replies


ADVERTISEMENT

Change Cell Colour When The Protection Is Locked

Dec 3, 2009

Is there any way to change the pattern color of a cell (or a group of non-adjacent cells), say from No Color into Red if the cell(s) protection is locked (or unlocked)? Seems to me that the Conditional Formatting cannot work this way.

View 3 Replies View Related

Variable Locked Cells Dependant On Cell Change

Jan 12, 2010

I'm trying to make a spreadsheet more secure to prevent unintentional changes.

What i'm looking to do is to lock all cells so no changescan be made unless the user clicks column A.

Column A should remain unlocked and when the user clicks it i would like the entire row unlocked for editing (but only after column A is clicked)

I will run a macro to lock the entire sheet again once the sheet closes.

View 2 Replies View Related

Change Cell Color If Date Equals To Friday

Mar 18, 2009

is there anyway I can do a conditional formatting of something like that to color a cell if the date in the cell is a friday?

Dates will appear in a column like this:
16-mar
17-mar
20-mar (this is a friday, it should be red)
21-mar
21-mar

View 4 Replies View Related

Change Shape Fill To Picture When Another Cell Equals To 1

May 14, 2014

I have set up a rollover hyperlink so that when I hover over the cell it changes colour and creates a good effect. To do this I have another cell on the sheet that turns to 1 when the cell in question is hovered over.

I need a code so that when that cell displays the number 1. the object (which is rectangle 2) changes from white fill. to a picture I have saved on my desktop.

I cant quite figure out the coding and have been messing about with things like..

if cell range e.g a1 = 1 then rectangle 2 .userpicture " path " else .solid etc.

View 10 Replies View Related

Locked Cells :: Change The Cell Color On The Click Of A Command Button

Mar 1, 2010

i want the user to be able to change the cell color on the click of a command button. the worksheet is protected. when the user click the command button the active cell changes to red and offsets by 1. then the work sheet is locked again.

The two problems I am having is 1. I want the range to begin from row 10, column k to column FD. all cells down

the second problem is the current code allows me to edit locked cell columns A to J ...

View 9 Replies View Related

Excel 2003 :: How To Create / Run Cell A Equals Cell B Put Cell C Info In Cell D

Jan 26, 2006

I need to match data in cell A to cell B and then if they equal I need to copy the adjacent cell C to cell X . How do I set up a macro to do this automatically? I have over 5000 cells to compare and match up.. I have Office 2003.

View 7 Replies View Related

Counting If 1 Cell Equals X And Another Equals Y

Aug 8, 2014

I have tried a range of "sumproduct" and "count if" and I am still not having any luck.

What I would like excel to do is to count what surgery/hospital (B)is referring for what product (F)

help.xlsx

View 4 Replies View Related

Line Connecting A Cell To A Table....and Locked On The Cell

Jan 21, 2010

I have multiple data tables in one sheet...and each one has a chart...in that sheet. To better allow the viewer to coordinate quickly which data table corresponds to which cart...i want a line between them. Excel already has the draw line function, but if you move the chart around, the line doesn't move.

View 2 Replies View Related

Clear Cell Contents If Another Cell Equals String

Sep 23, 2013

I have a 700 line spreadsheet and would like to delete the cell next to another cell if it contains a certain string. I.e if A1 to A3 equals "Test" then i would like to delete the contents of B1 to B3, But if A2 equals "Completed" then only B1 and B3 should be cleared.

View 4 Replies View Related

Text Entered Into One Cell Equals Number In Different Cell

Jun 24, 2013

So I am having trouble figuring out how to do multiple text to equal multiple numbers. For instance right now I use =IF(E9="JOHN DOE","07", but I would like to have it where IF E9 = John Doe the cell shows 07, but IF the E9 = Sam Doe I want the cell to show 08, and the same IF E9 = Pat Doe the cell shows 09 and so on.

Meaning is there a way to have multiple functions go to a cell dependent on what is entered into E9 for example. I just want to have a number come out in one cell if a certain name is entered in a different cell. I loooked at this post [URL]....which got me started,

View 4 Replies View Related

Cell Locked Or Unlocked Depending On Another CELL Value

Mar 23, 2014

I'm trying as below:

If F3 contains specific word i.e. FCL then only cell K3 and L3 are unlocked or available for data input.

Additional information:

F3:F10002 contain data validation list

I need to apply above condition on K3:K10002 and L3:L10002

I did some search on this forum and I came to know above can only achieve through VBA only. Is there is any possible way without VBA? I'm not good with VBA etc

View 7 Replies View Related

Macro To Loop Until Cell Value Equals Another Cell Value?

Jan 8, 2013

I have a Random Number macro that will generate a random number (from 1 to 50) and place it into cell C4 of the worksheet. From there, various calculations are performed in the spreadsheet, ending with a value in cell AB5 and cell AB6. Depending on this random number, occasionally the value of cell "AB5" and cell "AB6" do not match. I want the macro to continue looping (generating another random number until a match is made between AB5 and AB6). I've tried various things but nothing is working to make it loop.

Below is the code for the random number macro.

VB:
Sub RandomNo()
Randomize
MyNumber = Int((50 - 1 + 1) * Rnd + 1)
Range("c4").Value = MyNumber
End Sub

View 4 Replies View Related

How To Delete Row If Cell Value Equals Cell Value In Another Sheet

Apr 27, 2013

I have some data in sheet 1 column A. However, the amount of data varies everytime. In addition, blanks cells may be present in column A as well.

I have some data in sheet 2 column A. The amount of data also varies everytime. In addition, blank cells maybe present as well.

what I need here is to match the values in column A sheet 1 to column A sheet 2, and if it matches to delete the entire row in sheet 1.

However, i want to keep all blank cells in column A sheet 1.

Sheet 2 blank cells to be removed if any.

how do I do that in VBA? A lot of forums talk about a specific value but none on non specific values.

View 6 Replies View Related

Equals Cell If Another Cell Is Empty

May 9, 2014

In cell D4 I have =Q8.

I only want it to =Q8 if cell H1 conatins a value and is not blank. If its blank I dont want anything in D4

What can I add here.

View 2 Replies View Related

Cell Equals Another Cell On A Worksheet

Oct 16, 2009

I'm trying to link data that is located on one spreadsheet and equal that to other information located in a different worksheet within the same file. See HPRP A Vital stats in E,F,G 12. I want to have the inforamtion from the spreadsheet Staff - Client Pre Screening in cell D,E,F,G 12. I tried the = function, but it is not working.

View 3 Replies View Related

IF Cell One And Two Contains Value Then Cell 3 Equals To Text

Feb 18, 2013

For example:
IF I3=A and J3=1 then K3=low
IF I3=A and J3=2 then K3=med

I'll be creating 10 rules like this.

In "I" column the values are A to E while in J column values are 1 to 5.
In K column I want to set if it is low,med or high depending on the value combination of I and J.

View 2 Replies View Related

Equals Last Cell

Apr 1, 2009

I have a sheet where there is a column showing all the totals of previous entries, however a couple of the cells shouldn't total but just show the last entry.

The cell is for an ongoing count of year to date applications received.

Can anyone tell me a formula that would look for the last data entered in a row and return that value

View 9 Replies View Related

Set Value Of Cell Equals To Looping Value

Nov 21, 2011

Im using this to loop through ID's for my code.

Sub Test2()
' Select cell A2, *first line of data*.
Range("A2").Select
' Set Do loop to stop when an empty cell is reached.
Do Until IsEmpty(ActiveCell)
' Insert your code here.
' Step down 1 row from present location.
ActiveCell.Offset(1, 0).Select
Loop
End Sub

How can I set a cell value = to what cell I the loop is currently on?

View 2 Replies View Related

If Cell Equals Zero Or Is Blank?

May 13, 2013

I have a formula =IF(D87=0,"",E87(D87-E87)/ABS(E87)) that returns a blank if D87 is Zero. if D87 and/or E87 is also Zero how would the formula look?

View 2 Replies View Related

Cell Equals Tab Name Of Formula?

Sep 25, 2013

I have sheets that return their name with the following formula:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)

All good, but on my summary sheet (that is summarising the data in each sheet) I want a cell to return me the name that each sheet is called, but simply saying ='SheetName'!B1 is not working

So how to I get the cell on my summary page to return me the text of the cell that is using the above formula.

View 3 Replies View Related

If Cell Is Blank Then Value Equals To 0

Nov 20, 2013

I have created a file in which other users use on a daily basis to input their time in and time out hours per activity. There are 16 rows allowing them to input up to 16 activities completed in a day. More often than not they do not use all 16 rows. My issue is that these users are very computer illiterate and will often delete the zero that is in their time in or time out hours on unused rows. This results in their total time displaying "####" I have explained to each of them multiple times to input a zero and their problems will be corrected, but they can't seem to grasp that concept.

How to allow the users to input their times, but if they hit delete on a cell and the cell is blank for it to automatically populate the cell with a zero no matter what the user does. I have all other cells with formulas on the sheet locked, but if I lock these cells then they can't input their times.

View 3 Replies View Related

If Cell Comes Out Negative It Equals To 0

Jan 31, 2014

I have a round formula,

=round(D65-E65,4)

The issue with this formula is if D65 is 0...then the result is a negative number. Just for clarity,

D65=0, E65=10%.....

So I end up with -10%. I can't have a negative number so I'm looking if the result is negative then the cell just equals 0. Is this possible with an IF formula?

View 3 Replies View Related

Delete Row If Cell Equals

Mar 11, 2007

I am familiar with the macro DeleteRowOnCell, but I want to delete rows when a cell in a selected column has a formulae which is returning empty text. I tried the macro DeleteRowsFastest without success.

View 2 Replies View Related

Flag When Cell Equals A Value

May 20, 2007

Is it possible to run a macro from an excel cell formula?

ie.

=IF(A1=1, RUN MACRO, 0)

View 9 Replies View Related

How To Copy A Locked Cell Without Formula

May 13, 2013

I have created a spreadsheet that will be viewed/used by various users (read only as I have protected the sheet except from three fields), although I would like to give them the ability to copy the contents of a specific cell that is protected.

I have tried to give them the ability to select the locked cells and then copy, but that means that the formulae in the cell is copied as well.

how I can let people copy a locked cell without the formulae?

View 2 Replies View Related

Entering Text In A Locked Cell

May 29, 2014

I have worksheet that contain values in column E and G and the total in column K. E and G are unlocked for manual input and column K contains the formula for the total and is locked. From time to time a certain row will not be applicable and before I started locking the cells in column K i would just put "not applicable". Now that it's lock I can't do that. My only option now is to put O in column E and G but I would rather put "not applicable" in column K. Is there a way around this. I was thinking of something along the line of a macro that would unlock the worksheet input the text and re lock it. The macro would have to lunch when a locked cell is selected or have a button that would launch the macro an would prompt for which cell the text would be entered. Is this possible.

View 7 Replies View Related

CommandButton Linked To Locked Cell

Oct 20, 2006

I have created a simple excel document with

Sub randomnumbers()
Range("B1").Formula = "=randbetween(1,100)"
Range("B1").Value = Range("B1").Value
End Sub

There is a button that i click and it creates a random number to cell 'B1'. it works fine, but i need to lock the document so that the user can only access one cell... 'A1' when i lock the document, and i click the button, it gives me a '400' error. i think it is because the button points to a locked cell.

View 5 Replies View Related

Run Code When Clicking Locked Cell

Nov 1, 2006

I have programmed a Form in VBA that initializes by clicking a button on a worksheet. The Form features combo boxes, text fields, and a couple option buttons. Once completed, the Form enters the values entered by the user (as strings) in contiguous colums in a single row. The worksheet is locked so as to not allow users to input values into the worksheet directly and bypass the Form.

The question:
Once a row is filled by submitting the Form, i want to allow a click event on that cell (like double-clicking, for example) to pop-up the Form, but containing the corresponding values from the cells in the matching combo boxes, text fields, option buttons. I want to do this so that I can allow modification on a row without letting the worksheet be modifyable without passing through the Form. Here's the code for submitting the Form values into the worksheet:

Private Sub cmdSubmit_Click()
ActiveWorkbook.Sheets("ALTEC Growth Report").Activate
Range("A7").Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(ActiveCell) = True
ActiveCell.Value = Trim$(txtName.Value)
ActiveCell.Offset(0, 1) = cboCC.Value
ActiveCell.Offset(0, 2) = cboProdServ.Value
ActiveCell.Offset(0, 3) = cboStatus.Value ..................

View 8 Replies View Related

Copy Row And Insert Above Where Value On Cell Equals To X

Apr 28, 2014

I am trying to insert a row every time a certain value appears in row.

Example attached.Example 1.xlsm

I need to copy the entire row that has the value 2 in column B and insert it in the line above (not fussy). It must be inserted and move all data in other rows accordingly.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved