Create dynamic columns depending on a checkbox - excel 2007

1

I have a simple table with 4 values and a checkbox for each of them:

Sellers: | João | Antonio | Paulo | Carlos

On another excel sheet, I have a table where I can add rows, and where each row has Month-Year. I'm wanting the columns to be the sellers with the active table checkbox. If you select John and Paul, my table will only show sales to those two sellers. If you remove the checkbox from John, there is only one column left. If I put checkbox in all, my table will have four columns.

What is the best way to do this in excel 2007?

    
asked by anonymous 02.06.2014 / 11:26

1 answer

1

I can do something similar to what you asked for, let's see if you can.

Assuming the following table:

+------------+---------+
| Vendedores | Mês-Ano |
+------------+---------+
| João       | jan/14  |
+------------+---------+
| João       | fev/14  |
+------------+---------+
| Antonio    | jan/14  |
+------------+---------+
| Antonio    | fev/14  |
+------------+---------+
| Paulo      | jan/14  |
+------------+---------+
| Paulo      | fev/14  |
+------------+---------+
| Carlos     | jan/14  |
+------------+---------+
| Carlos     | fev/14  |
+------------+---------+

Click the Insert tab, and then click PivotTable:

ItwillopenawindowaskingfortherangesofdatatobeusedwhencreatingthisPivotTable,usuallyExcelitselfalreadyautomaticallyselectstheentiretable,ifithasnotselected,selecttherangeofdatayouwanttouse.ClickOk.

Anewtabwillbecreated.DragthesellerfieldtoColumnLabelsanddragtheMonth-YeartoLineLabels,asshownbelow:

A table like this will be created:

Noticethebuttonwithalittlecell-sidecolumnlabels,ifyouclickonit,youcanchoosewhichsellersyouwanttoshowinthePivotTable:

Finally, once the sellers are chosen, copy the table and paste As Value into some new worksheet because the PivotTable is read-only.

    
02.06.2014 / 18:53