Correlation Function For Matching Dates Within Range Of Data

Jan 9, 2013

i have 2 columns of number of cars using various roads, taken in the last 30 days. A macro has processed the data in these ranges and changed the outlier values to "Bad" so the formula ignores them.

However in the columns A and C , there are dates that the counts were taken on.

{=IFERROR(CORREL(IF(B4:B33"Bad";IF(D4:D33"Bad";B4:B33)));IF(B4:B33"Bad";IF(D4:D33"Bad";D4:D33)));"0")}

sometimes these dates aren't the same (no data available on christmas in some areas, boxing day in others etc. Obviously this destroys the correlation, as it puts the days out of synchronisation and the correlation falls apart.

Is there any way i can adapt the formula for it to check the dates are the same before correlating? It'd almost be like a vlookup, find the date, if match, add to calculation, if not then go to the next date. i'm happy for it to only correlate 26 of the 30 days if there are that many conflicts.

example for last 6 days performed on the 28th of december (looking for 6 calendar days up to but not including 28th dec.

22/12/2012 9 22/12/2012 Bad 23/12/2012 10 23/12/2012 22 24/12/2012 3 24/12/2012 21 25/12/2012 7 26/12/2012 18 26/12/2012 8 27/12/2012 15 27/12/2012 15 These 2 cells would be blank and this column would only contain values for 5 days.it could only correlate the 3 days of 23, 24 and 27.

Given that i'm going to be correlating this information with a number of locations, each with different reporting dates, filtering the dates before correlating and deleting unmatched dates is not a great option, but I will consider it if there is no other way.

View 9 Replies


ADVERTISEMENT

Pass Range Through UDF By Matching Dates

Nov 11, 2013

I'm trying to create a UDF that would be able to accept a column as an input range.

Match dates contained in two other cells and return the addreses so I can perform a function between the two addresses.

like Function multiplyrange(B2,B3,A:A)

So
B2= Start Date
B3= End Date
Column A is contains all the dates

sheet set up:

A
B

1
Start Date
1/3/2013

2
End Date
1/7/2013

[Code] ........

So it basically just multiplied all the values between the dates found.

View 7 Replies View Related

Data Matching And Import Function From 2 Workbooks Into Main

Aug 25, 2007

Im creating a cash reconciliation application for a BUS operator client that has 6 depots and 1500 drivers.

each driver is uniquely identified by a special number.

long story short, I get 2 workbooks (named Cash1 & Cash2) that I need to have imported by driver number in my main cash rec workbook named Cashrec.

for example; ...

View 9 Replies View Related

Correlation Between Data In Columns

Mar 3, 2014

I am now analysing the ordered correlations of products in a warehouse.For example, I have 16 products (product 1 to product 16) in my warehouse. During last month, there were totally 391 orders (order 1 to order 391). If a product is requested in a ordered, an "X" will be marked as per attached sheet.

Now my goal is to figure out which pair (or even triple) of products are ordered/requested at the same time (or in the same order) for the last month. I intend to use the analasys result to move the more ordered pair/triple products to stay near to each other at the warehouse so it will save the time for picking.

How to do that analysis?

View 8 Replies View Related

List Matching With Dates: Using Dates As Filters

Feb 12, 2009

I want to see if the people on list one are on list two. I need to come up with a formula that gives TRUE for each person on list one who is on list two and false for each person on list one who is not on list two. Several caveats: 1) there are people on list one who aren't on list two and vice versa, 2) the people have several defining characteristics which need to be met, and 3) dates are involved.

With respect to point three, TRUE should only appear if the people on list one are on list two and if they were employed by the organization on a specific date (ex: 3/5/1996); in order for the TRUE statement to appear in the G column, the person should not only be on list two but also be employed on a specific date. The specific date should fall within the start and end employment contract.

View 6 Replies View Related

Calculating Correlation Between Two Series Of Data

Dec 13, 2012

I have a list with hundreds of customers. Each customer has two measures (i won't bore you with how they are calculated)

1) % Coverage by Salesman
2) % Of Opportunity Won

What tips and tricks can you give me to take my analysis to the next level? The example is a very limited sample and the data was made up using a formula so correlated very well, i've chucked in a couple of anamlous results to make it a bit more realistic.

One of the main things i would like to see is a correlation "score". I suppose if the two series correlated perfectly then the score would be 100%. The less they correlate, then the lower this score gets....

In business terms, if i can run this rule over thousands of customers and get a good correlation - then it becomes a conversation with the salesman to show them that doing those pesky, boring coverage calls has a measurable impact on sales...and here is the number to prove it...

How I can interpret this data?

View 1 Replies View Related

Data From Asymmetric Correlation Table

Feb 20, 2008

I have an array of data (A,B,C,D,...,H) and a correlation/relationship data table (asymmetric data).
Out of the array data, i need to make a combination of 3 data out of 8 AND input the relationship data according to the combination.

I found a problem to take the reference from correlation data.

to help you understand my issue, i attached the file with this posting.

View 5 Replies View Related

Compiling Partially Matching Data Into Matching Rows With Macro

Jan 20, 2013

My task is to combine two large databases into one spreadsheet by extending the number of columns. The data from each database is 90% matching based on an identification number, however occasionally there are additional rows or unmatched identification numbers that need to be kept for analysis.

When this happens, there needs to be a blank row inserted to represent the missing data in the rest of the corresponding row.

I am having trouble finding a quick way to do this because I have approximately 12,000 rows (and columns up to DV when combined).

for example:

p1
data
data
data
data
p2
data
data
data
data

[Code] .....

needs to become:

p1
data
data
data
data

[Code] .....

I am guessing I will need a macro of sorts, So far I have made one column that tell me if the ID's are matching or not (1 or 0) and if they are not matching (0) I manually insert the rest of the row that is missing or make space for the duplicate data (which needs to remain).

View 5 Replies View Related

Matching Two Tables - Copying Data For Matching Value?

Feb 27, 2014

I have two tables, Table1 one has only customer codes in it, and I have Table2 with plenty of customer codes and those customer name, surname, age, location...

And I want to match and copy each of those customer codes in Table 1 all the information which is on Table2

Table 1:
50025
50026
50086

Table 2: Considering that name, age and location is each in separate cell

50025JohnSecond25Location 1
60085EmilyThird 20Location 2
45454Wilhelm Fourth35Location 3
10000RoseFifth 60Location 4
50086JohnySixth 45Location 5
65501JacobSeventh18Location 6
50026Jackie Eighth22Location 7

And the outcame should be that it finds the value from Table1 in Table2 and copy's information in Table 1 like this:

50025 JohnSecond25Location 1
50026 Jackie Eighth22Location 7
50086 Johny Sixth 45Location 5

View 2 Replies View Related

Copy Matching And Non Matching Data Into New Worksheet

Feb 20, 2014

I have two worksheet "ABX" and "ACX" from which I want to find the matching data for specific columns B, D and E only.

Matching data will be in sheet "Match" and vice versa.

Data are present dynamically.

View 1 Replies View Related

Insert Shape When Matching Dates Are Found?

Jan 17, 2013

I have a list of chronological dates from left to right in a single row starting in H1 and going out to say BY1 or further

In a single column (C:C) I have random dates.

I want to insert a shape when the dates in column matches the chronological list of dates in (1:1).

I want the shape to be inserted on the row on the random date and the column of the matching chronological date.

I have this so far:

VB:
Sub Shape3()
'
' Shape3 Macro

[Code]....

This works OK but for some reason the shape changes when the next random date in column C is not found.

View 1 Replies View Related

If Then Statement Regarding Matching Dates And Cell Totals

May 20, 2009

I have Column A with chronological dates. Some of them will be the same. If the dates are the same then the lowest row of those dates would need to add all the corresponding values in column D and print the total to column E

eg.
A1 through A3 = 2/12/2009
D1 through D3 would need to be added
E3 would display total for =d1:d3

it would then do this for each of the dates that match in Column A

View 4 Replies View Related

Excel 2010 :: Matching Dates With Row Numbers

Aug 5, 2013

I have a column of Dates in Col B with corresponding X values in Col C. I specify a start date in Cell F14 and an end date in Cell F16. I then use the function shown in cell H6 to identify the starting row number (corresponding to start date) in Cell F6. If I used the same function to identify the end row (in this case 4/2/13), it would choose row 8 which is the first row in which it encounters that date. Unfortunately, I need the end row to identify the last row that date appears in. In this case, that would be row 11.

Excel 2010ABCDEFGHIJKLM1 Date and TimeX2
3/30/201334/1/2013 1:366.9744/1/2013 4:563.95 54/1/2013 4:573.27
Start Row64/1/2013 5:165.553=MATCH(DATE(YEAR(F14),MONTH(F14),DAY(F14)),$B:$B)+174/1/2013 5:172.35
End Row84/2/2013 17:191.59894/2/2013 17:192.81 104/2/2013 17:252.14 114/2/2013 17:262.05 124/3/2013 5:152.84 134/3/2013 5:154.11
Start Row144/3/2013 5:173.2404/01/13154/3/2013 5:173.45
End Row164/3/2013 17:124.0304/02/13174/3/2013 17:133.621819Sheet1

View 7 Replies View Related

Formula For Matching Dates And Returning Values

Jun 18, 2008

I have a worksheet with a data sheet that has the values for a number of portfolios over a time period (one month)then I have a corresponding sheet for each portfolio (in the attached example I have included only portfolio 1). What I am trying to do is to make a formula in the sheet Portfolio 1 that matches the date in the Portfolio 1 sheet with the data sheet and by matching the date returning the value for the Portfolio 1 for the date ie date 2008-06-01 should return for portfolio 1 (from the data sheet) 500.

I have tried with varying Index and matching formulas and I do believe that this is the way to go.

View 3 Replies View Related

SUMIFS Not Matching Yyyymm Dates Stored As Strings

Jun 21, 2014

I have a data table on worksheet "Data" which has 2 dates (start and end) stored in columns in yyyymm format: (example 201204)

I also have a row/column table which is supposed to sum up balances which match both the start date in the column, and end date in the row, so that all unique combinations of start and end dates will have their own cells.

This is an example formula I am using

VB: =SUMIFS(Data!$K$2:$K$37233,Data!$F$2:$F$37233,"="&TEXT(R$6,"yyyymm"),Data!$H$2:$H$37233,"="&TEXT($B27,"yyyymm"))

I checked individually and the TEXT(R$6,"yyyymm") as well as the ($B27,"yyyymm") does return the yyyymm format.

The problem is that excel thinks that 201204 in the data table is different from the string "201204" and I keep getting zeros for that SUMIFS formula.

View 4 Replies View Related

Updating Range Of Data To Start On Specific Dates?

Mar 6, 2014

I am looking to have the data ranges in tab 'Type' update automatically in 'Output' for a particular start date. So for example if I enter LBO into cell E3 in the 'Output' tab it will input the data range for LBO from tab 'Type' but from a specific start date.

I know I can achieve part of this via LookUp functions but it is the start date that has me stumped.

View 8 Replies View Related

Lookup Range Of Cells And Populate Specific Cells Based On Matching Data?

May 23, 2014

I am trying to build a staff roster. The staff rotate over a 4 week cycle. the name of the staff member, and their shift needs to be looked up from the key then matched with the particular week. the name and shift then need to populate specific cells.

I have attached the worksheet so you can see what i am trying to achieve.

View 2 Replies View Related

Formula: Select A Range Of Dates Within A Range Of Dates?

Jul 22, 2009

In column B is a list of dates, which are broken out by fiscal year (FY=7/1/ to 6/30). Column C is a list of dollar amounts. Cell F3 is the query ‘start date’
Cell F4 is today's date, which will be the formula: =today()

Using a date range of F3:F4, I'm trying to get each cell bordered in red to query the dates in column B for each FY; then display the matching sum from column C.

For illustrative purposes I went and manually determined what the values should be displaying as of 7/22. Here are a couple of examples of how I am trying to get the formula to work.

Example 1
FY’08:
Start date- 7/1
End date- 7/22
Searching cells B1:B94, cells B1:B13 fall within the start and end date parameters listed above. Sum of cells C1:C13 is $45,112.00, which should display in cell F6.

Example 2
FY’09:
Start date- 7/1
End date- 12/13
Searching cells B95:B222, cells B95:B149 fall within the start and end date parameters listed above. Sum of cells C95:C149 is $150,873.03, which F7 should display in cell F7. How to I type up this formula; its way more challenging that I first thought!

View 5 Replies View Related

Pick Range Of Dates And Find Number Of Days Without Sales Between Those Dates

Feb 23, 2014

Here is my set up:

A2 to BF2 is a range of dates

A3 to BF3 are sales. Days without sales are 0.00

I want to pick a range of dates and find the number of days without sales between those dates. So, a formula that will look to a start date in A1 and an end date in B2, and then count the number of days that did not have sales between. Index/Match/Countif/Dateif I can't seem to make anything work.

View 3 Replies View Related

Function For Matching Last 4 Characters To Second Column

Feb 21, 2009

I've been trying to find this on the web but haven't a clue now, I have a database query that I am pulling from an access database and now I am trying to match the last four characters of a referral string to a current location, let me show you what I mean. Example,

A(location string) B(current location) C(last location)
car/kitchen/house kitchen NO
kitchen/garage/car car YES
kitchen/car/garage car NO

I want to write a function in column C that matches the last four characters of the location string (column A) with the current location (column B) , and if they match have a YES in column C, or a conversely a NO.

View 6 Replies View Related

Matching Names On Different Worksheets With Function To Add Abbreviations

Jan 12, 2010

writing a macro script. I want to find matching names on two diffferent worksheets. More specifically I need the ability to match if I apply a abbreviation(s) to worksheet one in order to get matches in worksheet two.

e.g Company = Co. or
Insurance = Ins

Please see my attached excel document for an example.

I have over 27000 lines so doing this manually will take forever!

Ideally I would like this to be a macro script that I can edit to add as many different abbreviations as required. The attached document will make my task a lot clear.

Unfortunately I don't have any starting code as I am not an excel/visual basic programmer, But i hope somebody will be able to help me out here.

The reason I need to do it this way is because I have been given a file from a partner company that uses different abbreviations to the ones we use in my company. I want to see if the companies in the list I have been given already exist in out company database, therefore we need a suitable matching procedure.

View 10 Replies View Related

Match Function Not Matching Text In Formula?

Jul 11, 2014

with Match function not matching text in this formula?

Using the below formula cell $L$11 (it contains "abc") will not match the respective cell contents in array E:E even though "abc" is in a cell within column E.

=IFERROR(INDEX('Paste In Data File'!G:G,MATCH($L$11,IF('Paste In Data File'!C:C=B14,'Paste In Data File'!E:E),0)),"")

The cells within column E are populated using a formula such as =IF(MID(A6,3,1)="a",MID(A6,435,9),"")

Column A is the data source and contains a text string.

After much trial and error, it seems the cause preventing the match is; $L$11 contains typed in text "abc" and the above formula for column E is pulling in 9 characters, not just 3.

It seems that if I can modify the entry for the array E:E to just look at the left 3 characters only, it may work.Problem is I do not know how to modify E:E accordingly.

View 2 Replies View Related

SendKeys Function - Copying Data From Range

Jul 22, 2014

I'm trying to use the SendKeys function to copy data from a range using a button.

I realise this is not the most elegant of ways to acheive the result, but there are a number of factors involved.

The range is laced with code.

View 4 Replies View Related

Counting Dates In A Range :: Count Weekend Dates

Feb 4, 2010

In Cells B2:B100, i have dates that which have been entered using a combo box (the dates type is for e.g. 14th March 2010 format)

I want a formula that will count the cells that have dates between 1st April 2010 to 30th June 2010 in cells B2:B100

Also, I would like a formula that counts weekend dates between 1st April 2010 to 30th June 2010?

View 9 Replies View Related

Huge Table Of Dates, Find Range Of Dates

Aug 16, 2006

I have a masive table of dates (the date is created via a if formula)
what i need is so wheni enter 2 dates in 2 cells the system checks all the dates between the two specified and then returns the contents of them to a small area on the page.

Dates To Test 14/08/2026 19/08/2026

Results

14/08/2026

15/08/2026

16/08/2026

17/08/2026

18/08/2026

19/08/2026

Table..............

i dont mind using script or anything like that, i dont have much knowlage of it but do have coniderable understanding of other langages and usually figure it out :D

View 3 Replies View Related

Adding Search Function To Delete Matching Records..

Jun 1, 2009

I'd like to do is click the delete button and when clicked, it will search for matching records in column A & B and if they match... I'm thinking the code for that is <> but I'm not sure, then delete that record, and shift the cells up. Do this until the search results are empty below the delete button. Like I said, it's probably more understandable to look at the workbook.

View 5 Replies View Related

Function For Recognizing Matching Text And Adding Up Columns

Jan 8, 2007

I am currently tracking online PPC keyword reports with Excel and need to know if there is a function that will find and match words and phrases and then add the columns that are queried for the matching words/phrases. I think an example is definately in order.

December PPC
Keyword Clicks Cost Revenue
large dogs 45 .18 $12.00
small dogs 35 .25 $15.00

January PPC
Keyword Clicks Cost Revenue
large dogs 12 .14 $8.25
small dogs 18 .18 $5.35

Now using the example above I need a function or maybe even a macro that will scan all "keywords" and find a match for each keyword each month, say large dogs, and then add the clicks, costs, and revenue columns and post them on a particular row or rows.

So when running the function it will find and match "large dogs" for each month, it will then add the clicks for all months with "large dogs" in it and then populate a column or row with the total along with the keyword "large dogs" next to it. Is there a function that will do this or maybe even a macro?

View 10 Replies View Related

Find Matching Document Value And Max Date Using Function Based On Certain Parameter

Sep 22, 2009

I have the following info in a table:

name | doc date | doc value
a | 2009/01/01 | IN111
b | 2009/02/04 | IN222
c | 2009/02/05 | IN333
a | 2009/01/05 | CN111
d | 2009/03/01 | IN444
b | 2009/03/01 | CN222
a | 2009/04/01 | IN555

Firstly, I need to find the LAST DOCUMENT DATE for "a" where #doc_value starts with IN*** (invoice). Manually, I can see that it would be "2009/04/01", but my spreadsheet runs 6000+ entries. I need a function to do this.

Secondly, I need to find the corresponding #doc_value for that date (in this case, IN555).

View 9 Replies View Related

How To Use Correlation In Vba

Feb 25, 2008

concerning the use of correlation in vba. What are my options when i want to calculate a correlation within vba. The variables are all still within vba.

Who knows what formula's i could use to keep everything within vba.

If you don't understand my question please ask so i can try to make it more clear.

View 9 Replies View Related

Match Function To Return Column Number For Matching Date Errors?

Aug 5, 2014

I am trying to use some vba match function code to return the column number of the matching date. The date will be stored in a date variable.

Every time I run this code I normally get a match error even though the date is in the worksheet and the variable matches that date.

See below:

[Code] .....

View 5 Replies View Related







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