HOW TO: Display specific data dependant on a condition by using formulas not filters?

abupu

New Member
Joined
Aug 17, 2011
Messages
17
Hi Guys,

This is the problem im having:

<table border="0" cellpadding="0" cellspacing="0" width="281"><colgroup><col style="mso-width-source:userset;mso-width-alt:4169;width:86pt" width="114"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:3766;width:77pt" width="103"> </colgroup><tbody><tr style="height:12.75pt" height="17"> <td class="xl1131" style="height:12.75pt;width:86pt" height="17" width="114">Status</td> <td class="xl1131" style="width:48pt" width="64">Task</td> <td class="xl1131" style="width:77pt" width="103">People</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Discontinued</td> <td class="xl1131">a</td> <td class="xl1130" align="right">1</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Discontinued</td> <td class="xl1131">b</td> <td class="xl1130" align="right">2</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Active</td> <td class="xl1131">c</td> <td class="xl1130" align="right">3</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Active</td> <td class="xl1131">d</td> <td class="xl1130" align="right">4</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Discontinued</td> <td class="xl1131">e</td> <td class="xl1130" align="right">5</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Discontinued</td> <td class="xl1131">f</td> <td class="xl1130" align="right">6</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Discontinued</td> <td class="xl1131">g</td> <td class="xl1130" align="right">7</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Discontinued</td> <td class="xl1131">h</td> <td class="xl1130" align="right">8</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Discontinued</td> <td class="xl1131">i</td> <td class="xl1130" align="right">9</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1130" style="height:12.75pt" height="17">Active</td> <td class="xl1131">j</td> <td class="xl1130" align="right">10</td> </tr> </tbody></table>
I have this data table on Sheet 1 and i want to display ONLY the rows that show "Active" on another sheet. Also, i want to be able to display only the columns I would like on another sheet.

An example would be I want to display all rows with the Status as "Active" and only the People column on Sheet 2. This output should look like this:

<table border="0" cellpadding="0" cellspacing="0" width="103"><colgroup><col style="mso-width-source:userset;mso-width-alt:3766;width:77pt" width="103"> </colgroup><tbody><tr style="height:12.75pt" height="17"> <td class="xl1132" style="height:12.75pt;width:77pt" height="17" width="103">People</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1131" style="height:12.75pt" align="right" height="17">3</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1131" style="height:12.75pt" align="right" height="17">4</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl1131" style="height:12.75pt" align="right" height="17">10</td> </tr> </tbody></table>
I require to do this without the use of filters and the data should update (increase or decrease in rows) if the Status of other rows are changed to "Active" on Sheet 1.

Any ideas?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi Guys,

This is the problem im having:

<TABLE cellSpacing=0 cellPadding=0 width=281 border=0><COLGROUP><COL style="WIDTH: 86pt; mso-width-source: userset; mso-width-alt: 4169" width=114><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 77pt; mso-width-source: userset; mso-width-alt: 3766" width=103></COLGROUP><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1131 style="WIDTH: 86pt; HEIGHT: 12.75pt" width=114 height=17>Status</TD><TD class=xl1131 style="WIDTH: 48pt" width=64>Task</TD><TD class=xl1131 style="WIDTH: 77pt" width=103>People</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Discontinued</TD><TD class=xl1131>a</TD><TD class=xl1130 align=right>1</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Discontinued</TD><TD class=xl1131>b</TD><TD class=xl1130 align=right>2</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Active</TD><TD class=xl1131>c</TD><TD class=xl1130 align=right>3</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Active</TD><TD class=xl1131>d</TD><TD class=xl1130 align=right>4</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Discontinued</TD><TD class=xl1131>e</TD><TD class=xl1130 align=right>5</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Discontinued</TD><TD class=xl1131>f</TD><TD class=xl1130 align=right>6</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Discontinued</TD><TD class=xl1131>g</TD><TD class=xl1130 align=right>7</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Discontinued</TD><TD class=xl1131>h</TD><TD class=xl1130 align=right>8</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Discontinued</TD><TD class=xl1131>i</TD><TD class=xl1130 align=right>9</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1130 style="HEIGHT: 12.75pt" height=17>Active</TD><TD class=xl1131>j</TD><TD class=xl1130 align=right>10</TD></TR></TBODY></TABLE>
I have this data table on Sheet 1 and i want to display ONLY the rows that show "Active" on another sheet. Also, i want to be able to display only the columns I would like on another sheet.

An example would be I want to display all rows with the Status as "Active" and only the People column on Sheet 2. This output should look like this:

<TABLE cellSpacing=0 cellPadding=0 width=103 border=0><COLGROUP><COL style="WIDTH: 77pt; mso-width-source: userset; mso-width-alt: 3766" width=103></COLGROUP><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1132 style="WIDTH: 77pt; HEIGHT: 12.75pt" width=103 height=17>People</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1131 style="HEIGHT: 12.75pt" align=right height=17>3</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1131 style="HEIGHT: 12.75pt" align=right height=17>4</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl1131 style="HEIGHT: 12.75pt" align=right height=17>10</TD></TR></TBODY></TABLE>
I require to do this without the use of filters and the data should update (increase or decrease in rows) if the Status of other rows are changed to "Active" on Sheet 1.

Any ideas?
See this...

http://www.mrexcel.com/forum/showpost.php?p=2696961&postcount=3
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,726
Members
452,939
Latest member
WCrawford

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