Timer and Frequency counter Macro

Vbalearner85

Board Regular
Joined
Jun 9, 2019
Messages
139
Office Version
  1. 2016
Platform
  1. Windows
Hi VBA Gurus,

I am looking for below excel macro..if that is possible..."Basically trying to set timer and frequency counter - for which values go below and above certain values (Please refer screenshot attached for exact format)"

1) Column A has Ratio which is formula fed by system feed (Please note ratio value is not manual Input).
2) Column B has manual input by user , if ratio(Col A) is less than column B value, then need timer(secs for which condition is met) in Column D and frequency(no of times condition is met) in Column F
2) Column C has manual input by user, if ratio(Col A) is greater than column C value, then need timer(secs for which condition is met) in Column E and frequency (no of times condition is met) in Column G
3) Timer should reset each time to 0 when condition is met and then count secs for which condition is met
4) Frequency should start from 1 when condition is met first time and then increase by 1 each time condition is re-met
5) Each row data is independent of each other and timer/frequency needs to be calculated separately

Thanks in advance for your sharing your great knowledge :) :)
 

Attachments

  • Timer_Frequency counter.PNG
    Timer_Frequency counter.PNG
    32 KB · Views: 25

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi. I have a few questions for you.

You have < and > covered. What if the ratio is equal to columns B or C?
What if the same ratio occurs consecutively? Does that increment the frequency counter?
How are you getting your data? DDE? COM Server? API? Other? Please post an example of what you are calling a formula.
From what service. AmiBroker? Some other?
 
Upvote 0
Hi,

1) Looking to analyse particular range only .....Eg. greater than 1.5 or less than 0.9. Conditions >= or <= conditions can also be set or < and >. Either way it is fine
2) Frequency is incremental whenever ratio enters in the range mentioned , be whatever the ratio (same or different)- but withing range mentioned
3) Data is coming from another sheet. which is API pull..for Example Sell Qty/ Buy Qty
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top