Sleepingsouls
New Member
- Joined
- Jan 22, 2018
- Messages
- 20
Hi guys,
Another tricky one (for me anyways), I have to pull data out of one work sheet into another based on a certain criteria (which is basically yes or no). I am already aware of how to do what is essentially a vlookup for multiple returns but my problem is I have 6 columns and I can't use the same formula for them because it will move the corresponding data up to the first cell.
My formula for Column X is =IFERROR(INDEX(Sat!$E$8:$E$36, SMALL(IF(($I$1=Sat!$AA$8:$AA$36), MATCH(ROW(Sat!$AA$8:$AA$36), ROW(Sat!$AA$8:$AA$36)), ""),ROWS($A$1:A4))),"")
Column Y cannot have the same formula as there will not always be information in the next column (Sat!E has the current data Sat!F will not always have data next to it) which means when F does have information I need returned it will move upwards and appear next to the wrong data in column X
E.g
Sat! (worksheet 1)
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, align: left"]E[/TD]
[TD="width: 64, align: left"]F[/TD]
[TD="width: 64, align: left"]G[/TD]
[/TR]
[TR]
[TD="align: left"]Client X[/TD]
[TD][/TD]
[TD="align: left"]No [/TD]
[/TR]
[TR]
[TD="align: left"]Client B[/TD]
[TD][/TD]
[TD="align: left"]No [/TD]
[/TR]
[TR]
[TD="align: left"]Client 1[/TD]
[TD][/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]Client 2[/TD]
[TD][/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Yes[/TD]
[/TR]
</tbody>[/TABLE]
Reporting (Worksheet 2)
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, align: left"]X[/TD]
[TD="width: 64, align: left"]Y[/TD]
[/TR]
[TR]
[TD="align: left"]Client 1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]Client 2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Internal[/TD]
[/TR]
[TR]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Internal[/TD]
[/TR]
</tbody>[/TABLE]
There are actually 6 Columns I need the data from and potentially others that aren't right next to each other like in this example. I just can't figure out how to do it without over complicating it.
Thank you
Another tricky one (for me anyways), I have to pull data out of one work sheet into another based on a certain criteria (which is basically yes or no). I am already aware of how to do what is essentially a vlookup for multiple returns but my problem is I have 6 columns and I can't use the same formula for them because it will move the corresponding data up to the first cell.
My formula for Column X is =IFERROR(INDEX(Sat!$E$8:$E$36, SMALL(IF(($I$1=Sat!$AA$8:$AA$36), MATCH(ROW(Sat!$AA$8:$AA$36), ROW(Sat!$AA$8:$AA$36)), ""),ROWS($A$1:A4))),"")
Column Y cannot have the same formula as there will not always be information in the next column (Sat!E has the current data Sat!F will not always have data next to it) which means when F does have information I need returned it will move upwards and appear next to the wrong data in column X
E.g
Sat! (worksheet 1)
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, align: left"]E[/TD]
[TD="width: 64, align: left"]F[/TD]
[TD="width: 64, align: left"]G[/TD]
[/TR]
[TR]
[TD="align: left"]Client X[/TD]
[TD][/TD]
[TD="align: left"]No [/TD]
[/TR]
[TR]
[TD="align: left"]Client B[/TD]
[TD][/TD]
[TD="align: left"]No [/TD]
[/TR]
[TR]
[TD="align: left"]Client 1[/TD]
[TD][/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]Client 2[/TD]
[TD][/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Yes[/TD]
[/TR]
[TR]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Yes[/TD]
[/TR]
</tbody>[/TABLE]
Reporting (Worksheet 2)
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, align: left"]X[/TD]
[TD="width: 64, align: left"]Y[/TD]
[/TR]
[TR]
[TD="align: left"]Client 1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]Client 2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Internal[/TD]
[/TR]
[TR]
[TD="align: left"]Internal[/TD]
[TD="align: left"]Internal[/TD]
[/TR]
</tbody>[/TABLE]
There are actually 6 Columns I need the data from and potentially others that aren't right next to each other like in this example. I just can't figure out how to do it without over complicating it.
Thank you
Last edited: