Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA: Select range of data and plot chart

Status
Not open for further replies.

xitu

Technical User
Oct 1, 2003
55
US
I have this sample excel spreadsheet:

The original columns are "Time", "Pressure" and "Diff. Pressure".

I would like to build a macro to do the following things:

- Mark "HP-Start" if the max Pressure is found (within HP range) and mark "HP-End" when it reaches the last "HP" cell in this block.

- Set counter = 0:00:00 in column "Time" and the increment is 3.
- Set counter = 0 in column "Diff. Pressure" but the next cell will a calculation (the formula is shown in the above excel worksheet)

- Finally, plot column "Time" and column "Diff. Pressure"

Note: This sample is one of blocks I have in my Excel. How do I write a macro to loop the whole worksheet?
Please help.

Thanks,
XT
 
WITHOUT USING VBA?
IN CELL F15


=IF(AND(B16<11300,D16=&quot;&quot;,D15=&quot;HP&quot;),&quot;HP-END&quot;,&quot;&quot;)


FILL UP OR DOWN
 
Oooops ... I answered the question in the cell, rather than your post....stay tuned
 
I am still working on this... Does anyone have any idea? I need your help.

Thanks,
XT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top