Maybe the example below will give you a start. It will bring the data over without blank rows, but won't sort the way you want.
The formula in F2 is an array formula that must be entered with CTRL-SHIFT-ENTER and then drag down column as needed.
Formula in G2 needs to be dragged down and across as needed.
Sheet2
| C | D | E | F | G | H | I | J | K |
| | | | | | | | | |
| | Sold Split | Company E | Existing | | | | | |
| | | Sold | Company F | New | | | | |
| | | Sold | Company G | National | | | | |
| | | | | | | | | |
<colgroup><col style="width:30px; "><col style="width:64px;"><col style="width:79px;"><col style="width:39px;"><col style="width:85px;"><col style="width:116px;"><col style="width:100px;"><col style="width:86px;"><col style="width:87px;"><col style="width:80px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: center"]Month[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: center"]Row Index[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] "]Pipeline Phase[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] "]Date[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] "]Company[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] "]Sale Type[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] "]Amount[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: center"]10/1/2017[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]10/1/2017[/TD]
[TD="align: right"]1500[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]10/1/2017[/TD]
[TD="align: right"]750[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]10/1/2017[/TD]
[TD="align: right"]600[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
</tbody>
Spreadsheet Formulas |
Cell | Formula | F2 | {=IFERROR(SMALL(IF(Sheet1!$F$2:$F$9=1,ROW(Sheet1!$A$2:$A$9)-ROW(Sheet1!$A$2)+1),ROWS($F$2:F2)),"")} | G2 | =IF($F2="","",INDEX(Sheet1!$A$2:$F$9,$F2,MATCH(G$1,Sheet1!$A$1:$E$1,0))) |
<tbody>
</tbody> |
Formula Array:
Produce enclosing { } by entering
formula with CTRL+SHIFT+ENTER! |
<tbody>
</tbody>
Sheet1
| A | B | C | D | E | F |
| | | | | | |
Prospect | Company A | National | | | | |
Quoted | Company B | New | | | | |
Sold | Company C | New | | | | |
Following Up | Company D | Existing | | | | |
Sold Split | Company E | Existing | | | | |
Sold | Company F | New | | | | |
Sold | Company G | National | | | | |
Sold | Company H | Existing | | | | |
<colgroup><col style="width:30px; "><col style="width:113px;"><col style="width:98px;"><col style="width:99px;"><col style="width:116px;"><col style="width:73px;"><col style="width:68px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: center"]Pipeline Phase[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: center"]Date[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: center"]Company[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: center"]Sale Type[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: center"]Amount[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: center"]Helper[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: right"]9/1/2017[/TD]
[TD="align: right"]$500 [/TD]
[TD="align: right"]0[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="align: right"]9/1/2017[/TD]
[TD="align: right"]$450 [/TD]
[TD="align: right"]0[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="align: right"]9/1/2017[/TD]
[TD="align: right"]$550 [/TD]
[TD="align: right"]0[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="align: right"]10/1/2017[/TD]
[TD="align: right"]$700 [/TD]
[TD="align: right"]0[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="align: right"]10/1/2017[/TD]
[TD="align: right"]$1,500 [/TD]
[TD="align: right"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]
[TD="align: right"]10/1/2017[/TD]
[TD="align: right"]$750 [/TD]
[TD="align: right"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]8[/TD]
[TD="align: right"]10/1/2017[/TD]
[TD="align: right"]$600 [/TD]
[TD="align: right"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]9[/TD]
[TD="align: right"]11/1/2017[/TD]
[TD="align: right"]$675 [/TD]
[TD="align: right"]0[/TD]
</tbody>
Spreadsheet Formulas |
Cell | Formula | F2 | =IF(MONTH(B2)=MONTH(Sheet2!$D$2),IF(OR(A2="Sold Split",A2="Sold"),1,0),0) |
<tbody>
</tbody> |
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4