## Autocorrelation Function |

## Autocorrelation Function - Excel |
View Answers |

i am trying to calculate the autocorrelation function of returns of a single stock.

any suggestions? ive calculated the daily returns but am stumped on what to do next. ive been messing with the CORREL function in excel but i havent been getting very far.

any comments would be appreciated!

any suggestions? ive calculated the daily returns but am stumped on what to do next. ive been messing with the CORREL function in excel but i havent been getting very far.

any comments would be appreciated!

## Free Excel Help Forum

**- Ask any question about Excel and have it answered in no time.**

## Similar Excel Tutorials

NOT Function - Change False to True and True to False in Excel

Change True to False and False to True with this simple function in Excel. To do this, we use the NOT function. Syn ...

Change True to False and False to True with this simple function in Excel. To do this, we use the NOT function. Syn ...

How to Find and Understand Excel Functions

In this tutorial I am going to show you how to find and understand new Excel Functions. If you go to the Formulas t ...

In this tutorial I am going to show you how to find and understand new Excel Functions. If you go to the Formulas t ...

Add Description Text to a UDF in Excel

How to add a description for a UDF (User Defined Function). This allows the user to understand what the function d ...

How to add a description for a UDF (User Defined Function). This allows the user to understand what the function d ...

MODE() - Find Most Repeated Value in a List in Excel

The MODE() function in Excel allows you to quickly find the most repeated or frequently occuring value within a lis ...

The MODE() function in Excel allows you to quickly find the most repeated or frequently occuring value within a lis ...

## Subscribe for Weekly Tutorials

### Helpful tutorials delivered to your email!

## Helpful Excel Macros

Determine if a Cell Contains a Function in Excel - Great for Conditional Formatting and Validation - UDF

- Determine if a cell in Excel contains a formula or function with this UDF (user defined function). This function return

- Determine if a cell in Excel contains a formula or function with this UDF (user defined function). This function return

Get Text from Comments in Excel Including the Author of the Comment - UDF

- Output all text from a cell comment, including comment author, with this UDF in Excel. This UDF (user defined function)

- Output all text from a cell comment, including comment author, with this UDF in Excel. This UDF (user defined function)

Calculate the Future Value (FV) of Compound Interest in Excel - UDF Macro

- This UDF (user defined function) calculates the Future Value of Compound Interest in Excel. The mathematical formula th

- This UDF (user defined function) calculates the Future Value of Compound Interest in Excel. The mathematical formula th

Extract the First Word from a Cell in Excel - User Defined Delimiter Text Extraction - UDF

- This free Excel UDF (user defined function) returns the first word from a cell in Excel. This extracts the first word f

- This free Excel UDF (user defined function) returns the first word from a cell in Excel. This extracts the first word f

Output the Worksheet Name in a Cell in Excel - UDF

- UDF to return the name of the worksheet in Excel on which this function is located. There are no arguments for this fun

- UDF to return the name of the worksheet in Excel on which this function is located. There are no arguments for this fun

## Similar Topics

So I've got some data, which has the approximate form of a sine function. I want to find all the x-axis intercepts. I tried using the intercept function and swapping around the y values for the x values, but it only returns 1 value (so I'd guess it uses a linear regression to estimate a single line through the axis).

I was thinking of trying a nested if/and statement but I haven't quite figured out how to do it. Basically I want to identify the two values where it switches from positive to negative and also indentify the values where it goes negative to positive, I can then fit a straight line between them to find a better approximation of the intercept (though it might not be necessary). Preferably I'd like it all one function as I'm not doing it in VBA (I might do later though, we'll see).

Can anyone suggest how I'd find these value or the x-intercept. Any help would be greatly appreciated.

I was thinking of trying a nested if/and statement but I haven't quite figured out how to do it. Basically I want to identify the two values where it switches from positive to negative and also indentify the values where it goes negative to positive, I can then fit a straight line between them to find a better approximation of the intercept (though it might not be necessary). Preferably I'd like it all one function as I'm not doing it in VBA (I might do later though, we'll see).

Can anyone suggest how I'd find these value or the x-intercept. Any help would be greatly appreciated.

Is there an Excel guru that can help with this - its related to "drop down menus"

I have 2 colombs of data.

AT the bottom of the first, I have created a drop down menu using the "data validation" feature in excel.

At the bottom of the second colomb, I have used an "IF" function that returns a result, which depends on what value is chosen from the drop down menu in colomb 1

The problem I have is that I want the TRUE result from the IF function to be another drop down menu, being the data in colomb 2.

How do you write an IF function where the TRUE result is a drop down menu??

I tried to create a drop down menu of colomb2 elsewhere in the spread sheet, and used that cells location as the TRUE value, but this didn't work either...

ANy suggestions??

I have 2 colombs of data.

AT the bottom of the first, I have created a drop down menu using the "data validation" feature in excel.

At the bottom of the second colomb, I have used an "IF" function that returns a result, which depends on what value is chosen from the drop down menu in colomb 1

The problem I have is that I want the TRUE result from the IF function to be another drop down menu, being the data in colomb 2.

How do you write an IF function where the TRUE result is a drop down menu??

I tried to create a drop down menu of colomb2 elsewhere in the spread sheet, and used that cells location as the TRUE value, but this didn't work either...

ANy suggestions??

I am trying to work out how to calculate the geometric mean of a series of values, some of which are negative, ie. investment returns over a series of years with some negatives.

The Geomean function doesn't work because it only uses positive numbers.

Any help would be greatly appreciated.

The Geomean function doesn't work because it only uses positive numbers.

Any help would be greatly appreciated.

Hello,

I have two columns of data: column A contains the date and time in the form dd/mm/yyyy. Column B contains a number value. All the times are in order, so column A looks like:

01/01/2007

02/01/2007

03/01/2007

I have data from 2007 to 2010. I need to calculate an average daily value (in column B) for each month, and display it in column C. So, for January, I need to calculate the average of 31 days, February, 28 days, etc.

Is there a function I can use to do this? I've been trying the AVERAGEIF formula but can't get it to work. Any ideas would be much appreciated!

Many thanks,

Caitlin

I have two columns of data: column A contains the date and time in the form dd/mm/yyyy. Column B contains a number value. All the times are in order, so column A looks like:

01/01/2007

02/01/2007

03/01/2007

I have data from 2007 to 2010. I need to calculate an average daily value (in column B) for each month, and display it in column C. So, for January, I need to calculate the average of 31 days, February, 28 days, etc.

Is there a function I can use to do this? I've been trying the AVERAGEIF formula but can't get it to work. Any ideas would be much appreciated!

Many thanks,

Caitlin

Need a formula to calculate weeks stock in hand based on 12 months forecast.

Here is the example.

Jan2011 Feb2011 Mar2011 Apr2011 May2011 Jun2011 Jul2011 Aug2011 Sep2011 Oct2011 Nov2011 Dec2011 ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- Product XXXXX Actual/Forecast : 174 1674 574 574 524 524 524 524 524 728 728 728 New Purchases : 0 0 0 0 1002 0 0 0 0 0 0 0 Goods In Transit: 0 1506 0 0 0 0 0 0 0 0 0 0 Other Movements : 0 0 0 0 0 0 0 0 0 0 0 0 Closing Stock : 1270 1102 528 -46 432 -92 -616 -1140 -1664 -2392 -3120 -3848 Week Stock in Hand ? ? ? ? ? ? ? ? ? ? ? ?

So, in Month of Jan2011 the Closing stock is 1270, need a formula to calculate how many weeks will this stock cover look at future forecast.

Here is the example.

Jan2011 Feb2011 Mar2011 Apr2011 May2011 Jun2011 Jul2011 Aug2011 Sep2011 Oct2011 Nov2011 Dec2011 ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------- Product XXXXX Actual/Forecast : 174 1674 574 574 524 524 524 524 524 728 728 728 New Purchases : 0 0 0 0 1002 0 0 0 0 0 0 0 Goods In Transit: 0 1506 0 0 0 0 0 0 0 0 0 0 Other Movements : 0 0 0 0 0 0 0 0 0 0 0 0 Closing Stock : 1270 1102 528 -46 432 -92 -616 -1140 -1664 -2392 -3120 -3848 Week Stock in Hand ? ? ? ? ? ? ? ? ? ? ? ?

So, in Month of Jan2011 the Closing stock is 1270, need a formula to calculate how many weeks will this stock cover look at future forecast.

I have cells in a column, some colored yellow, some not. I am trying to use

the SUMIF function to sum only the cells in the range that are colored. Can

this be done? Can I enter something in the "criteria" part of the formula

that can do this?

=SUMIF(D3:D13,"criteria",D3:D13)

I also tried to use the CELL function's color feature, but I couldn't get it

to work right. I don't know how to get Excel to recognize if a cell is

colored in a formula.

=CELL("color",cell)

It might just be that I don't know what this means in Help:

"color" --> 1 if the cell is formatted in color for negative values;

otherwise returns 0 (zero).

Can anyone help?

the SUMIF function to sum only the cells in the range that are colored. Can

this be done? Can I enter something in the "criteria" part of the formula

that can do this?

=SUMIF(D3:D13,"criteria",D3:D13)

I also tried to use the CELL function's color feature, but I couldn't get it

to work right. I don't know how to get Excel to recognize if a cell is

colored in a formula.

=CELL("color",cell)

It might just be that I don't know what this means in Help:

"color" --> 1 if the cell is formatted in color for negative values;

otherwise returns 0 (zero).

Can anyone help?

Entering time values in custom format [h]:mm:ss

Cells accept hours over 23,

Adding cells in column returns correct total time.

Have not found a way to multiply these cells by a $ hourly rate.

So use HOUR(cell ref) and MINUTE(cell ref) to capture values in referenced

cell - then use these values to calculate total payment for $rate per hour.

However, the HOUR(cell ref) formula returns the hours in excess of 24 when

the cell contains an hour value in excess of 23 (ie 27 hours returns 3).

Cells accept hours over 23,

Adding cells in column returns correct total time.

Have not found a way to multiply these cells by a $ hourly rate.

So use HOUR(cell ref) and MINUTE(cell ref) to capture values in referenced

cell - then use these values to calculate total payment for $rate per hour.

However, the HOUR(cell ref) formula returns the hours in excess of 24 when

the cell contains an hour value in excess of 23 (ie 27 hours returns 3).

I have a sheet with a list of names on and I've noticed that when I use ctrl+F to use the find function, even when I know i have entered the correct name it still will not work. I have identifed times when I know the name is there on the sheet, but the find function says "Excel cannot find the data you are searching for"

Im unable to put any pics up as my work pc has java disable so photobucket ect won't work but has anyone else come across this problem and how did you rectify it? A search macro perhaps?

Im unable to put any pics up as my work pc has java disable so photobucket ect won't work but has anyone else come across this problem and how did you rectify it? A search macro perhaps?

Since there isn't a ISDATE function in excel.

The following can be used to simulate the same, and avoid having to achieve the same with VBA's IsDate function:

STEPS:

1- Format the column (ex A) as text

2- Formula to check for valid dates:

=ISERROR(DATEVALUE(A1))

The following can be used to simulate the same, and avoid having to achieve the same with VBA's IsDate function:

STEPS:

1- Format the column (ex A) as text

2- Formula to check for valid dates:

=ISERROR(DATEVALUE(A1))

Good day... I need an IF Function that will allow me to action a time in a time range:

... If the time 04:16 falls in the time range 04:00 - 04:29, than put a one (1) in the filed x...

... If the time 04:16 doesn't fall in the time range 04:00 - 04:29, than leave the x fiel empty

Any help is appreciated.

... If the time 04:16 falls in the time range 04:00 - 04:29, than put a one (1) in the filed x...

... If the time 04:16 doesn't fall in the time range 04:00 - 04:29, than leave the x fiel empty

Any help is appreciated.

Is it possible to share a workbook with macros and have the macros work properly. I have one spreadsheet that needs to be shared by many users. We want to all be in the same document at the same time saving changes. The real catch is that the workbook has macros. I used the 'Share Workbook' function under tools. At the end of the setup, it told me that the macros would not work properly. The odd thing is that everytime I try to click on one of the macros I get an error, but yet the macro still performs the function. So essentially the macro works, it is just a pain because you have to click 'end' everytime on the error screen. Any suggestions?

Alanda

Alanda

I am creating a data sheet to be completed by other users. I would like to

format the text cells (name, etc) to have text entered as uppercase

automatically although the user might use title or lower case.

UPPER function cannot make cell look at itself and perform the function

Excel 2003

format the text cells (name, etc) to have text entered as uppercase

automatically although the user might use title or lower case.

UPPER function cannot make cell look at itself and perform the function

Excel 2003

Hello, I am pretty new to excel programming/messing around so I'll refer to those who are much wiser than I am. I am trying to set up a form for work, in this form I want to have a page with a bunch of cells pre-sized. What I want to do is when I insert a picture from a job site, that when this picture gets inserted, it will automatically resize to fit within the cell. I don't have time to manually resize dozens of pictures and if I could get this to work it would be awesome! I tried to search for an answer using the search function, but I kept getting a fatal error about allowable memory? Thanks in advance for you help!

Is there a worksheet function that will generate all possible combinations of

a set of given numjbers. For example, 1, 3 and 8 would generate 138, 183,

318, 381, 813, 831 and so on...

a set of given numjbers. For example, 1, 3 and 8 would generate 138, 183,

318, 381, 813, 831 and so on...

On my calculator, if I divide 462,534.05 by 335 I get 1,380.70. Then if I times 1,380.70 by 335 I get 462,534.50. Which is what I need it to be because I need to calculate the difference of a figure not dividing equally.

On excel, if I divide 462,534.05 by 335 I get 1,380.70. Then if I times 1,380.70 by 335 I get the SAME result of 462,534.05.

I have to account for the difference of not dividing equally so there is some format or accounting function that's preset that I don't want but I have no idea how to fix it or format my excel sheet to calculate as my calculator would.

Please can someone help? Thanks!

On excel, if I divide 462,534.05 by 335 I get 1,380.70. Then if I times 1,380.70 by 335 I get the SAME result of 462,534.05.

I have to account for the difference of not dividing equally so there is some format or accounting function that's preset that I don't want but I have no idea how to fix it or format my excel sheet to calculate as my calculator would.

Please can someone help? Thanks!

I have entered a vlookup formula in a cell and it returns the correct value from the other worksheet. However when I copy the formula down it keeps returning the exact same value as the first cell. If I enter a formula in each individual cell it returns the correct value. Its driving me crazy ! I woyld be glad of any advice

Many Thanks

Karamazov

Many Thanks

Karamazov

I need a formula to automatically calculate if the Job was completed in the

date range that was provided, and to return Early, Late or Ok accordingly.

date range that was provided, and to return Early, Late or Ok accordingly.

Hi Everybody,

First post on the forum, have only recently joined and im hoping that someone can help me before my head explodes!

I am trying to prepare a simple Material Quantity List for some Steel materials.

The materials are all in specific sizes.

What i want to do is, as i input the length, width and height of the structure in the spreadsheet, the Material Quantity List will generate the quantity of each piece of material i will need.

Does anybody know of a formula for this. I have been trying to use the IF function and getting absolutely nowhere, all suggestions will be highly appreciated!!

First post on the forum, have only recently joined and im hoping that someone can help me before my head explodes!

I am trying to prepare a simple Material Quantity List for some Steel materials.

The materials are all in specific sizes.

What i want to do is, as i input the length, width and height of the structure in the spreadsheet, the Material Quantity List will generate the quantity of each piece of material i will need.

Does anybody know of a formula for this. I have been trying to use the IF function and getting absolutely nowhere, all suggestions will be highly appreciated!!

This is probably an easy question for most of you, but it's killing me. I tried searching before I posted this, but the suggestions given didn't seem to work for me.

I need to look up data from a cell on one Excel sheet, compare it to a list on a 2nd sheet and when they equal, take a value from a different column on the 2nd sheet and drop it back on the 1st sheet. Since that's a horrible explanation, let me try explaining it this way:

Sheet 1

Column A has a long list of code type 1s

Column E has a long list of code type 2s

Sheet 2

Cell C2 has code 1

Cell E2 needs code 2

I know it should take an index/match function, but nothing I try is working. What I'm trying is the following formula in Cell E2 of sheet 2:

=INDEX('Sheet 1'!A:A,MATCH(C2,'Sheet 1"!E:E,0),5)

But all I get is no result. What's driving me bonkers is that if I copy everything over to a single sheet, that formula works fine.

I need to look up data from a cell on one Excel sheet, compare it to a list on a 2nd sheet and when they equal, take a value from a different column on the 2nd sheet and drop it back on the 1st sheet. Since that's a horrible explanation, let me try explaining it this way:

Sheet 1

Column A has a long list of code type 1s

Column E has a long list of code type 2s

Sheet 2

Cell C2 has code 1

Cell E2 needs code 2

I know it should take an index/match function, but nothing I try is working. What I'm trying is the following formula in Cell E2 of sheet 2:

=INDEX('Sheet 1'!A:A,MATCH(C2,'Sheet 1"!E:E,0),5)

But all I get is no result. What's driving me bonkers is that if I copy everything over to a single sheet, that formula works fine.

Hello, please help me out with this one.

So I am at work workin on this report and I need a function that will make Excel automatically insert the today's date in a cell (let's say D90) when I fill the content of another cell (for example C90) and the that will be inserted will never change. I tried to use the =TODAY( ) function but it keeps updating the date in the cell to the current date if i reopen the worksheet 2 days later. I need the cell to keep in the cell the date of the day when I filled in the content of cell C90 and do not updated it every time i open the document to the actual date.. Thanks in advance!!

So I am at work workin on this report and I need a function that will make Excel automatically insert the today's date in a cell (let's say D90) when I fill the content of another cell (for example C90) and the that will be inserted will never change. I tried to use the =TODAY( ) function but it keeps updating the date in the cell to the current date if i reopen the worksheet 2 days later. I need the cell to keep in the cell the date of the day when I filled in the content of cell C90 and do not updated it every time i open the document to the actual date.. Thanks in advance!!

Hi there

I am trying to calculate our On Time Delivery. I want this as a simple percentage of jobs. I have got this running in the following way:

Column M - Estimated Delivery dates

Column N - Actual Delivery dates

Column O - =IF(SUM(M2-N2)>0,1,0)

Then I have calculated On Time Delivery as: =SUM((SUM(O2:O252))/(COUNTA(N2:N252)))

This seems to work fine. My problem is, if we enter a date in Estimated without a corresponding Actual date, the formula for Column O fills out anyway and improves our On Time Delivery Percentage. How can I set this up so that the formula doesn't calculate if there is no data in Column N?

Any help much appreciated

Thanks,

James

I am trying to calculate our On Time Delivery. I want this as a simple percentage of jobs. I have got this running in the following way:

Column M - Estimated Delivery dates

Column N - Actual Delivery dates

Column O - =IF(SUM(M2-N2)>0,1,0)

Then I have calculated On Time Delivery as: =SUM((SUM(O2:O252))/(COUNTA(N2:N252)))

This seems to work fine. My problem is, if we enter a date in Estimated without a corresponding Actual date, the formula for Column O fills out anyway and improves our On Time Delivery Percentage. How can I set this up so that the formula doesn't calculate if there is no data in Column N?

Any help much appreciated

Thanks,

James

Is there any way to automatically lock in the date after you pull it up with the TODAY function? Or is there another function that will do what I'm trying to do?

I want it to automatically fill in today's date, when a certain empty cell has a value put in, then freeze there.

Thanks in advance!

I want it to automatically fill in today's date, when a certain empty cell has a value put in, then freeze there.

Thanks in advance!

I am using the code below to disable the save function very successafully. However, is there a work around to allow a macro to save?

----------------------------------------------------------------------

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

'this disables the save function on the XLS

MsgBox "****Save is Disabled****"

' Following line will prevent all saving

Cancel = True

' Following line will prevent the Save As Dialog box from showing

If SaveAsUI Then SaveAsUI = False

End Sub

----------------------------------------------------------------------

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

'this disables the save function on the XLS

MsgBox "****Save is Disabled****"

' Following line will prevent all saving

Cancel = True

' Following line will prevent the Save As Dialog box from showing

If SaveAsUI Then SaveAsUI = False

End Sub

Is it possible to have numbers added to the same cell and have excel continue

to calculate the addition for me in that same cell......ex: I have the number

8 in cell d2 and I want to add the number 8 to that cell and have excel add

the 8 to the previous 8 for a total of 16 in the same cell.....the next time

I would add 5, and the total would be 21? Can this be done in a single cell?

to calculate the addition for me in that same cell......ex: I have the number

8 in cell d2 and I want to add the number 8 to that cell and have excel add

the 8 to the previous 8 for a total of 16 in the same cell.....the next time

I would add 5, and the total would be 21? Can this be done in a single cell?

Hi,

Im working with a large data spreadsheet that has Yes and No answers in different columns. There are blanks within the selection too.

I need to calculate only the Yes.

I have tried using the filters in the Pivot Table field list and they are not working.

So now i'm trying to add a COUNTIF formula in the Calculated Fields section.

The formula I'm using is =Countif('Time limit extension'="yes") and i get the answer "too few."

What should I be using in the formula to get the calculated field to work? I have search the whole forum and I haven't found an answer that can help me.

Please HELP!!!

Im working with a large data spreadsheet that has Yes and No answers in different columns. There are blanks within the selection too.

I need to calculate only the Yes.

I have tried using the filters in the Pivot Table field list and they are not working.

So now i'm trying to add a COUNTIF formula in the Calculated Fields section.

The formula I'm using is =Countif('Time limit extension'="yes") and i get the answer "too few."

What should I be using in the formula to get the calculated field to work? I have search the whole forum and I haven't found an answer that can help me.

Please HELP!!!