Mapping Data To Another Worksheet Based On A Cell Value

Jan 23, 2013

I created a sort of FORM worksheet that uses lookups to pull a bunch of information (so the user does not have to key it all in,) and transfers it to a second worksheet (database worksheet), when the user clicks a "Submit" button.

The functionality is fine when used by one individual, but I am now going to have 9 different users working within this Shared file.

I seem to have worked out any of the other kinks related to the Shared file, but I'm having one problem that I should have foreseen.

The code below is looking for the next available empty row in the database sheet and copying the data there.

My problem is that the file is not updated in real-time, so if entries are submitted in a narrow time-frame, the data is fighting for the same row, and deleting one row-item or another.

My question is, is there a way to modify what I already wrote to fix this problem?

If not--the solution that I am thinking of is creating NINE separate worksheets and mapping the data into those individualy.

So... IF we have Sally, John, Scott, Dave, Jenn They each have their own worksheet.

From looking at the below, I am thinking the best option would be obviously mirroring the template for each user, and modifying this portion:

VB:

Option Explicit
[U]Dim wsData As Worksheet
[/U]Dim wsForm As Worksheet
Dim wsPCD As Worksheet
Dim rNextCl As Range
Dim rNextC2 As Range

[Code]....

Will that work transitioning into the rest of the code? I'll assume that the above needs revised as I'm new to this all.

VB:

Option Explicit
Dim wsData As Worksheet
Dim wsForm As Worksheet
Dim wsPCD As Worksheet
Dim rNextCl As Range
Dim rNextC2 As Range

[Code]....

View 2 Replies


ADVERTISEMENT

Autofilter Another Worksheet Data Based On Cell Value In Another Worksheet?

Aug 13, 2014

I have a 'Summary' worksheet which is shown as:

August
September
October

Example 1
1
4
5

The table, which works correctly, looks in another worksheet 'Report' for 'Example 1' within the date range of August. This uses COUNTIFS.

Ideally, what I'm wanting to do is have an auto-filter on each of the cells - 'Example 1', 'Example 2', so if a user wants to see what rows on the 'Report' sheet, falls into this criteria, it auto filters the other worksheet, and takes them too it.

The action would be - Click on the cell of 'Example 1', the macro auto-filters based on the cells value in column F of the 'Report' sheet, and takes the user there. The macro would have to take into account the date filter as well, which uses cells A1,B1 for August, and C1,D1, for September.

View 1 Replies View Related

Mapping The Data From Back Of The Column

Jan 22, 2009

I am using the Formula of Index here as i have a sheet names with Details and mapping i have a company name for which i have to map the policy no from the details sheet. The Thing is i will not use Vlookup i need a formula of Index which maps the data from the backwards range. Attached a excel sheet.

View 4 Replies View Related

Mapping Data: Combining Two Worksheets Into A New One

Feb 15, 2007

mapping data. Attached is a sample of what I need help with.

I have a Two Worksheets with Data and a third containing the template with which I want the first to to combine into.

The first sheet looks like this:
WWID | YEAR | LITER | MAKE | MODEL | SUBMODEL

The 2nd sheet:
HOUSE_ID | YEAR | LITER | MAKE | MODEL | SUBMODEL | Part_No

I want to map these two sheets together into the 3rd that looks like this
WWID | HOUSE_ID | Part_No

by using the similar data found in the first two sheets (year, liter, make, model, submodel)

I've attached a sample of what I need..

View 4 Replies View Related

Excel 2010 :: Copy Data From One Cell Based On Color Of Another Cell To Different Worksheet

Jan 30, 2014

I have an Excel 2010 spreadsheet consisting of many worksheets (20 or so). Each of these worksheets contain detail level data regarding different projects. One of the columns in these worksheets is the 'Status' column (column F). There is conditional formatting on this column where if the text is 'G' then change background to a green color, 'Y'=yellow, 'R'=Red and 'U'=Grey.

The first worksheet is a summary sheet that I would like to pull information from each of the detail worksheet's columns B, D, E, G and H if the status column (Column F) is 'R' or 'Y'.

The number of rows in the detail worksheet can change each week (as few as 0 and as many as 100)

View 2 Replies View Related

Find Worksheet Based On Data In A Cell

Jan 13, 2010

In Sheet1 I've got a list of names in column A, then I've got a worksheet for each name in the list. I'd like to fill in column B with information from the worksheet of the same name as in column A.

Quick example...name in column A is Davis, want to fill in column B with a value from cell C3 on worksheet named Davis and do it for the entire list. Data being looked for is in same cell on each worksheet. Tried using a formula and dragging it down the list, problem with that is it doesn't change the sheetname just the cell.

View 3 Replies View Related

Cut And Paste Row Of Data To New Worksheet Based On Single Cell Value

May 8, 2012

I have a worksheet with 14 columns. Column 12 is either blank or when I finish that project, from a drop down menu I pick Yes. What I am hoping for is that as soon as I hit yes the line will be cut from the first sheet labeled Open and pasted to the next available row on the second sheet labed Closed. On the first sheet that blank row is eliminated so there are no spaces and on sheet two it always looks for the next available row as to not over write any data.

Also, to make sure I am doing this right too, I would right click the tab then click view code, paste it into the window (below the drop down that says (General) click file save workbook then file close and return to excel correct? One last thing, while looking at this page it shows my worksheet I call Open is really sheet 16 and closed is really sheet 17.

View 14 Replies View Related

Count Occurrences In Worksheet Based On Data In Another Cell

Mar 14, 2014

I have my workbook set up so that one worksheet contains the names of all my departments/sections listed with their 3 letter code (this can be anything from AAA-ZZZ, e.g 'FYH', 'JWK' or 'KZA' are all valid) in Column F. I then have Columns H, I, J & K blank and require them to be auto-filling based on data from 4 other worksheets - i'll detail what i need below, but Column H needs to be filled based on what it finds in worksheet 'Data 1', Column I should be filled based on what it finds in worksheet 'Data 2' etc. etc. I have four further worksheets that contain data based on the types of assets owned by the department/section, these are 'Data 1', 'Data 2', 'Data 3' and 'Data 4' and I use these as described above, with Column H referring only to 'Data 1', Column I only to 'Data 2', Column J only to 'Data 3' and Column K only to 'Data 4'.

What i need then, is a VBA that will take the value of a cell in column F on my main worksheet (called 'main') and then count the number of occurences of that value in Coulumn A on another worksheet and place the number of occurences into Column H, I, J or K based on which sheet it's checking.

For example, Cell 'F2' on my main worksheet contains the value "ABC". I need to take "ABC" and search Column A of worksheet "Data 1" to find how many time it occurs, placing the result into Column H of worksheet 'Main', I then need the same value to be counted in Column A of 'Data 2' and its result placed into Column I on 'Main', and again for Column A of 'Data 3' with the result being put into Column J of 'Main', and finally Column A of 'Data 4' to be checked and that result placed into Column K on 'Main'.

does this seem too much of a task for VBA? or am i best doing each column separately with a CountIf or Array formula?? Not sure whether a COUNTIF or Array formula will do the job.

View 5 Replies View Related

Count Occurrences In Worksheet Based On Data In Another Cell

Mar 14, 2014

I have my workbook set up so that one worksheet contains the names of all my departments/sections listed with their 3 letter code (this can be anything from AAA-ZZZ, e.g 'FYH', 'JWK' or 'KZA' are all valid) in Column F. I then have Columns H, I, J & K blank and require them to be auto-filling based on data from 4 other worksheets - i'll detail what i need below, but Column H needs to be filled based on what it finds in worksheet 'Data 1', Column I should be filled based on what it finds in worksheet 'Data 2' etc. etc. I have four further worksheets that contain data based on the types of assets owned by the department/section, these are 'Data 1', 'Data 2', 'Data 3' and 'Data 4' and I use these as described above, with Column H referring only to 'Data 1', Column I only to 'Data 2', Column J only to 'Data 3' and Column K only to 'Data 4'.

What i need then, is a VBA that will take the value of a cell in column F on my main worksheet (called 'main') and then count the number of occurences of that value in Coulumn A on another worksheet and place the number of occurences into Column H, I, J or K based on which sheet it's checking.

For example, Cell 'F2' on my main worksheet contains the value "ABC". I need to take "ABC" and search Column A of worksheet "Data 1" to find how many time it occurs, placing the result into Column H of worksheet 'Main', I then need the same value to be counted in Column A of 'Data 2' and its result placed into Column I on 'Main', and again for Column A of 'Data 3' with the result being put into Column J of 'Main', and finally Column A of 'Data 4' to be checked and that result placed into Column K on 'Main'.

does this seem too much of a task for VBA? or am i best doing each column separately with a CountIf or Array formula?

View 2 Replies View Related

Autofilter Data Based On Cell Value (dropdown List) In Different Worksheet?

Apr 5, 2013

I've created drop-down lists in cells B3 and B4 (this is in worksheet 1), based on a column in Worksheet 2. I'd like Worksheet 2 to autofilter the data based on the drop-downs in B3 or B4, or both together.

View 2 Replies View Related

VBA Lookup Function: Paste Data Into A Cell In Another Worksheet, Based On Criteria Specified In Sheet1

Jan 8, 2009

I'm looking to create a macro that will take data from an input sheet, and paste it into a cell in another worksheet, based on criteria specified in sheet1.

Specifically in the attached example, the macro would copy the data in cells C8:C10 of sheet 1, then paste them into sheet 2 based on the data specified in cell B3 i.e. it would paste them into the column headed Mar-09. I intend to make this cell a drop down, so that the user can then select the next reporting month and run the macro again to paste the data into the Apr-09 column.

View 2 Replies View Related

Mapping Account . How To Add Additional Data In To Account#

Aug 21, 2009

I have two sheets. First contains Department # 0002549, and the other one contains 5 more digits(#02001 0002549). I will need to find the exact match for the first sheet to contain all 12 digits. THey are all in different order, so I probably have to match them first then add whatever the first 5 digits number. How should I tackle this issue? I was thinking to use vlookup but how could you use vlook up if only last 7 digit matches and add addtional digits to exisiting number?

View 9 Replies View Related

Populating One Worksheet With Data From Other Worksheet Based On Criteria?

May 22, 2013

I have two sheets in one workbook; one has a list of names in column A (136 of them) and another is a master list with all the names of people who work for the company (over 2000). Sheet 1 and Sheet 2 respectively. I need to populate columns B-E in Sheet 1 with the data in columns B-E in Sheet 2, but only for the names that match in column A. I've tried applying filters but can't get to the data I need for some reason. The names are formatted the same way in both sheets (Last, First). In Sheet 2 the names are links but in Sheet 1 they aren't; not sure if that's important.

View 7 Replies View Related

Drive Mapping

Nov 18, 2009

Currently I am using this ......

View 9 Replies View Related

Code Mapping From Another Sheet

Oct 29, 2009

basically I got 2 sheets - 'Sheet1' and 'Codes'. In sheet 1 I have many columns of info(irrelevant here), we focus on one Column N, there are codes in this column and depending on the code I need to enter an Asset Class in Column AG. The Sheet (Codes) - has 2 columns with the code(column A) and its corresponding asset class in Column B.

A lot of the codes belong to the same asset class so dont be confused if u see the same asset class category twice. I need the macro to copy the correct asset class value from Column B(Sheet 'Codes) to Column AG of Sheet1.

View 2 Replies View Related

ASCII Key Mapping In VB Userform

Jan 4, 2007

Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = Chr(vbKeyA) Then
If sngXFactor 1 Then
sngXFactor = -1
sngYFactor = 0
End If
ElseIf KeyAscii = Chr(vbKeyW) Then
If sngYFactor -1 Then
sngXFactor = 0
sngYFactor = -1
End If
ElseIf KeyAscii = Chr(vbKeyD) Then
If sngXFactor -1 Then
sngXFactor = 1
sngYFactor = 0
End If
ElseIf KeyAscii = Chr(vbKeyS) Then
If sngYFactor 1 Then
sngXFactor = 0
sngYFactor = -1
End If
End If
End Sub

That is what I have right now, basically I just want to map W, A, S, and D to change variables. What am I doing wrong?

Keep in mind that this is a userform and not an excel worksheet.

View 9 Replies View Related

Fill Out Blanks Using Mapping Table

May 8, 2014

See attached file for a better understanding.

I would like to use a formula in Column 1 (highlighted) which tells me if it relates to Fund 1 or Fund 2 using the Mapping table in column H.

Using the mapping table would be nice but no need to.

Excel Question.xlsx‎

View 5 Replies View Related

Count By Mapping The Correct List

Jan 28, 2009

I need to count a list of corporates claims settled as i have multiple Claims Status as outstanding, In process,Cheque prepared and Etc.

Basically i cannot use countif formula for the condition as it has only a range & criteria but here i have to check the list in the validation tab and map with the details in the side spread sheet given which are settled and count them so such criteria is so unknown to me to use .

View 11 Replies View Related

Mapping XML Elements To Multiple Cells

Nov 11, 2010

I am trying to produce an Excel file filled with data from the XML file.

Some of the cells need to have the same element data. However the Microsoft Excel is not allowing to map an XML element to more than one cells.

View 3 Replies View Related

Generate List Of Data Based On Sort Data From Another Worksheet

Feb 25, 2014

I have Sheet1 "MASTER" and Sheet2 "Area1" and Sheet3 "Area2" etc...

My MASTER sheet has a list of employee names and the areas they work in. I have employees working in different areas, and I want to pull a list of employee names from the MASTER working in Area1 (sorted on the MASTER sheet) to column A on Sheet2, then pull a list of employee names working in Area2 to column A on Sheet3, etc...

I want it to do this in such a way that if I add an employee to Area1 on the MASTER data, it will populate that employee in the Area1 Sheet.

So basically, I'm looking at one column on the MASTER sheet to see if the area matches. Then looking at another column on the MASTER sheet to get the name. Then taking that name and transposing it to a new sheet corresponding to the area they work in.

I've attached a sample sheet. I want Column A in the Area1 sheet to reflect all names that show up on the Area1 LIST on the MASTER sheet, and nothing else. I'm using VLOOKUP to pull the rest of the data from the MASTER table.

There is a new sample workbook up now. Couldn't update it sooner due to site outage. I've removed irrelevant data to improve readability and focus on what I'm trying to achieve. Again, the main issue is scraping column E from the Master, and populating a list of all employees who match certain values in Column E on the Master in Column A of the other tabs.

View 2 Replies View Related

Change Unc Links To Drive Letter Mapping

Jan 31, 2008

I have a user whose links in his spreadsheets are in UNC format. He changes them to drive letter mappings, but when he opens the workbook again, the UNC format returns. how to change the links so that they remain as F: etc.. rather than \servernamesharename The user has MS Excel 2000 and Windows Xp Professional

View 2 Replies View Related

Formula For Mapping IP Addresses To Private Or Public Defined Spaces?

Dec 31, 2013

I have a macro that pulls specific data from a CSV, then I copy that extract to my master excel doc (setup by year), so I can put the data into pivot tables and charts. This is used to create "management" style reports.

This data has IP addresses in it. Both internal and external. Trying to find a formula that will look at Cell A, where the IP address is and input either External or Internal into column AA, based on the number.

Internal would be numbers between 10.0.0.0 and 10.255.255.255, 172.16.0.0 and 172.31.255.255, and 192.168.0.0 and 192.168.255.255. Anything not in those three ranges would show as External.

View 6 Replies View Related

VBA Change Cell Value To Specific Letter Based On Value Of Different Cell In Different Worksheet

Jun 6, 2014

I've done the following:

Sub BrownBH()
If Range("Brown!B4:B31") = X Then
Range("C4").Value = [#A]
Else
Range("C4").Value = NT
End If
End Sub

However, this doesn't even work.

When somebody enters an X in a specific cell on one worksheet, it's supposed to change the value to A of a specific cell in a different worksheet. Sounds simple enough...but...

View 5 Replies View Related

Insert Data From Different Worksheet Based On Common Value

May 7, 2013

I have searched and there are some examples that are similar to what I'm looking for but I cannot seem to use those answers to make my problem work. The example from the forums that seems to match my problem the closest is [URL]....

Summary: I have an Excel file called "COST TEMPLATE.XLSX" that has product information (serial number, quantities, pricing), calculations and reports; then on a monthly basis I receive a file (VENDOR_EXPORT.CSV) with updated product quantities to be merged into the cost spreadsheet.

I would like to merge specific data fields from the VENDOR_EXPORT.CSV file into my cost template based on the serial number. I am attaching three dummy files that hopefully describes the issue:

1. COST TEMPLATE.XLSX
2. VENDOR_EXPORT.XLSX - which highlights the cells to be import and to which corresponding column
3. VENDOR_EXPORT.CSV - raw CSV file

My preference is to do this with functions, not macros. How to add the export into the existing workbook as a temporary worksheet, or just pull from the other workbook as CSV file.

View 3 Replies View Related

Extracting Data To New Worksheet Based On Two Values?

Jul 11, 2014

I currently have a macro that looks at one value and copies the data to another worksheet.

I'd like to modify it to look at two different values and then copy the data. I've tried modifying the VBA code, but can't seem to get it to work. In the "ETF Report (1)" tab, i want it to look at the "ETF Report" and "PO No" values.

The Final Version tab is what i'd like the results to look like.

View 4 Replies View Related

Displaying Data Based On Selected Worksheet

Dec 21, 2006

An integer in stored in Sheet1!A1. I want a formula in Sheet1!A2 to display data of sheetx!A3 where x is the number chosen in Sheet1!A1.

e.g. Sheet1!A1 store 3. Then Sheet1!A2 will display Sheet3!A3.

e.g. Sheet1!A1 store 7. Then Sheet1!A2 will display Sheet7!A3.

View 10 Replies View Related

Cut Data Based Upon Criteria And Move It To New Worksheet

Jan 10, 2012

Error in the code, where I'm trying to copy the data (based on criteria) from one worksheet to another, then delete the data from the first worksheet. In the code (I have complied from this message board) I get an 1004 error "Application-defined or Object-defined error".

Code:
Option Explicit
Sub CopyALColKYes()
Dim NR As Long, c As Range, firstaddress As String
Application.ScreenUpdating = False
NR = Sheets("Completed-Expired").Cells(Rows.Count, 13).End(xlUp).Row + 1

[Code] .........

View 9 Replies View Related

How To Retrieve Data Based On Last Column Of Worksheet

Jan 18, 2013

In column A I have client names and columns B to P I have numerical data and in column Q I have a formula which gives me a percent, i am trying to think of a way/ a function that will return for me the client names when the value in Column Q is >=100%. It seems like it would be some type of reverse Vlookup.

View 4 Replies View Related

Copy Row Data To Another Worksheet Based On Criteria

Sep 28, 2006

Data exists in a workbook's sheet name "0293" in columns A, B, C, & D. If a row's value in column B exceeds zero, the entire row & formatting needs to be added to the bottom of data in a sheet called "Comprehensive" of the same workbook and put 0293 in column E of the same row. What would be the simplest VBA code to copy sheet 0293's data & add it to the "Comprehensive" sheet with the sheet name in column E of the same row?

View 2 Replies View Related

Pull Data From Worksheet Based On ID Number

Nov 8, 2006

I have 2 worksheets (Sheet1 and Sheet2). Sheet 1 contains around 3000 records with multiple fields (columns). Column A contains the ID number. Sheet 2 contains some records with different fields except for the ID number which is common.

I need a macro to retrieve information from sheet1 and copy it to sheet 2 based on the ID Number; i.e the macro needs to get the ID number from sheet2, locate it in sheet1 and copy the data from column D in sheet1 for that particular record and paste it in sheet2.

View 7 Replies View Related







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