Update One Workbook From Another Based On Unique Criteria

Mar 11, 2008

I have two workbooks. I use excel 2003

I need to update the master workbook with data from the invoices workbook using the following criteria.

In the master workbook column C has unique job numbers.
In the invoice workbook column F has unique job numbers.
Both worksheets are the first worksheet in both workbooks.

If the job number in the invoice workbook is already in the master workbook do nothing.

If the job number is in the master workbook but not the invoice workbook then delete the entire row from the master workbook.

If the job number is not in the master workbook add it to the master workbook.

To complicate matters the master workbook is shared. It is my understanding that shared workbooks can't contain the macros needed ? It would be preferable that the master sheet had them but if not ...

View 4 Replies


ADVERTISEMENT

Unique Values Based On Criteria

Jun 20, 2013

I've got an interesting problem which I haven't been able to find an answer for.

A B
PR Yes
PR Yes
PR Yes
DN Yes
DN No
DN No

I need to count how many unique values in column a have every row in column b the same value. So counting for yes values, PR would equal one but DN would equal zero.

I used this formula to find out how many unique files had yes values, now I need to find out how many files only have yes next to them.

=SUMPRODUCT(($B$2:$B$14="Yes")/COUNTIFS($B$2:$B$14,$B$2:$B$14&"",$A$2:$A$14,$A$2:$A$14&""))

View 8 Replies View Related

Unique List Based On 1 Criteria

Jan 11, 2010

ColA has a range of names.

ColB allocates ColA entries to either of two categories by entering 'cash' or 'credit'.

I need help writing a formula to make a unique list of the names in ColA that have 'cash' in ColB. I'd prefer not to use autofilter.

View 9 Replies View Related

Update A Workbook Based On Another Workbook?

Jul 17, 2013

I have 1150 workbooks with two sheets each. The workbooks are all named with employee names (SNUFFY,JOE.xlsx etc). The sheets in each workbook are for different years. Both sheets in each workbook are set up the same. The only differences are the values in cells. I just made another workbook where column A is a list of all 1150 employee names (SNUFFY,JOE etc). I want column B for each employee to show the values in say sheet 1 cell G1 of that employee's individual workbook, and column C to show the value in sheet 2 cell G1. How do I make that happen?

View 13 Replies View Related

Bring Top 10 Unique Name Based On Multiple Criteria?

Apr 23, 2013

In the below data set i have the data ranked by branch and center by value. I am trying to create a summary page that looks at the data set by branch center and rank and brings back the debtor code. The letters above headers represent the columns.

a b c d e f g
BR
CNTR
DEBTOR NAME
2012
Rank

[Code].....

View 1 Replies View Related

Counting Unique Values Based On 2 Criteria

Aug 11, 2007

Is it possible to count unique values in one column based on that column and another column? I have a report that has a column of dates (B:B), column of month and year (C:C), and a column of RMA numbers(A:A). The RMA numbers repeat if there is more than one part on the RMA. I would like to count the number of RMA created each month. Below should be Jan = 2; Feb = 2; Mar = 1............

I have a CSE formula that allows me to count based on two criteria but it does not count unique values and you have to specify the two criteria.

View 4 Replies View Related

Count/Sum Unique Values Based On Criteria

Feb 19, 2009

I'm facing a big problem and I can't found a solution for days.

I'm trying to count/sum unique values in a Range, base on a criteria excluding Blank cells. Basicly I'm using the Formula Below:

=SUMPRODUCT((C2:C20"")/COUNTIF(C2:C20,C2:C20&""))

Let me Put to you an example for you been able to understand my problem.

Example considering Range "C2:C20" exluding blank cells

(1) - To count unique values
=SUMPRODUCT((C2:C20"")/COUNTIF(C2:C20,C2:C20&""))

(2) - To count unique values based on criteria in range "B2:B20"
=SUMPRODUCT((C2:C20"")/COUNTIF(C2:C20,C2:C20&"")*(B2:B20="E"))

(3) - To sum unique values on "E2:E20" based on same criteria
=SUMPRODUCT((C2:C20"")/COUNTIF(C2:C20,C2:C20&"")*(B2:B20="E")*(E2:E20))

They all work fine. But I need to insert a merge at Row 10 for
better reading purposes and the (2) and (3) are returning (#DIV/0). The (1) formula still work's.
I just don't know what to do guys ....

View 9 Replies View Related

Create Unique Table Based On Criteria

Aug 31, 2007

Our reservation system exports a spreasheet daily which contains hundreds of records relating to bookings. The worksheet has an ID column which is not unique, but is sorted alphabetically. I need to write some code to delete all records below the first 'set' of records relating to the first ID value found. i.e. i want to end up with only the set of records relating to the first ID found. So the basic logic would be to look at the value of the field in the ID column of the first record and then iterate down the rows until it came to a different value and then delete all rows below that. Its simple in concept, but im stuck on how to write this.

View 9 Replies View Related

Count Of Unique Numbers Based On A Criteria

Feb 17, 2008

My data is like:

A1: 5 -- B1: X
A2: 5 -- B2: X
A3: 5 -- B3: Y
A4: 3 -- B4: Y
A5: 3 -- B5: X
A6: 8 -- B6: Y
A7: 2 -- B7: X
A8: 3 -- B8: Y
A9: 1 -- B9: X

I want the count of unique numbers in column A based on the criteria i have on column B.
So the count for X should be 4 and for Y should be 3..

Can i achieve this using formula only?

View 5 Replies View Related

Counting Unique / Different Values Based On Multiple Criteria?

Jan 21, 2014

I have a large sheet (several thousand rows and growing) - see a small cut of the data. The columns following on from this have a list of people's names, hence why a lot of the data repeats (as a number of people attended each program).

Program
Clinic Title
Start Date

[Code].....

formula that will automatically give me that answer?

View 2 Replies View Related

Display Unique Cells Based On Single Criteria

Mar 17, 2014

See attached file, basically need a formula that will give me the unique resources for each location. I know a pivot table would be easier but i need a formula for my model to work.

View 6 Replies View Related

Count Unique Values Based On Matching Criteria

Jan 9, 2007

I have a worksheet with two tabs.

First Tab
Account Name
Account Number

Second Tab
Account Name
Account Number
Account Ship Location Number

On the first sheet each account name and number only appears once.

On the second sheet there may be multiple entries for each Account Name and Number.

On the first tab for each row I want to compare the Account Number column to the Account Number column on the second tab. Where I have a match I need to count how many unique Account Ship Location Numbers correspond.

View 9 Replies View Related

Loop Criteria Based On Unique Values In A Column

Apr 3, 2009

i had a database from which i need to extract data from COlUMN B, select the

View 2 Replies View Related

Extracting Unique Data Based On Multiple Criteria With Formulas

Sep 27, 2013

I have data and after doing some data manipulation it looks like this

Job #
Part #
Lot #
Total
Grand Total

[Code]..

What I'm trying to do is making a summary sheet that has only the first record with unique values using the Job number, part number, and lot number as the criteria. The grand total in the first record is the total for all of that job,part,lot so i need to bring that value over to the sheet as well. I have been able to do this easily with the duplicate finder, but need a formula to automatically do this.

View 2 Replies View Related

VBA To Generate A New Workbook Based On Unique Field

Feb 4, 2014

I have an excel sheet with over 50thousand entries, each entry is identified by an ID code in the L column. I want a code that creates a new workbook with all entries having thesame ID code. if it's not too much, i want to have a pop-up window that asks me to enter the ID code.

View 9 Replies View Related

Excel 2007 :: Create Dynamic And Unique Sublist Based On Multiple Criteria

Aug 26, 2012

Excel 2007, Windows 7.

Most details are shown in the spreadsheet below. I would like it to be dynamic because the quarterly and annual data dumps I'm working with are are hundreds to thousands of lines.

Have the list be sorted, which is a part of the first attempt, would be nice but is not necessary. At this point, just being able to generate the dynamic list would be fantastic.

Excel 2007ABCDE1product lines:consist of these product subtypes2Widget series:Widget.type1Widget.type23Fidget series:Fidget.type4Gidget series:Gidget.type1Gidget.type2Gidget.type356data dump of parts sold or used in repairs7product subtype repairedpart number

[code]......

View 5 Replies View Related

VBA To Open Workbook And Sum Based On Criteria?

Mar 4, 2014

I have a lot of data that I want to put into another workbook so as to free up space and make the workbook efficient, however, I do not know how to open a workbook in VBA.

Once this workbook is open, I then want to sum the data based on set criteria.

View 7 Replies View Related

Autofilter Based On Criteria From Other Workbook

May 24, 2008

I am looking for a way to search through several workbooks for a row containing the user's inputted data. I was thinking I could Autofilter each workbook but having trouble getting the code to reference a cell value in another workbook.

Sub Autofilter()
Windows("file.xls").Activate
With "Sheet1"
.AutoFilterMode = True
.Range("A1:EV1").Autofilter Field:=1, Criteria1:"Workbooks("reference.xls"). Sheets(1).Cells(A2)"
End With
End Sub

I would like to have file.xls Autofiltered by the value in cell A2 which is in workbook reference.xls. Am I going about this the wrong way? Auto Merged Post Until 24 Hrs Passes;Here is the code repaired so it doesn't through the syntax error:

Sub Autofilter()
Windows("file.xls").Activate
With "Sheet1"
.AutoFilterMode = True
.Range("A1:EV1").Autofilter Field:=1, Criteria1:=Workbooks("reference.xls").Worksheets("Sheet1").Range(A2).Value
End With
End Sub

But it still isn't working. Something is causing trouble at the With statement...

View 2 Replies View Related

Copy Rows From One Workbook To Another Based On Criteria

Aug 4, 2009

I have been struggling to setup these two workbooks for a bit now, and I can't for the life of me figure out a formula to do what I need to do. Essentially, I have one workbook that contains a list of purchase records for my company, sortable by Date, Vendor, Price, etc. and one workbook that has a sheet for every vendor. What I need is a formula that will search column B for a vendor, Allied Waste for example, and transfer all the information within the rows for every instance that vendor is found to the new workbook.

This is basically just a way where I can input information once in one workbook, where the sheets are divided by month, and the info will automatically transfer to another workbook, where the sheets are divided by vendor.

View 2 Replies View Related

Hide Workbook Tabs Based On Certain Criteria

Jun 10, 2014

I have tabs within my workbook that are pulling from other tabs in the same workbook. There are 30-40 tabs, and only 10-15 are used at a time. Is there a way to hide tabs that are not being used? If I do a calculation in A1 and it's greater than 0, I'd like the tab that is pulling from A1 to be visible. If A1 is 0, then I'd like to hide it.

View 14 Replies View Related

Lookup Data In Another Workbook Based On Criteria

Sep 8, 2006

I have a work book with several work sheets, what I'm trying to do or find a a method of coping data from one sheet to another provided the data in any given cell matches a specific criteria. Example below:

Work sheet 1 is the primary sheet in the work book on this sheet I have a cell with a text value (Bob). Ok on the next work sheet 2 I need to search for a cell that contains (Bob). When or if it is found I need information from other cells in that row (where Bob was found) copied to work sheet 1 in a specified row and colum. If it is not found a negative value can be placed in the specified cells.

View 3 Replies View Related

Copy Data To New Workbook Based On Criteria

Apr 4, 2008

I have a workbook that is used to track job estimates.

What I would like to have is a macro that would search through column N on the original file and if any of the cells have "No RFE" in them - generate a new workbook with only this list that would include any data from columns C-U copied from the original file.

I've been seaching the forum, but so far have had little luck finding something that suits my needs.

View 9 Replies View Related

Obtaining List Of Unique Values From List Based On Some Criteria?

May 28, 2014

The function below should return the value in a cell IF the string in the cell two cells to the left of it is "Nemo" Omitting the part highlighted in blue, my function returns a list of unique values...but when it's included, nothing is returned at all. Perhaps, there is an error in the syntax that I'm overlooking?

Function listUnique(rng As Range) As Variant
Dim row As Range
Dim elements() As String

[Code]....

View 2 Replies View Related

Deleting Workbook Based On Criteria In Active Worksheet?

Aug 16, 2012

I am trying to delete a workbook, yes the whole workbook, if cell A1 is blank.

View 2 Replies View Related

Update Slot Column With Unique Bid Choice From Row Of Choices?

Oct 23, 2013

code to loop and fill the attached worksheet Slot column with the techs first choice that is not a duplicate above from more senior tech. The techs are listed down column A with the most senior tech able to get first choice. If the next tech down the list bid the same choice as the first tech the the code would select the next choice.

View 5 Replies View Related

Formula In Destination Workbook Will Not Update When Change Tab Name In Source Workbook

Jul 17, 2014

I am working with multiple workbooks with several tabs in each one. I need the forumula to update the "sheet name" from the source workbook even if the destination workbook is closed.

this is a portion of the forumula I am working with:

=SUM(IF(AND([L2_EI_Phase_II_monitoring_workbook.xlsx]Sheet25!$I$4>=182,[L2_EI_Phase_II_monitoring_workbook.xlsx]Sheet25!$I$4=182,
[L2_EI_Phase_II_monitoring_workbook.xlsx]Sheet26!$I$4=182,
[L2_EI_Phase_II_monitoring_workbook.xlsx]Sheet27!$I$4

View 9 Replies View Related

Using VBA To Update Workbook B Extracting Data From Workbook A

Mar 27, 2014

In order to do the tests, I'm using 2 simplified workbooks (test_copy and test_paste).

What I'd like to be able to do, once I click a button UPLOAD (creating the button isn't the problem), is to go to the first cell from workbook test_copy, check if that code is already on test_paste and if not add it to the bottom of the list, repeating the same cycle for each code on the workbook test_copy.

The orders of the codes might change on both workbooks differently depending on the way the columns are sorted. That is why I believe that for each code in test_copy I need to check the entire column in test_paste to check if the code already exists.

At the end of the routine, on the example below, we would have the codes 2670, 2676 and 2626 added to the end of the list on test_paste.

test_copy

Excel 2012

A
1
2684
2
2783
3
2669

[Code]...

View 9 Replies View Related

Make Workbook Code/Macros Unique To Workbook

Sep 12, 2006

How is code or functions kept unique to a workbook? for instance i create a few toolbars that are relevant to "work book 1", however when i open another workbook "2" the toolbars do not function properly or are removed by the opening/closing of the work book, similarly other macros seem to struggle with more than one workbbok open at a time.

View 5 Replies View Related

Update Multiple Workbook From One Workbook

Jun 2, 2009

I have one excel workbook which contains employee cosolidated data (Master File).From Master file i want to update many employee individual files.

eg. in my master sheet i have 10 columns basic salary,fixed allowances,variable allownces etc.

Same components i have in employee individual file, but in diffrent rows.(all the components n one column).

I need a macro which can identify those column names and employee name file and update values as per master file.

View 9 Replies View Related

Update Master Workbook From Second Workbook

Apr 10, 2008

I have a master workbook the needs to be updated from another workbook. I have adapted the following code that I found hidden away in this font of knowledge.

Sub test1()
Dim wb1 As Workbook
Dim wb2 As Workbook
Dim OldLastCell As Range
Dim lookRng As Range
Dim foundRng As Range
Dim iCel As Range
Dim loopRng As Range
If IsWbOpen("Update") Then
Set wb2 = Update
Else
Set wb2 = Workbooks.Open("C:Documents and SettingsCompaq_OwnerDesktopAreaUpdate.xls")
End If
Set wb1 = Workbooks("Original.xls")
With wb2. Sheets("Sheet1")...................

View 6 Replies View Related







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