I want to force the sheet user to enter only a "0" or a "5" in a cell and have it show only one of those numbers.
I had used the formula =IF(cell>=5, 5,0) but cannot have the formula reside in the cell and show the result there.
Select the cell(s), then click Data -> Validation.
On the settings Tab, in Allow box choose List.
In the Source box enter 0, 5.
This will only allow these 2 numbers to be entered into the selected cell(s).
There are many other validation combinations you can explore, this is the quickest way I found.
Hope this helps.
- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
Hi I dont really have much to do with Excel as I essentially build and repair and install, gosh I still type with two fingers!! Now below I have provided a link to Microsoft . Ways to count values in worksheets etc. If the problem persists try to update Office with what ever sercice packs are required and see if this helps. the link is http://office.microsoft.com/en-au/excel-help/ways-to-count-values-in-a-worksheet-HA010287849.aspx and I do hope it helps. Cheers
Here's what you are looking for. Browse it and you can find it there all you want for shortcut keys. Follow this link below:
Microsoft Excel Shortcut keys Enter data by using shortcut keysToPress
Complete a cell entryENTERCancel a cell entryESCRepeat the last actionF4 or CTRL+YStart a new line in the same cellALT+ENTERDelete the character to the left of the insertion point, or delete the selectionBACKSPACEDelete the character to the right of the insertion point, or delete the selectionDELETEDelete text to the end of the lineCTRL+DELETEMove one character up, down, left, or rightArrow keysMove to the beginning of the lineHOMEEdit a cell commentSHIFT+F2Create names from row and column labelsCTRL+SHIFT+F3Fill downCTRL+DFill to the rightCTRL+RFill the selected cell range with the current entryCTRL+ENTERComplete a cell entry and move down in the selectionENTERComplete a cell entry and move up in the selectionSHIFT+ENTERComplete a cell entry and move to the right in the selectionTABComplete a cell entry and move to the left in the selectionSHIFT+TABWork in cells or the formula bar by using shortcut keysToPressStart a formula= (EQUAL SIGN)Cancel an entry in the cell or formula barESCEdit the active cellF2Edit the active cell and then clear it, or delete the preceding character in the active cell as you edit the cell contentsBACKSPACEPaste a name into a formulaF3Define a nameCTRL+F3Calculate all sheets in all open workbooksF9Calculate the active worksheetSHIFT+F9Insert the AutoSum formulaALT+= (EQUAL SIGN)Enter the dateCTRL+; (SEMICOLON)Enter the timeCTRL+SHIFT+: (COLON)Insert a hyperlinkCTRL+KComplete a cell entryENTERCopy the value from the cell above the active cell into the cell or the formula barCTRL+SHIFT+" (QUOTATION MARK)Alternate between displaying cell values and displaying cell formulasCTRL+` (SINGLE LEFT QUOTATION MARK)Copy a formula from the cell above the active cell into the cell or the formula barCTRL+' (APOSTROPHE)Enter a formula as an array formulaCTRL+SHIFT+ENTERDisplay the Formula Palette after you type a valid function name in a formulaCTRL+AInsert the argument names and parentheses for a function, after you type a valid function name in a formulaCTRL+SHIFT+ADisplay the AutoComplete listALT+DOWN ARROW
Make sure, when you entr a formula that you hit the ENTER key instead of just moving to tyour next cell. To have all numbers added or moved, use the"Special" application, or change the value. Such as -if you are working in text mode and you enter numbers, they are only numbers in text mode. They don't have a value. Correct the cells to reflect numbers. Right click, format cell - select what you want.
In the Design view for your form element (eg textbox), go to the Data Tab. Look at the options for: Input Mask, Validation Rule and Validation Text. You can use any combination of these to force a user to enter something in the field. If you just want to check that the contents of the element has a non-zero length, then you can write an event (Events tab) to check the length of the values entered. If 0, then throw a message box and re-focus the cursor on the textbox.
The cell I created this formula in was Sheet 3 Cell C9 - to show the different sheets A2 is the cell I want to look up Sheet1.A3:D27 is the range of cells that contains the data I want to return, The first column relates directly to cell C9 is Sheet 3. I locked the first cell in my range as I wanted to apply the same formula across other cells hence the $ 2 is the number of the column that has the data I want to return, I had a choice in this formula of 4 columns 0 is the value to complete the formula
I will suggest you to create small application in .net for ths which will add some value and process your data;If you want to use Excel only make a master sheet with details and use it in other excel sheets
IF(B6<>"", : If B6 is not equal to nothing, ie. it equals something
SUM((B6+D6)-(B5+C6)), : Set the value as per the equation
"") : Otherwise set the value to nothing.
Of course, this only checks that there is a value in B6. Depending on that value (and that of the other cells) you could still get a negative result. The way to avoid this would be to use the following:
Since you are searching the data by the phone number , first select all the data in the spreadsheet and sort it in ascending order by the phone number. Then, assuming you have 5 columns of data A through E, and the phone numbers are in column E, with row 1 occupied by column headings, use the following formula in cell F2=IF(E2=E1,"Duplicate",1)
Drag this formula down column F till the end of your data Select the entire data and do an auto filter In column F filter the data by Duplicate and delete all these rows What remains should be unique data