How To Type Hyphen
Apr 26, 2013I got problem with typing hyphen in the cell. Every time I type it shows something else like C9, D6 and so on.
View 6 RepliesI got problem with typing hyphen in the cell. Every time I type it shows something else like C9, D6 and so on.
View 6 RepliesWhen I use sum function to add a cell containing a hyphen "-" I would get a #VALVE! result in cell 3.
i.e Cell 1 = 8 Cell 2 = -
How do you sort a column of numbers with hyphens?
Example #####-###-####.
I want to sort by the 3 middle numbers
Excel has went from using the backslash to using a hyphen. If I try to format the cell, all the date choices use the hyphen, what possibly changed?
View 3 Replies View RelatedI am trying to type in 4-1 in a cell but can't get it to work, what am i doing wrong.
View 2 Replies View RelatedPlease see attached file. In my column L, I'm trying to find a formula that would reference my column J to the table in the data tab. My problem is the data in column J has a hyphen (-) in the number ex.. 047-258-1 and the next tab does not have a hyphen in between the number...ex 0472581. The correct results in cell L3 would be Walmart. How can I adjust my formula to accommodate this hyphen. Can this also be reflected in my pivot table as well?
View 6 Replies View Relatedi have two columns with account numbers, i need one column with both account numbers, separated by a hyphen, see below the first line would be 10-15.
10 15
10 20
10 30
10 40
10 41
10 41
I have some data in the form of text w/ 8 letters. I'd like to insert a hyphen after the third character. Is this possible using a formula to populate an entire field? Example:
Current format: ABC01234
Desired format: ABC-01234
What is the formula to cover multiple different text that could come up? I could have an answer that is NA, Yes and also a blank cell and if I could I would like to have it set up as follows:
NA = -
Blank Cell = 0
Yes = 1
I am in need of a formula. I have a number like: 23847-2
I want a formula to take this number and add one to the number before the hyphen. I also want the single digit number after the hyphen to be able to be changed.
So in the end: i want the number copied to the next cell, add one to the portion before the hyphen. Then allow the number after the hyphen to be changed manually.
I am setting up a new chart of accounts, with the format xxx-yyyy, where xxx is a three digit department number, and yyyy is the expense account. I am building a spreadsheet to populate the new chart of accounts to be uploaded into our accounting software. I would like to have a cell that takes the xxx from one cell, adds a hyphen, and combines it with the yyyy value. The result would be xxx-yyyy format.
View 3 Replies View RelatedI want a format that does not accept the point and put the hyphen CPF.
I 123456789-10 format and desire that even putting the point, leave the cell in this format 12345678910.
I know I could use the replace function through the ctrl + l, most wonder if there's no way to customize the cell.
I have a spreadsheet in excel 2003 that has alot of model numbers listed in a single column with a dash. Is their any way I can remove the dash and seperate the numbers into 2 columns?
Current Spreadsheet
Model Number
199-001
200-003
210-081
This is what I'm trying to accomplish
Column B Column C
199 001
200 003
210 081
Some code below which I have inherited, basically its looping through one column of data and removing the text at the beginning before the hyphen eg. '123 - data text' to 'data text'.
HTML Code:
'Remove everything before the hyphen in the activity column
Dim SearchStr
Dim CharOffset As Variant
Range("c7").Select
[Code] ......
I need a VBA function to extract number sequences from a string and separate them with hyphens In the example below cell A1 has the value 'xx2 yyy34 zz515' The code must produce the value '2-34-515' from the above example I have the following function that extracts the numbers but need a way to separate the groups with a hyphen
Code:
Function parseNum(strSearch As String) As String
Dim i As Integer, tempVal As String
For i = 1 To Len(strSearch)
[Code]....
1. Is there a VBA Function equivalent to the FIND() function, If so What is it?
2. Let's say Im Putting a Date into a inputbox, what is the type # for date (Type:=?)??
I want to add a hyphen to 2 particular cells if they are blank. The form is populated from another software package with dimensions. If Columns D and E have any blank cells, want to insert a hyphen. Can't use VB because the particular software package will only output to a template with .xlt
If can't do with Conditional Format, then okay I can tell the inspectors to use add by hand
In my spreadsheet below I want to be able to enter a sales number for January, the value of cell F2.
I want cells F3 thru F12 to automatically calculate according to the "Growth Per Month" value in cell H1.
Example: If January sales are 20,000, then February should calculate to 21,000 (january * 105%).
Excel Jeanie HTMLSheet1
E F G H 1 2010 Per Month Sales XXX 5% 2 XXX XXX 3 February $ 10,000 4 March $ 5,000 XXX 5 April $ 2,500 6 May $ 1,250 7 June $ 625 8 July $ 313 9 XXX $ 156 10 September $ 78 XXX 11 October XXX 12 November $ 20 XXX 13 December $ 10 14 $ 39,990
Spreadsheet Formulas Cell Formula F3 =F2*10*H1 F4 =F3*10*H1 F5 =F4*10*H1 F6 =F5*10*H1 F7 =F6*10*H1 F8 =F7*10*H1 F9 =F8*10*H1 F10 =F9*10*H1 F11 =F10*10*H1 F12 =F11*10*H1 F13 =F12*10*H1 F14 =SUM(F2:F13)
I'm trying to write a Macro that, in the active sheet (which contains plenty of data), deletes rows according to several criteria, for example:
- if cell(i, ar1(j)) = ERROR, delete row i and shift 1 up
(ar1 is an array of column numbers)
- if cell(i, ar3(j)) = 0, delete row i and shift 1 up
(ar3 is another array of column numbers)
Etc.
The problem is that, when I run it, I get a "Type Mismatch" error message, and I don't understand why. Here is the
Sub Delete_invalid_rows()
Dim i%, j%
Dim Nr%, valid As Boolean, BYPdata As Boolean
Dim ar1, ar2, ar3, ar4 As Variant
Nr = 1379
ar1 = Array(11, 14, 19, 20, 22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 64, 65, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 104, 106, 107, 109, 112, 116, 126, 127, 128, 129, 131, 133, 134, 135, 136, 137, 138, 139, 140, 142, 143, 145)..............
As shown in the below image. I have some data from A13 to I 13. Currently if I put the cursor on A13 and press DELETE button then all the formatting from A13 to I13 goes off. But the data still remain there.
Is it possible then when I press DELETE the content of A13 then all the data from B13 to I13 should also get deleted ?
Excel Jeanie HTMLSheet2 *ABCDEFGHI13Key FieldEmp 11 2 4 8 5 3 7 Excel tables to the web >> Excel Jeanie HTML 4
I am trying to type in a number and have it populate in specified areas like on Monday then go to the next Monday an in put of the same value.
View 8 Replies View RelatedI am getting a type mismatch with the following:
HTML Code:
Private Sub Export2Pdf()
Dim sFileName As String
'Create file name
sFileName = Range("employeename").Value & " - Payslip" & " - " & _
Format(Range("enddate").Value, "dd mm yyyy")
[Code] ........
something to do with this:
HTML Code:
sFileName = Range("employeename").Value & " - Payslip" & " - " & _
Format(Range("enddate").Value, "dd mm yyyy")
I have used this code previously and it worked however I now get a type mismatch error in the line coloured red..
View 8 Replies View RelatedWhenever aiming to open, copy, or delete files, the following VBA code is rather a must
Dim SOMETHING
Set SOMETHING = CreateObject("Scripting.FileSystemObject")
in that we may then continue with either
SOMETHING.CopyFile (source), destination, True
or
SOMETHING.DeleteFile what_to_delete, True
etc, etc
The question: which type a variable is SOMETHING from above? Furthermore, could anybody please help me to understand why never seen in literature a complete declaration such as
Dim SOMETHING As what_type?
where I can find some documentation or information (exluding the Excel helpfile) about Excel's Array Type? There seems to be an inexplicable lack of information about it!
To be clear, when I say "array type", I mean the data type that the TYPE() worksheet function returns a value of 64 on.
Assume cell A1 is "ageioslop315555555138lkeameox". Is there a formula that I could use that could match 31555555138, and if it matches put the 31555555138 in cell A2. You can probably see where I am going with this, there is several thousand lines that has sporadic descriptions that I need to find out which ones have certain #'s that correspond with info. on our end.
I have a text box I placed on top of a label. Why a label, because I am using it to make a border around a couple of textboxes. The label is on top of an image. The textboxes don't take focus so to speak, as I can't select them. Instead the label is selected.
View 9 Replies View Related I've looked through the threads and have seen some Save As posts, but nothing that seems to fit my task. All I want to do is force the Save As file type to .xls (for some reason on our network, xlsm causes save errors... After looking through various posts, I found this:
VB:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If Not SaveAsUI Then
Exit Sub [code]....
The problem is this causes the Save As dialog box to show up twice... How I get the Save As dialog box to show up once?
Supposing I have a list where each data set appears multiple times. How do I by formula make a list of the unique values?
I've uploaded to show what I mean.
I am trying to create a document and i'm not sure if this is possible or not, but i'd like to type in a number in column A (1-10) and then in column B have a symbol appear corresponding to the number.
So if i type in 5 in Column A, Column B will have 5 squares pop up (or something along those lines), etc.