Extracting Certain Conditions from a Master Worksheet.

NucEng

New Member
Joined
Nov 17, 2013
Messages
2
So I am a engineer running a test that usually has 150 conditions. Every odd condition is a "equilibrium condition" that is meant to stabilize the test rig between the even conditions. The even conditions are the actual results I want to look at and evaluate.


I've been trying to use a IF functions or Vlookup to extract the even conditions into a separate worksheet automatically. But I can't seem to figure out how to grab the information I want automatically.


So basically I want to take all of the corresponding values for condition 2 (the whole row of values) and put them in a separate worksheet. A repeat for every even condition, regardless of how long it is or how long the other conditions are. Sometimes the data points are taken at different times and so having a template that works regardless of the amount of data would be amazing.


I included a sample of what it looks like. ( very basic, usually the conditions are much longer.)


Thanks for your help!!! I've watched hours of tutorial videos and I can't seem find a easy way to do this automatically.

ConditionData 1Data2Data 3Data 4
10000
10000
21002454654
21042940677
30000
30000
41504090700
41554288721
50000
50000
621080200900

<tbody>
</tbody>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
So I am a engineer running a test that usually has 150 conditions. Every odd condition is a "equilibrium condition" that is meant to stabilize the test rig between the even conditions. The even conditions are the actual results I want to look at and evaluate.


I've been trying to use a IF functions or Vlookup to extract the even conditions into a separate worksheet automatically. But I can't seem to figure out how to grab the information I want automatically.


So basically I want to take all of the corresponding values for condition 2 (the whole row of values) and put them in a separate worksheet. A repeat for every even condition, regardless of how long it is or how long the other conditions are. Sometimes the data points are taken at different times and so having a template that works regardless of the amount of data would be amazing.


I included a sample of what it looks like. ( very basic, usually the conditions are much longer.)


Thanks for your help!!! I've watched hours of tutorial videos and I can't seem find a easy way to do this automatically.

ConditionData 1Data2Data 3Data 4
10000
10000
21002454654
21042940677
30000
30000
41504090700
41554288721
50000
50000
621080200900

<tbody>
</tbody>

Hi, not sure if this will fit your query.
Given in Sheet1 cell A1:
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl63 { text-align: center; vertical-align: middle; white-space: normal; }</style>
ConditionData 1Data2Data 3Data 4
10000
10000
21002454654
21042940677
30000
30000
41504090700
41554288721
50000
50000
621080200900

<colgroup><col style="width:65pt" span="5" width="65"> </colgroup><tbody>
</tbody>

In Sheet2 cell A1:
<style>table { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 12pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }</style>
condition4
1504090700
1554288721

<colgroup><col style="width:65pt" span="5" width="65"> </colgroup><tbody>
</tbody>

Formula in B2 is =IFERROR(INDEX(Sheet1!B$2:B$12,SMALL(IF($B$1=Sheet1!$A$2:$A$12,ROW(Sheet1!$A$2:$A$12)-MIN(ROW(Sheet1!$A$2:$A$12))+1,""),ROW(Sheet1!A1))),"") Ctrl + Shift + Enter, not just enter on a PC or Command + Return on a MAC.
Copied right till Column E and down till needed.

Change value in B1 to fit your required condition.

Would that be close to what you need?
 
Upvote 0
Yes that's exactly what I was looking for. Thank you so much for your help! You've saved me hours of work. :biggrin:
 
Upvote 0
Yes that's exactly what I was looking for. Thank you so much for your help! You've saved me hours of work. :biggrin:

Most welcome.
Glad it worked for you, and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,692
Members
449,117
Latest member
Aaagu

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