Add Sheet, Copy Data With Validation
Aug 26, 2008
Their is sheet in which some online data is comeing.
#1 I have to copy that data in another worksheet and its name shud be last 3 characters of the sheet in which data is comeing.
Say for example data sheet is abcd_2781 so new sheet name shud be 781
#2 now i have to copy the data based on certain validation
the sheet has 14 colums
the data keep coming in....every time it comes with a unque ID.
but when it comes there is a colum which tell us three operations
0=NEW
1=change
2=DELETE
And so when ever we copy data it shud only copy 0,1,2 it shud not copy new, change or delete.
Now there is one more colum in which their is entry ID, it carried diff ID for NEW transactions. But when ever their is change or delete it will be same what ever was generated when it was new. so the validation shud be
when its 1= change it should match its Entry ID and delete the complete ROW with all previous same ID keep this only
When its 2= Delete it should match its Entry ID and Delet the complete row with all same including itself.
i am attaching the input and out put data
Input data Output data
MDUpdateAction MDEntryID MDUpdateAction MDEntryID
0=NEW 100302 0 100302
0=NEW 100303 0 100305
0=NEW 100304 0 100306
0=NEW 100305 0 100314
0=NEW 100306 0 100313
0=NEW 100314 0 100315
0=NEW 100313 0 100316
0=NEW 100315 0 100293
0=NEW 100316 1 100291
0=NEW 100291
0=NEW 100292
0=NEW 100293
2=DELETE 100303
2=DELETE 100292
2=DELETE 100304
1=CHANGE 100291
View 9 Replies
ADVERTISEMENT
Nov 30, 2009
i'm trying to do (for the past couple of days manually) is copy the names from the 2nd sheet to the 1st sheet but need to make sure that the proper location ID match that of the 1st sheet. If two names is assigned to the same location, a new line will be added to the 1st sheet but never allow if the location ID do not exist.
<1st Sheet>
A1, B1, C1, D1
ID, Name, Loc ID, Location, contact, date
1011,-, 101, 1/F, RM101,-
1012,-, 102, 1/F, RM102,-
1013,-, 104, 1/F, RM104,-
1014,-, 203, 2/F, RM204,-
<2nd Sheet>
Name, Loc ID, date
Thomas,101,10/03/09
Anthony,101,11/02/09
George, 102,11/25,09
Susan,203,10/31/09
Carrie,103,11/20/09
View 4 Replies
View Related
Dec 17, 2008
I need to get data copied from sheet1 to sheet2
depending on selection in a validation list.
The data is on the same row and all the same range.
So it would look something like this.
A B C
Fruit Orange Apple Pear
Veg Potato Carrot Onion
Animal Bear Cow Dog
I have the data in A in a dynamic range and validation list.
I need all the data copied from the specific rows ie
choose Animal from the validation list in Sheet2!A1 and
the entire row Bear Cow Dog get copied to Sheet2!B1, Sheet2!C1, Sheet2!D1.
The second problem I think is a lot more complex.
So the same scenario above but this time its a multi select on Sheet3.
I need to be able to select two (or more depending on Fruit and Animals to display in A1, A2 and then their valid options to appear in B, C and D
View 9 Replies
View Related
Jan 20, 2009
Perhaps an easily resolved issue, but one that stumps me. I'm building a spreadsheet that allows users to enter a date in a cell (A1). I want to restrict entries to only permit the date as MM/DD/YYYY, to include leading zeros, if necessary, so that the entry is ten digits long.
Then, I want that user entered date to transfer to another cell (B1) and transformed to the date with leading and trailing asterisks (*MM/DD/YYYY*). That entry will be displayed in bar code font. Cell B1 is to be generated by the spreadsheet, so that the user only makes the date entry in cell A1.
Formatting A1 as a date field presented many problems, to include an inability to select the ten-digit format. So I've formatted this cell as a custom cell, which works well in tranforming user entries such as 1/1/09 to the required 01/01/2009.
Problem 1: I can't get the data validation error alert feature to work properly. I set the condition to allow text length equal to 10, and every entry I try produces the error message. I've also set the condition to allow custom data using the formula MM/DD/YYYY. That also produces the error message regardless of entry.
Problem 2: I can't figure out the formula to add the asterisks to the front and back of the date for cell B1. The closest I can get is the asterisks with the date converted to a number.
View 4 Replies
View Related
Mar 26, 2009
Is it possible in data validation to have a list from other sheet? Example:my list is in Sheet of the same workbook.
View 9 Replies
View Related
Jun 16, 2009
I want to have a four sheet database for a client list. Sheet one would be the "master sheet" and will have a column that has a validation drop down with the values "current client", äctive prospect",""dead deal", etc. I want the information from the master list to automatically move to the corrisponding sheet(s) when the validation is chosen.
View 9 Replies
View Related
Sep 26, 2013
Template is created where the users copy/paste the data from other file. Data validation has been performed with the following steps:
1. Macro inserts the vlookup formula into column A, which isused for validating data that is entered by user from column B to E.
2. If the data is incorrect the N/A will be displayed in column A and invalid data will behighlighted in red color in column B.
3. This validation goes through the loop and after the loop is finished the pop message will be displayed and macro should stop so the user can correct the data.
4. After the user correct the data, the macro needs to run again to make sure there is no further errors. If there are no errors, thehighlighted cells should be cleared out of color and pop.
Here is the code that runs by command button:
Private Sub CommandButton1_Click()
Call FindNA
End Sub
Sub FindNA()
Dim ResultRange As Range
Dim ResultCell As Range
Dim iRow As Integer
[Code] ......
View 1 Replies
View Related
May 1, 2014
I want to prevent copying and pasting over cells with data validation as this means the validation is overwritten. To get around this I've selected all the cells with data validation and unlocked them, then protected the worksheet with all boxes ticked apart from format cells, columns and rows.
This prevents copy/pasting from overwriting data validation but it doesn't prevent data being pasted in that doesn't meet the validation criteria.
So for example, say -1 is in cell A1, with no data validation. In B1 there is data validation, which doesn't allow negative numbers to be entered. If I copy and paste A1 into B1, the data validation isn't overwritten, but it doesn't stop the non validated data (-1) from being entered! If I then double click on B1 and press enter it recognises the validation criteria is not met.
View 3 Replies
View Related
Jun 2, 2009
I m using Data/Validation function in Excel2003? Is it possible to have reference list of drop down input from another sheet? I recorded the macro for this function and had the following result
Sub Macro1()
Range("A1").Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$C$2:$C$6"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
End Sub
How can I change reference List from the same sheet $C$2:$C$6 to "sheet2!$C$2:$C$6" or it is a limitation for this function?
View 3 Replies
View Related
May 5, 2014
What would be the correct syntax for pulling information to the input message box from another sheet?
Code:
Sub test_data_validation()
'
' test_data_validation Macro
'
Dim nrows As Integer
Dim i As Integer
Sheets("sheet1").Activate
[Code] .........
View 2 Replies
View Related
Mar 27, 2009
I set up a spread*** with drop-down menus for some of the cells. The user can only select values from that list and an error message pops up when something is typed it that is not in the list (via Data Validation
Error Alert).
So this works all fine ... except if the user copies and pastes a cell with a different drop-down menu into a cell overwriting the existing validation.
I cannot totally lock the work*** and if I lock the cells with the drop-down menus nothing can be changed. So how can I prevent this from happening? Is there a way to block all copy/paste operations that are copying the validation? I know that with the Paste Special I can have cells copied without the validation.
View 14 Replies
View Related
Mar 19, 2013
I am currently working in an excel file for which i want to create a macro. I am using colomn F as the base from which it should be determined whether a row should be copied. In colomn F the user can select three options through data validation. If 'completed' is selected, the whole row should be copied to the second sheet, and each copied row should be pasted to the next empty row. The data on the source sheet starts at row 11 and should be copied to sheet 2, starting from row 11 as well.
View 5 Replies
View Related
Mar 31, 2014
Is there any vba codes that can show tab/sheet that is based on the filter selection.
For example:
Cell A1 have a data validation of Apple, orange and Mango
I have 3 tabs named Apple, orange and Mango.
So every time I select Apple on the main in page filter. Apple tab will show. and if orange then orange tab will show.
View 3 Replies
View Related
Dec 30, 2008
I am running into an odd issue and hope someone might be able to shed some light.
I have created several lists on one sheet in a workbook and have assigned named ranges to each individual list. So far, so good.
On various other worksheets, I have created Data Validation rules to allow users to select the relevant data from drop-down lists. (using formulas such as =List1, =List2, etc. in the Source box to capture the named ranges I had created).
Everything works perfectly...EXCEPT for one worksheet, which continues to give me the error message, "You may not use references to other worksheets or workbooks for Data Validation criteria." Can anyone explain why this error would only occur on one worksheet and work fine for all the other sheets? I'm perplexed!
View 3 Replies
View Related
Apr 13, 2014
On Sheet1 I'm attempting to auto populate specific cells in columns B,C & D with information found in Data Validation lists (found on Sheet2) based on the "value" chosen from a list in column A. For instance,
If A2=Pig Then B2=Slop, C2=Pen, D2=Food
Is this best accomplished through VBA or a basic Function?
View 5 Replies
View Related
May 14, 2014
Originally I had a file with multiple tabs to sort data, this was becoming very ineffective so what I have done is modified the original WB posted into the desired new format. The WS PSM-04-03A is a vlookup based report that used to pull data from each tab based upon the WS Name (the code is still their) what I have done is combined the WS and made a column(ColumnD) for what used to be the WS Name. All WS have besides "Home" and "PSM-04-03A" have been combined into 1 WS and the title for the data from the original sheet names was added to columnD of "Recommendations" in the new file. (i.e. I did not add all files just some so you could see what I was getting at).
So using the two WBs as an example the Isomeration Unit/MEK Dewaxing Unit/ROSE Unit tabs have been combined into one tab and a new columnD added to signify what used to be done with the "tab". Now if you look at the validation on WS "PSM-04-03A" on the first WB it utilizes the WS Names to populate a list in cell A4 and cell C4 then populates with all columnA items from that WS. Now that I have combined the data I still need the validations to populate the same. So A4 in the new WB would populate with all non repeats of the unit in ColumnD of the WS "Recommendations" and then cell C4 would populate with the filtered columnA results based upon the columnD choice.
OLD FILE : (PSM-04-03) PHAR Tracking v2.xlsm
NEW FILE : (PSM-04-03) PHAR Tracking Modified.xlsm
View 2 Replies
View Related
Jul 25, 2013
I have just opened a sheet in work and this phenomenon has occured. Basically the data validation: list appears to be referencing a sheet that doesn't exist! My initial thought is that the original sheet name had been changed, but on trial the list seems to change reference. I've checked that the sheets aren't hidden
View 2 Replies
View Related
Dec 11, 2012
I am using excel 2007
I am attempting to put a drop down list using "Data Validation". I can get it working when my list is on the same sheet (sheet 1) and the column of cells I want the drop down list to show up in....(you know..when the drop down list shows up in each individual cell)......BUT...when I put the list on another sheet (sheet 2) and try to do the "Data Validation" back on sheet 1, excel won't let me go highlight the list on sheet 2.
I even tried writing sheet2 and the range and that still doesnt work.
View 1 Replies
View Related
Feb 14, 2013
I found this code and am trying to use it to update the filter in my pivot table (sheet 6), based on the data validation selection in sheet 1, but when I make my selection on sheet 1, nothing happens.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim ws As Worksheet
Dim pt As PivotTable
Dim pi As PivotItem
Dim strField As String
strField = "Region"
[code]....
View 3 Replies
View Related
Aug 19, 2009
I'm trying to figure a to enforce dual data validation on a single cell. That is, I need to restrict the user to entering only a decimal value, only if a particular other cell (say A2) is blank. To put it another way, if A2 is blank, the user can enter a decimal value, but if A2 is not blank, the user cannot enter anything. I can use Data Validation to enforce either the decimal restriction or the ISBLANK, but I'm not sure how to make them work together.
View 2 Replies
View Related
Mar 12, 2009
I want to restrict the value entered on a sales sheet to force the value to be over 15% margin. In column M you enter a value in column N it report the margin. I want to force the value in M to give a minimum 15% in column N or report an error.
View 3 Replies
View Related
Apr 18, 2009
I want to be able to copy a name from one sheet (Available Players), paste it to a cell in another sheet (Round 1 through Round 20). The cell that will be copied is fixed but the place where it will be pasted will be different and may be on a different sheet.
also i would like to change the color of the copied cell to "greyed" out or cut if it can not be greyed out. I have created a button and put in a macro that i created but have been having problems with it, generic 1004 errors that i can not figure out. i am attaching the document.
View 8 Replies
View Related
Jan 15, 2009
I have attached a 97-2003 .xls file with data for multiple store locations on sheet 1, and the desired result on sheet 2. I am actually using excel 2007, but I dont think I need any special features that it provides.
I will try to explain the issue here without opening the attachment.
Here is an example of the Data on Sheet1
View 13 Replies
View Related
May 26, 2013
I am trying to put togther a VBA form button click to do the following: I have several customer names all in master sheet A1 - A300. I want the code to notice that there is a new customer and generate a new sheet, naming the sheet the customers name and copying and paste the entire sheet named 'worksheet' to this newly generated sheet.
View 2 Replies
View Related
Mar 30, 2014
Example, I have a sheet named DATA1, I want to add a new worksheet, copy a certain range from the DATA1 sheet to the new sheet and rename it the same name DATA1 and delete the old DATA1 sheet.
Also, the sheetname will be unknown, the macro must get the sheet name first.
View 2 Replies
View Related
Jun 13, 2014
Ok so i have 2 sheets. Sheet 2 is a form that needs to be printed.sheet one will have data pasted into it by the user. The data will be placed in column a and b. If a has data in it then so will b. Now I need the macro to identify if data is in a then the macro needs to then copy a and paste special into A18 on sheet2 then copy b and paste into A6 on sheet2 then print sheet2. Repeat this process to every row as long as A has data in it.
View 3 Replies
View Related
Jul 8, 2014
update code based on a dynamic range of cells, which worked! I want to drop a csv file into one sheet, and copy the data to another sheet. However, if I drop a new csv file in, and there are fewer rows, the old rows aren't deleted. For example, if my first set of data had 10 rows, and the new has 8, the extra two rows are still there.
[code]
With Sheets("Raw Data")
.Range("A10", .Range("A" & Rows.Count).End(xlUp)).Copy ActiveSheet.Range("A12")
.Range("B11", .Range("B" & Rows.Count).End(xlUp)).Copy ActiveSheet.Range("B12")
.Range("E11", .Range("E" & Rows.Count).End(xlUp)).Copy ActiveSheet.Range("C12")
.Range("F11", .Range("F" & Rows.Count).End(xlUp)).Copy ActiveSheet.Range("D12")
.Range("H11", .Range("H" & Rows.Count).End(xlUp)).Copy ActiveSheet.Range("E12")
End With
[code]
View 2 Replies
View Related
Jul 29, 2014
How to create macros. I need to copy a certain group of cells from one sheet to another, and then do it for x number of times. I'm just using the record function and now i'm lost. Here is the code i currently have:
Sheets("Mapping QTR2").Select
Range("B137:D230").Select
Selection.Copy
Sheets("ExpDB_Q1").Select
[Code] ....
Also, column C is blank. i would like to get the values from another list in the same workbook, say "branch list". I would like to populate Column C with one specific branch for each "batch", if that makes any sense...
View 3 Replies
View Related
Jul 9, 2009
I have Worksheet 1, with columns A to E. I would like a row to be copied to Worksheet 2, as soon as cell F in Worksheet 1 is populated. Also the row to be deleted from Worksheet 1.
So, as soon as F1 in worksheet 1 is populated and enter button pressed, row A1:F1 will be copied to the next empty row in worksheet 2, while being deleted from worksheet 1. So eventually all rows in worksheet 1 will be deleted and rows in worksheet 2 will be populated.
View 2 Replies
View Related
Feb 15, 2014
I have 2 columns First Name & Surname. What I want to do is create a data validation list on the surname which results in the 2nd data validation list only showing the first names which link to one of the surnames.
i.e. If I selected Smith in the 1st validation list then I would only like to see 'Paul' as an option in the 2nd list
First Name
Surname
Paul
Smith
Paul
Jones
Tony
Phillips
View 1 Replies
View Related