Automating Selection

crusher32

New Member
Joined
Jul 23, 2015
Messages
3
I have a question for all those with more Excel experience than I. We perform thermal cycling here at work and include event detection. The thermal cycles are performed in 100 cycle sessions. The event detection tells us when an electrical part has failed. When a part fails, the programs returns the thermal cycle number and the temperature as which the failure occurred. To avoid false positives we do not remove/short the channel until this process has occurred during consecutive thermal cycle sessions. The spreadsheet I have set up shows the data in a horizontal form (cycle #, temperature). Presently, when a first event/temp is enter into the spreadsheet I create a formula in Col B in the form (for row 6) if(J6+L6=J6,"",J6). This keeps B6 blank until there is an event entered in Col L6. As you can see from row 4, the data is enter in B4 when there has been event in two consecutive sessions. The entering of the formula is both time consuming and are a point of possible error. I am looking for a formula/function that will look for the event/temp data across several thousand cycles (Columns A to infinity), find the first event/temp, verify there is a subsequent one in the next thermal cycle session (eg. Col N and P) and then take the data from the first set of event/temp and record it in Col B. It should do the same for the temperature info in Col C. I hope that I have explained my issue sufficiently and hope that someone can offer a solution.


ABCDEFGHIJKLMNOPQ
1Ch #
Failure CycleFailure Temp1101201226301401501
2100200225300400500600
3CycleTempCycleTempCycleTempCycleTempCycleTempCycleTempCycleTemp
41425127 425127540-26
52
63 26378
74
8
Thanks

Jerry

<colgroup><col><col span="3"><col span="14"></colgroup><tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I have a quick question.

If the formula in B6 is
Code:
=if(J6+L6=J6,"",J6)
how does it have a value? Both L and J in row 6 are blanks, 425 appears to be the value of N6 which isn't in your formula.

-Ray
 
Upvote 0
Ray
You got me.

The formula in cell B4 should be =if (N4+P4=N4,"",N4). If there is a value in both N4 & P4 the value of N4 would show in cell B4
 
Upvote 0
My first thought would be to use the MATCH function in combination with an IF function to find out if there is another value 2 columns from the successful match function. This would only work for the first column that had a value though.

Would a VBA function be ok for this task? I would definitely know how to create that.

-Ray
 
Upvote 0
Just Googled VBA function. If you think this would work for many row and columns of data. The parts can fail at any time.

-Jerry
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,050
Members
449,206
Latest member
Healthydogs

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