Preventing Entry Of Commas Into Cells
Oct 5, 2006
I have a workbook that is going to be used as an offline 'database', recording issues being worked on and all the necessary details e.g. time logged, user, problem type, comments etc. A lot of this will include vba for automation and validation etc.
This will then be exported in comma seperated .txt format. So I don't want anyone putting a comma in a normal field within Excel. I'm sure I remember a way of blocking certain character entry a few years back when I was working on a similar problem. However, time is getting the better of me so is anyone able to help save me some time and point me in the right direction? Trying to find a suitable search string for this question is proving tricky.
View 3 Replies
ADVERTISEMENT
Mar 21, 2009
how to protect my spreadsheet from data entry errors.
I have a column of data that must be entered manually (column B). Sometimes, the entry in column B could have been calculated by running a formula run upon the data in column A. Sometimes it has to be entered manually.
Is there a way to use data validation or conditional formatting to make sure that the proper figure is entered into column B when it could have been calculated by a formula to avoid data errors?
View 9 Replies
View Related
Apr 11, 2007
How can I protect individual cells in a range from being deleted when I want to delete data from the surrounding cells??
View 3 Replies
View Related
Sep 28, 2009
if it is possible to prevent a listbox from showing blank cells.
I have selected a big range and many of the cells are blank. The reason is that I want the listbox to update automatically when I add a value to any of the blank cells.
Using the methods suggested by the posters here I was able to solve my problem. I had to modify my source data somewhat but it was well worth it.
View 11 Replies
View Related
Feb 28, 2014
I have a workbook used for scheduling purposes and you can add hours to it by typing in D+1 or D-1, etc. I want to prevent this from working and just ignore the cell if the cell contents say "DC". I've tried to adjust my formula but haven't had any luck. I've attached an example worksheet with the formula for an easier understanding.
Formula: [Code] .......
Attached File : Testsheet.xlsx
View 5 Replies
View Related
Aug 31, 2006
I've got a table that has to be manipulated by multiple users. Within the table I have several column ranges with validation lists (in drop down boxes) in order to limit responses. However, I'm finding that most of the users are pasting data in from other sources that may not have been in the validation list, or may be in a different format, etc., and it essentially undermines the reason for using the validation.
I've tried protecting the sheets using various options and tried looking around online for a solution, but I'm not finding how to get around this.
View 9 Replies
View Related
Feb 1, 2007
how do to count the number of occurrences of a text string in a range of cells, where some cell have comma delimited entries?
I am trying to count the number of times a project number is identified in a column of cells. However, in any row in that column a cell may have multiple project numbers referenced, separated by commas.
Using countif Excel thinks that the cell has a different entry and it won’t include it in the count even though the criteria string is in the cell.
View 9 Replies
View Related
Oct 4, 2007
I Need To Combine 2 Fields Into 1 Field Without Spaces Or Commas Between Them.
View 4 Replies
View Related
May 13, 2014
I receive a report that is generated by another program. One column contains the address, city, state, and zip (5 and 10 digit) with no coma separators. Macro that would add comas before the Zip, state, and city so that I can use the text to columns tool in excel.
here is an example of the column
7935 COUNCIL PL SUITE 200 MATTHEWS NC 28105
223 WRENWOOD LN CHARLOTTE NC 28211
1125 BIRCH ST APT A ROGERS CITY MI 49779-1406
PO BOX 1376 NEW YORK NY 10018
428 C ST APT 301 SAN DIEGO CA 92101
4682 MISSION BV SAN DIEGO CA 92109
I need it to look like this:
7935 COUNCIL PL SUITE 200 ,MATTHEWS ,NC ,28105
223 WRENWOOD LN ,CHARLOTTE ,NC ,28211
1125 BIRCH ST APT A ,ROGERS CITY ,MI ,49779-1406
PO BOX 1376 ,NEW YORK ,NY ,10018
428 C ST APT 301 ,SAN DIEGO ,CA ,92101
4682 MISSION BV ,SAN DIEGO ,CA ,92109
Then I can run the text to columns and it will split the text into 4 columns.
View 7 Replies
View Related
Dec 1, 2008
I have spreadsheet that contains about 25,000 rows of client addresses. The columns/data is set up as follows for example
ColumnA...........ColumnB..................ColumnC
Jim Smith..........123 Apple Road.........New York NY 10022-3456
Tina Jone..........456 Apple Road.........San Diego CA 12345-1111
Bob Smith..........789 Peach Lane........Seattle WA 59802-3344
Tim Smith..........4255 Lime Lane.........Missoula MT 59802-3333
I am having an issue with the vendor whom needs to do a mailing of all 25,000 clients. They have indicated that they require comma delimited data to create the mailing. In order to do this, I need to place a comma after the city and a comma after the state.
So as in the first row of data the cells looks like this:
New York NY 10022-3456
The vendor needs it to look like this:
New York, NY, 10022-3456
Is there a function and/or VBA procedure to put commas in where I need them?
View 7 Replies
View Related
Jan 24, 2008
I'm have a list of keywords from google adwords:
cabinet hardware
cabinet hardware knobs
cabinet hardware pulls
kitchen cabinet hardware
amerock cabinet hardware
antique cabinet hardware
These are all in A1, B1, C1, D1, E1, F1
I need to have them look like this: A1 cabinet hardware, cabinet hardware knobs, cabinet hardware pulls, kitchen cabinet hardware, amerock cabinet hardware, antique cabinet hardware. How do I do it? Im a COMPLETE Newbie when it comes to excell but I urgently need to figure this one out....how do I do it?
View 4 Replies
View Related
Jan 10, 2014
I have a column of contacts. Each contact has data spread out over many rows, most of which are blank. I would like all of the data spread out through the rows to be in one cell, delineated by commas (so I can import into another program).
Concatenating the cells works except that I end up with 20 commas for two strings of info.
Just so you understand I may have this:
Mary red blue yellow purple
Rob blue purple
Trey yellow
and I want it to look like this
Mary red, blue, yellow, purple
Rob blue, purple
Trey yellow
How should I go about this?
View 14 Replies
View Related
Feb 12, 2013
i am trying to import an excel document and then copy over some columns to another worksheet from the imported worksheet, using a macro. Everything imports and copies over fine except for one column that has cells that comprise of a list of number separated by commas. When these cells get copied over some of the values retain the commas but some of them (specially when there are a lot values separated by comma) gets changed to this format
From: 1,229,124,012,441,230
To: 1.22912E+15
From: 1044,1048,1052,1053
To: 1.0441E+15
From: 1279,1282,1286,1295,1299
To: 1.27913E+19
From:926,929,938
To: 926929938
I am trying to figure out whats happening here! Is there a max number of letters this column can take and if it exceeds that value, excel converts them to this format? Or is the formatting gets changed to something else while copying and pasting?
View 3 Replies
View Related
May 26, 2009
I am looking to create a macro that will create a new sheet when data is added on a summary sheet. Example.
1. Summary sheet called "Variations" contains columns that will contain the information needed for new sheet (Columns A to D)
2. When data is entered on "Variations" sheet: Column B, then macro automatically creates new sheet renamed to e.g. VO1 (Number used on "Variations" tab) and is a copy of "Master" tab.
3. Data entered in Column A to D on "Variations" tab is automatically entered onto new sheet created (e.g VO1). Shown is blue on attached file. Additional data is updated on "VO1" sheet and this then links back to "Variations" tab
View 6 Replies
View Related
Mar 20, 2014
I am working on a excel file that has a sheet that i want to convert to .csv. The sheet has formula's for the first three column that are warped an if statement that returns "" (blank) if certain conditions are not meet. However when i got to save the file as a csv i get a file with ",,,,,,," where there is no data. I would like to save csv and have only commas where this data.
Example
When i convert a sheet like
Firstname Lastname Password
Tim Cats Bo3n9x
it saves as
Firstname Lastname Password
Tim Cats Bo3n9x
,,,
,,,
,,,
In the .csv file.
Files i am current working on are attached.
View 13 Replies
View Related
May 15, 2007
I have a large spreadsheet, within which i am trying to remove commas from all cells. I get the error 'formula is too long' when I carry out the search. Some of the cells are >1024 characters in length and contain dates, text etc.
View 5 Replies
View Related
Jun 10, 2008
I have the following syntax in B1: "1,2,3,5,6". and I need VBA to take the very last number out of that list, and increase by four in single steps. For example: before the code: "1,2,3,5,6" and then after it "1,2,3,5,6,7,8,9." The code must be flexible, though, because it will be running within another Macro, and it must work whether the last number in the list is 1 digit ("...4,5,8"), 2 digit ("...34,35,36") or 3 digit ("...111, 113, 114"). Those three examples would be changed into "...4,5,8, 9, 10, 11" "...34,35,36, 37, 38, 39" "...111, 113, 114, 115, 116, 117".
View 4 Replies
View Related
Mar 20, 2014
I have a percentage in R3.
If I make an entry in D13 then I want the R3 to be duplicated into C27 otherwise C27 should be 0.
View 4 Replies
View Related
Oct 10, 2012
I've got a spreadsheet set up for a simple barcode scanning system. The user scans the barcode of the product when complete, and it logs it to a sheet along with a date & time timestamp. I'm then planning to use a v-lookup (barcode to product name) & pivot-table to count instances of 'product name' so that I can monitor what is being produced easier, nothing too tricky.
The problem I'm having comes from the products of the same spec having the same barcode, so data validation is hard to apply, as I can't 'not allow dupes' - the concern I have is that if the user unknowingly (or knowingly!) scans the same ticket twice, I think I've got 2 of a product when I've only got one. The idea I had was to lock all cells for a set time period (say 1 minute) after an entry so that it couldn't be accidentally scanned twice.
View 1 Replies
View Related
Aug 1, 2014
Is there a way to automatically move cells down after I entered data in it? This way I do not have to scroll all the way to the bottom of the list to add new data.
View 5 Replies
View Related
Oct 6, 2008
i have the following formula which counts various cells containing dates and i need to add in a count for 1 cell, BV21 but it needs to count 3 if theres a date and 0 if the cell is empty or reads NA
=COUNT(AS21:AX21,BH21:BN21,BR21:BU21,BW21:BZ21)+
(COUNT(AY21,BB21,BE21,BO21)>0)
+(COUNT(AZ21,BC21,BF21,BP21)>0)+(COUNT(BA21,BD21,BG21,BQ21)>0)
+IF(CB21>0,CB21,0)+IF(CD21>0,CD21,0)+IF(AP21="Y",2)[/size]
might be simple to some but it really has me stumped.
View 2 Replies
View Related
Feb 26, 2009
I want to limit data entry in a range of cells to Y or N (Upper Case)
I have tried data validation, list, but this still allows y or n, I want just Y or N
View 3 Replies
View Related
Feb 28, 2007
Using VBA how could I put a border around any cell that isn't empty within the range B1:C500. (Worksheet name - Floc BOM)
View 9 Replies
View Related
Jan 16, 2009
I have a spreadsheet in which has many different cells that need to be completed if another cell has data.
Examples
If the user inputs a name into A3, they must complete cells B3 thru D3. Cells B3:D3 contain different entry methods including a drop down list.
On the same sheet, if the user chooses GTD from a drop down list in cell U3, cells BA:BJ must be completed. And if they choose GCI from the drop down list in U3, they must complete cells BK:BR
View 9 Replies
View Related
Aug 9, 2008
Iam making some test report tamplet`s, in that when I select the material from drop down (ref enclosed xls file) all spec will be displayed. ·I want the sheet to be protected at the same time few cells to be allowed for data entry (cells marked with blue)· If sheet can`t be protected I want to hide the formulas and spec details used in it.
View 2 Replies
View Related
Sep 11, 2013
I am having a sheet where I keep track of when online surveys have been sent to users. The users enail address (column K) may be on the list for several times, but I need to make sure that there is at least a 7 days pause between sending the first mail and the second, depending on the visit date (column G).If there are less than 7 days between two entries with the same email address, the user is not qualified for taking another survey.
I was thinking to write an IF formula which returns either 1 or 0 and then let conditional formatting highlight and HIDE the row via a VBA loop.
View 3 Replies
View Related
Mar 14, 2014
Is there a formula that will allow me to look for the existence of any number value in a row of one worksheet and then return a specific number value in a cell on another worksheet? For example, if the formula finds any number value it will always return the number 15 to a cell on another worksheet.
View 3 Replies
View Related
Jun 13, 2008
I'm working on a employee evaluation form. I'm using a Pass/Fail system.
I have a cell designated for PASS & one for FAIL. In these cells, I would put
"YES" if they passed, "YES" if they failed that section.
How can I prevent someone from mistakingly entering Yes in both cells?
View 9 Replies
View Related
Dec 11, 2012
I've generated a sheet where, based on the total run hours of a generator set using a given fuel type, we can determine which engine to run on what fuel when. The problem I've run into is that if more than one engine has the same runtime, the chart returns just the lowest numbered engine and eliminates the remaining engine(s). What I'm trying to do is make it so that when this occurs, the suggested engines show up in numerical order. For example instead of 1, 1, and 1 showing up on the chart, something like 1, 2, and 5 will show when they all have 0 run hours. I've attached my chart below with some engines having the same runtimes. RunOrder.xlsx
View 5 Replies
View Related
Oct 26, 2009
Is it possible to prevent the VBA window from popping up if an error occurs when running a macro and the user then selects debug? I've locked the code for reading but I was still able to change the code and save it!
Basically, I want the code to be unchangeable unless done through a known password. What I don't want is some user who may accidently stumble upon the code and change it unwittingly (or voluntary).
View 5 Replies
View Related