Find And Match And Tally With 2 Workbooks

Jun 11, 2009

I have 2 workbooks. and i would like to do the following:

Workbook1

- 4 columns (product ID, quantity, Group, Comments)

Product ID, Quantity, Group, Comments
11111, 500, ?,?
11122, 1000, ?,?
11133, 250, ?,?
11144, 250, ?,?
11343, 700, ?,?
12134, 750, ?,?

Workbook2

- 2 columns (group A, Group B)

for group A:
min qty: 250
min increment: 250........................

1) I need to match the product ID in workbook1 with workbook2 - see which group it belongs and put into workbook1 under column group

2) I need to count the no.of quantity and see if it meet the citeria and place Yes/No in workbook1 column under Comments.

- for example:
product ID 11111 in workbook1 can be found in workbook2 group A (put group A into workbook1 under column group)

do a check: prodct ID 11111 has 500 in quantity, since its under group A it meets the min qty of 250. and followed by it meets the min increment too - 500/250 (thus put Yes into workbook1 column under Comments)

View 9 Replies


ADVERTISEMENT

Running Tally Traffic Light System - Find Previous Values Upwards In A Column

Jul 21, 2014

I'm trying to work out to most efficient way of making a quality monitoring system which uses traffic lights to show problem products.

The traffic light system need to obey the following "rules".

Each product is tested once daily When a product fails once it moves to Amber, When a product Fails twice in a row it moves to RedOne pass when a product is in Amber Status, will reset it to green.If a Product is in Red status, it much have 3 consecutive passes to reset to Green.

I have tried to use array formulae to look up a column for previous values in the past for this sort of thing, but with 100000+ rows it runs far too slowly.

Banana Problem?
Product
Result
Traffic Light (0=green, 1=amber, 2=red)

[Code].....

View 1 Replies View Related

VLookup To Pivot Table Using Match Function - Returns Error If Can't Find Match Value

Mar 11, 2014

I am having some trouble getting a formula to work. I am building a report that pulls figures from a pivot table in another workbook. I am using a vlookup with match function to get the column index to find the relevant data I want. Where I need to add two columns together I am using sum, with the vlookup & match formulas nested in them e.g.:

=SUM(VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("FAID",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("COMM",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("BPCM",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("COMD",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE))

Where:
F13 = Employee number
Column C on the pivot 156 workbook is where the employee number is based.
The Match formula is then getting the column index from the column headings of the pivot table ie. "FAID"

This in itself works fine, as long as it finds a match in the column headings. This is where i get the error as in the above function "COMD" is not in the pivot table. However I need to keep it included as it may appear on a future pivot table. Is there a way of getting the sum function to complete even though later in the formula it can't complete the vlookup? So it will ignore it, or assume the value is zero if it can't find it? The formula probably needs to do this for all the vlookups as some headings may drop off in future pivot tables.

View 2 Replies View Related

Match Columns In Two Workbooks

Aug 26, 2009

when I run macro get an error

The code will go through each line of data checking to see if it can find a match. If not, the cells will be highlighted yellow. It checks from both sides, first checks sheet 1 compared to sheet 2, then sheet 2 compared to sheet 1. That should encompass the variations between the 2 sheets.

View 7 Replies View Related

Index Match Across Workbooks

Jan 10, 2007

I have more than workbook (containing a lot of data ) , each of them has 2 columns ( names and codes)

I need to use VLOOKUP in another workbook , with 2 coulmns also , to get the name relevent to the code that I enter in coulmn A , so that the name appear in the next cell in coulmn B

View 9 Replies View Related

Match Up Data Across Workbooks

Nov 28, 2007

I am looking for help with a macro that will match up line items from two different spreadsheets. Basically I have a master accounting sheet which has the Income and Expenses for a building that dates back quite a ways. Each month I grab the financials and add it to the master sheet. The problem is that the master sheet has many more line items than the current month, so it takes me 5 or 10 minutes to match up the line items.

I have attached an example. The "Master (Before)" sheet is the historical financials. The last two columns are the new month before it has been lined up. The "Master (After)" sheet is what it should look like after the line items are matched up.

Line Items.xls

View 7 Replies View Related

Match & Copy Ranges Across Workbooks

Jan 15, 2010

I have 2 workbooks formatted the same way.

Using VBA, I want to search through book1 Col A which has a list of Code # s.
If a Code # is in Book 2 Col A, find a match on Book 1 Col A.

After finding a match, compare the range in Book 2 ( Which is the 4 cells immediately to the right ) to the match with the corresponding range in Book 1.

If the range contents are not the same, copy the range from Book2 to Book1 and replace the range in Book1.
If there is NO Match of the Code # in Col A, then Copy the entire row to Book1 and append it to the end of the current Book1 used range.

A MsgBox to show how many changes and additions at the end.

View 11 Replies View Related

Lookup Partial Match Between 2 Workbooks

May 2, 2008

I have a spreadheet which requires data from another spreadsheet. Spreadsheet 1 is only project numbers, spreadsheet 2 has all the customer data in it. I have used a 'vlookup' function to find the project number and copy the appropriate information over. The problem I have is the projects are a 6 number format (eg 531300) in both spreadsheets. In the sheet I want to complete, the project numbers only match the first 4 numbers, as they are seperated into sub-projects. Therefore the data in the data spreadsheet will only have a row for 531300, yet the one I fill in might have rows 531300, 531301, 531302 etc. Is there a way to run the 'vlookup' and only match the first 4 numbers. The current formula I have in the first cell is as follows: =VLOOKUP(A4,'[Project Database_Updated 04-30-08.xls]Sheet1'!$A$1:$E$1007,2,FALSE)

View 3 Replies View Related

Comparing Two Excel Workbooks And If Columns Match

Aug 15, 2014

I'm using two workbooks and looking to see if two columns match, then value in the cell should be the corresponding value of that cell.

For example:

I'm using

If(Match(A2,"name of other workbook",0, I want the value in column F of row 2, "not in raw data")

But it keeps saying too many arguments.

View 6 Replies View Related

Lookup & Cross Match 2 Columns In 2 Workbooks

Aug 23, 2008

I have 2 reports with the same column headings. I want Excel to compare each one on the common OrderID and then just show me the ones that don't match--either one invoice can't be found on the other, or in the cases where they are found, the invoice amounts do not match (IOW create an exception report).

View 2 Replies View Related

Compare 2 Columns In 2 Different Workbooks Then Insert A Value If They Match

Jun 13, 2006

I have 2 workbooks each with last name columns. One book has a column of a few hundred names and the other has a column of over a thousand. I need to compare the last names and pull out the employeeID (which is in a seperate column) to a specific column for the ones that match.

View 2 Replies View Related

Match Function: Change The Location Of Sheet1 To Another Workbooks

Sep 5, 2009

I have a line in my VBA code that i need to change the location of Sheet1 to another workbooks. Instead of Match at Sheet1 at the same workbook I need to match with sheet1 at another workbook called ("Master.xls). The Original Line:

View 3 Replies View Related

How To Automate Search And Match Function Between Two Separate Workbooks Using VBA

Nov 16, 2011

I'm trying to automate a search and match function between two separate workbooks using VBA and am having some problems. I'm using the following line:

search_results = Application.Match(temp, Range("E1:E900"), 0)

which works fine. now the problem is that when i'm searching for lets say "ABCD" in one of the workbooks, if there is an entry "ABCD " (with a space at the end) it says that the entry doesn't exist. is there any way of correcting it such that it would always neglect the space at the end if it exists? i tried using -1 instead of 0 and it messes up, so i'm not sure what to do.

View 2 Replies View Related

Search Multiple Workbooks & Match Named Ranges

Dec 6, 2006

I need to create a macro to find matches between multiple specific workbooks and a named range. I am new to macros and am very confused. After searching the forums here, I am still lost, even though they are very informative. So far,I have created a Dynamic Named Range called NamesList

=OFFSET(CurrentDay!$B$2,0,0,MATCH("*",CurrentDay!$B:$B,-1),1)

that selects the cells which I update manually each day. Once I have updated the list of names, I need to create a macro that will decide whether or not the names in the dynamic named range CurrentDay (located in workbookA) already exist in workbookB. The macro needs to create a list of the which names already exist in the workbook, and which do not. For the names that do not exist in workbookB, I then need to search workbookB and workbookC for matches, again creating a list of results. Until now I have been manually using Ctrl + F (Find Method)and going down my list of names to search through each workbook.

View 2 Replies View Related

Match Data In 2 Cells In Different Workbooks And Then Copy Results In Matching Row?

Feb 13, 2014

I have 2 worksheets, A and B. In both worksheets there is common data in column A (account ID). I would like to find a way to return all of the data for the matching row in worksheet B and have it pasted into the matching row in worksheet A.

So in the example below, I am looking for a function that will match on Account ID in both worksheets and then paste the results from Dataset 1, 2 and 3 into the row with the matching Account ID in worksheet A.

Worksheet A
Account ID
Column to paste matching rows from Worksheet B

1

2

Worksheet B
Account ID
Dataset 1
Dataset 2
Dataset 3

1
AAA
BB
CC

4
EE
DD
FF

View 1 Replies View Related

Find In VBA Code: Find Exact Match

Oct 9, 2006

I'm using the below VBA

Dim c, DataRow
With Data
Set c = . Range("A5:A350"). Find(KPI, LookIn:=xlValues)
If Not c Is Nothing Then
DataRow = c.Row
End If
End With

Now,If KPI is for example = "Favourite Hotel" and if i have data that looks like :

Favourite Hotel - London
Favourite Hotel - Cardiff
Favourite Hotel
Favourite Hotel - Birmingham

Then it seems to not look be looking for an exact match (e.g. Favourite Hotel) and rather is finding the first item in the list that contains the KPI string (E.g. Favourite Hotel - London).

How do i make it search for an exact match?

View 4 Replies View Related

Tally Score

Mar 14, 2007

im using spreadsheet works which seems to be very similar to excel. i am making a table full of numbers and i want to count how many times the number 1 appears and for that amount to be displayed.

View 11 Replies View Related

Importing Data From Tally ERP 9

Jan 29, 2014

I have been asked to develop a dashboard for my company. The data source for my dashboard is Tally ERP 9.The problem is I am not getting how to access this data into excel. I have tried MS Query but the imported data was not what I was expecting.

View 1 Replies View Related

Keep A Running Tally On Sheet 2

Nov 26, 2007

i am currently trying to figure out excel i have to fill this worksheet out daily and then at the end of the month i have to count the total number of items. I was wondering if there was a way to auto talley on a different sheet so that everytime i entered a product name and quantity if on the other sheet it would auto add it in
example:

I ate at mcdonalds (Main sheet)

On 11/22 I had 3 big macs and 4 quarter pounders,
On 11/24 I had 5 Big Macs and 2 quarter pounders
On 11/26 I had 12 Bigmacs and 5 quater pounders
(New Sheet) i want it to look like this:

Product quantity
Big macs (20) <-- this number i want to auto add from the notes made from main sheet)

So on another sheet i want to make a formula where for everytime i type in "big mac" on main sheet that on the other sheet it would auto add or keep a running tally so after i made those 3 entries on the main sheet it would show that i had a total of 20 big macs on the new sheet.

View 9 Replies View Related

Keep Tally Of Team Scores

Jan 19, 2008

I need to create a sheet probably involving macros where I enter a numerical value into a cell (say B5) I want the sheet to assign a score to the value I enter and then add the score it generates to a table of values. Once ths is done I need it to automatically clear the original value I entered ready for me to enter a new value - rinse repeat..

e.g.

into B5 I enter 15 - on the right in the results table there are headings v w x y and z

say 15 scores one point for w and one point for z I want the sheet to add 0 to the totals under v,x & y and add 1 to the totals under w and z.

Then I want the sheet to clear cell B5 so I can enter a new value without manually deleting the previous entry.

If I can also copy the value I enter into a "history" which simply lists all the values I enter as I go along so much thebetter.

View 3 Replies View Related

Output Tally Of Multiple Columns

Aug 6, 2007

I have been working on a little vba project and have almost got there with help from others, but the final part needs to have a tally a number of columns and and produce the tally results to a new worksheets - the code that need proof reading /reviewing is below - it is not working correctly as it is not tallying correctly and at times seems to miss counting the last row - so could you review and suggest or make required changes so that it will work on the attached test file.

WHAT IS NEEDED IS;

1. Column D contains names -strings which are repeated such Fred Flintstone so for Fred and others would like to have a summary tally of how many times each worker has instances of a value appearing in columns I, J, K, L and P, R ,S, T and U.

With the output summary worksheet called "WORKER TALLY" and having the headings for each columns tallied from row 5 being headings for each column tally see attached example.

2. Then do same again for Column E - Names so for example the name Peter Pan and others would like to have a summary tally of how many each worker has instances of a value appearing in columns I, J, K, L and P, R ,S, T and U. With the output summary worksheet called "Names" and having the headings for each columns tallied from row 5 being headings for each column tally see attached example.


Sub workertally()
Dim b() As Variant
Dim NewWs As Worksheet
Dim j As Integer, i As Integer
Dim a As Range, v As Range, r As Range, c As Range
j = 1
Set a = Range("E6", Range("E" & Rows.Count).End(xlUp))
Set c = Range("E5", Cells(5, Columns.Count).End(xlToLeft))
With CreateObject("Scripting.Dictionary")
.CompareMode = vbTextCompare

View 9 Replies View Related

Tally Count Of Values In Column

Dec 15, 2007

I have a list of varying IP addresses in a column. I need to create a formula that will tell me how many times an IP address appears in the column so that I can ultimately determine the most common IP address listed.

View 6 Replies View Related

Find Workbooks Then Email Them

Jun 1, 2006

I'm trying to fully automate a process for my team. So far I have a main workbook that imports files to Excel and puts them into 2 reports for us.

We then copy and paste separate sheets into their respective workbooks

I am wanting to create a button for both files to be emailed from our main workbook.

The two files have the same file name every day except the date is added to the end every day in format mm-dd-yy

The two filenames will always be ABC Flash Report and DEF Flash Report.

Is there a way for to search the directory they will be in(always be the same as well) and then attach that file to an email?

View 9 Replies View Related

Find Text In Different Workbooks

Jan 31, 2007

I want to loop through all the open workbooks and search for a text and activate the cell that has the text. I try to use the following code but it doesn't work.

Sub findcell()
Dim wkb As workbooks
For Each wkb In Workbooks
wkb. Sheets(1).Cells.Find("sometext").Activate
Next wkb
End Sub

View 7 Replies View Related

Find Value In Multiple Workbooks

Sep 29, 2007

i have manage to get the loop through folders working ok via you freqently asked questions this macro is used to collate the total sum of expenses for travel, petrol, meals etc from all employees for that month.

the code used in the loop thro macro finds the data in row 35 of all the workbooks and puts it into the master file. see code below that finds the data in row 35. starting at column e and works fine

rCell. Offset(0, 1).FormulaR1C1 = wbResults. Sheets(1).Range("E35")
rCell.Offset(0, 2).FormulaR1C1 = wbResults.Sheets(1).Range("f35")
rCell.Offset(0, 3).FormulaR1C1 = wbResults.Sheets(1).Range("g35")
rCell.Offset(0, 4).FormulaR1C1 = wbResults.Sheets(1).Range("h35")
rCell.Offset(0, 5).FormulaR1C1 = wbResults.Sheets(1).Range("i35")

i have been asked to modify the expense sheets so that extra rows can be inserted as and when required ,this then could moved the total row ie row 35 to any row.

what i have in column "d" is the word "total " can the code by modified to search for the word "total" and fetch the range from "column e to column aa and copy it to the master workbook. There are 3 sheets in each workbook that have total expenses in them. there are also 3 sheets in the master workbook.

i have attached a copy of the expense file we all have

View 9 Replies View Related

Word Text +1 Tally With Cell Placement

May 28, 2014

I am looking for a formula or multiple formulas to perform an If/Then statement, adding and dividing. Example listed below.

If O8 = 'Y' then perform XXXX, otherwise, do nothing.

XXXX= in Y8 search for word 'apple' and add tally to AA46, in Y8 search for word 'orange' and add tally to AA47, in Y8 search for word 'banana' and add tally to AA48.

Take AA46/Y46 and put results in AB46.

If this could be put into on cell and perform all the needed actions, otherwise, multiple cell formulas is ok.

View 10 Replies View Related

Vlookup: Tally Casino Trip Results

Aug 14, 2009

see the attached spreadsheet...I have a few notes of what I want to do. I think it is a vlookup, but i can't figure out how to do these.

View 2 Replies View Related

Numbers And Text In Same Cell & Tally In A Formula

May 10, 2008

Can numbers and text be included in the same cell and still have the number be included in the total in a formula in another cell? Or must a cell only have numeric values for it to be seen/included in a formula's total value.

I'm trying to create a database that totals materials for a construction project. I want to display the number of doors for a house in a row of cells and have the all the doors totaled in the last cell. This I have no trouble doing.

The problem arises when I want to add some text information about the style of each door in the same cell that the number of doors is shown. As soon as text information is added to a cell that has numeric information, that cells numeric information is not included in the final total in the last cell in the row.

I resorted to using comments instead, but, when the are made visible on the spreadsheet, they don't seem to lock to a relative position regarding the cell they're attached to. For instance, if I widen columns or make any significant spatial changes to the spreadsheet, the comments don't move with the changes.

There may be a way to lock comments to stay in a relative position regarding the cell they're attached to. And if that's the only way to make comments for the items in each cell stay with the cell, then I'll have to use that method. But I'd rather not have to use the comments function at all.

I'd much rather be able to have numbers and text be in the same cell, and still have the number value of that cell be included in a formula total at the end of a row of numeric information.

Example: (In this example separate cells that include both numeric values and text are indicated by parenthesis. The final cell that has the formula that totals the numeric information in the separate cells is indicated by brackets)

(30, raised panel doors, unpainted) (10, raised panel doors, white)

View 9 Replies View Related

VBA: Tally # Of Times A RTD Referencing Function Takes A Specified Value

Jul 31, 2009

I have a cell, lets call it A1, w/ an IF statement referencing another cell, which is a function of two values taken from RTD. A1 is either blank or reads "One." I want another cell to tally the # of times that A1 takes on the value "One."

The issue:
I've tried approaching this by using Worksheet_calculate and an IF/Then statement to add 1 each time Range("A1") = "One" however this doesn't work because it keeps adding 1 while A1 reads "One." The calculations seem to fire off every milisecond, so if "One" flashes for 0.5 seconds, I get 500, and if it flashes for 3 seconds, I get 3000. For both cases, I'd like it to just add 1.

View 9 Replies View Related

Generate New List And Tally Non Blank Cells

May 7, 2007

I am trying to make a more useful excel extracted report – what I have to start with is muck like the attached sample file. With at the bottom is what I would like to be auto done.

There is a column of names – with most names repeating so the first thing needed is to create a new summary list – can be in the same worksheet or in a new worksheet. The new list with be just a list of each name but only display each name once rather that the multiple of times as source list.

The second requirement is than once have a list of each name that appears then in columns next to each a tally /count of each non blank cell under each respective column heading - now it has to be a count of non blank cells as the content of each cell will chance – now need to understand it is not a count of numerals as such but a count of non blank cells so it is not 1 + 3 + 5 = 9 but should be 1 +3 + 5 = 3 (3 non blanks).

A idea of what I want is at bottom of sample worksheet attached

View 9 Replies View Related







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