I am currently looking to find the time range that a piece of equipment was running at capacity, I would like to calculate it in VBA, so as not to clutter my spreadsheet. I have two problems with this.
To better explain the end goal:
- For Startup: A Unit starts at 0F, goes through 800F and stabalizes at 1000F
- For shutdown: A Unit starts at 1000F, goes through 800F and stabalizes at 0F
I need the timestamps for the two times it was at 800F. I DO have access to the timestamps after the Unit has fully shut down and is at 0F
I have these working for * and *-600 as the timestamps, and printing the FindEq function to a cell before using it, but I need to be able to use other timestamps.
Problem 1)
I am not able to use Timestamps in a FindEq equation
I need:
FindEq('tagname', [timestamp],[timestamp-600 d],800)
Problem 2)
I am currently using a "=PIExpVal()" function to output the times, but cannot seem to get it to work without first writing the FidEQ function in to a cell.
I need:
=PIExpVal('FindEq(...)',[timestamp],0,"SrvName")
I am only able to get this by using a FindEq function with * timestamps in A1 and * in B1:
Cells(0,1).Value = "=PIExpVal(A1,B1,0," & servName & "))
I apologize if this is too many questions in one post, or is difficult to understand. I will clarify anything that I am able.
-Rich