- #1
steven757
- 7
- 1
- TL;DR Summary
- Phase Shift
Hi,
I have created a sine wave with the following options:
1.) - changing the period/length in days of the sine wave (Cycle Length in Days)
2.) - calculating the start value of the "dummy" so that the sine wave always starts with -1 (Dummy Start at Cycle Trough) when the phase shift is set to "0".
3.) - calculating the phase shift, so that the sine wave moves a specific amount of time/days forward when I enter a positive value greater "0" in the "Phase Shift" input cell ("N2") or backward when I enter a negative value smaller "0" in the "Phase Shift" input cell ("N2").
Here is my Excel formula:
=+SIN((2*PI()*$H$2*B4)-$N$2)
I have attached my Excel file so you can easily see how my calculations work.
Now my problem/question:
I want make a phase shift of the sine wave with a specific amount of days e.g. 20 days forward or backward.
How can I calculate the phase shift value I enter in the cell "N2" with a formula so that the sine wave moves exactly e.g. 20 days forward or backward?
This formula should of course also work when I change the period/length in days of the sine wave (Cycle Length in Days) I enter in cell "F2".
Many thanks for your help.
Steven
I have created a sine wave with the following options:
1.) - changing the period/length in days of the sine wave (Cycle Length in Days)
2.) - calculating the start value of the "dummy" so that the sine wave always starts with -1 (Dummy Start at Cycle Trough) when the phase shift is set to "0".
3.) - calculating the phase shift, so that the sine wave moves a specific amount of time/days forward when I enter a positive value greater "0" in the "Phase Shift" input cell ("N2") or backward when I enter a negative value smaller "0" in the "Phase Shift" input cell ("N2").
Here is my Excel formula:
=+SIN((2*PI()*$H$2*B4)-$N$2)
I have attached my Excel file so you can easily see how my calculations work.
Now my problem/question:
I want make a phase shift of the sine wave with a specific amount of days e.g. 20 days forward or backward.
How can I calculate the phase shift value I enter in the cell "N2" with a formula so that the sine wave moves exactly e.g. 20 days forward or backward?
This formula should of course also work when I change the period/length in days of the sine wave (Cycle Length in Days) I enter in cell "F2".
Many thanks for your help.
Steven