Pivot Table Using Colors as a Grouping

jaihawk8

Board Regular
Joined
Mar 23, 2018
Messages
58
Office Version
  1. 2016
Platform
  1. Windows
I have the following table. I would like to do a pivot table, by Sales Rep for each month (time period), but separate it by the color (white, green, red). The reason for this is that Green Denotes that the contract is in month 1-15 and pays at one rate, whereas Red Denotes that the contract is in month 16+ which pays at a different rate.

Is this possible?

Impress Usage.xlsx
BCDEFGHIJKLMNOPQRSTU
1SubscriptionQ4 2020
2Sales RepAnalystMonth15th Month2020/102020/112020/122021/012021/022021/032021/042021/052021/062021/072021/082021/092021/102021/112021/122022/01
3Bryan Schweet2020/112022/01$ -$ -$ 539.85$ 2,004.75$ 2,544.60$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
4Randy RatliffKristin Gruba2020/102021/12$ -$ 144.25$ 395.23$ 550.29$ 1,089.77$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
5Eddie LopezJason Hill2020/102021/12$ -$ -$ 12.50$ 49.97$ 62.47$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
6Tamera DodgeMichael Carman2020/112022/01$ -$ -$ 339.55$ 276.57$ 616.12$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
7Wallace SisemoreKandice Conner2020/102021/12$ -$ 36.48$ 197.60$ 189.22$ 423.30$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
8Marilyn Shaffer2020/102021/12$ -$ 9,878.90$ 764.70$ 923.27$ 11,566.87$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
9Stephen HavensKristin Gruba2020/102021/12$ -$ 0.12$ -$ -$ 0.12$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
10Kevin MoodyBilly Bronikowski2020/102021/12$ 2.01$ 3,959.78$ 2,851.78$ 5,917.24$ 12,730.81$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
11Stephen HavensKristin Gruba2020/122022/02$ -$ -$ 114.56$ 119.25$ 233.81$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
12Mark SohnEric Grubbe2020/102021/12$ -$ -$ -$ 2,484.22$ 2,484.22$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
13Amanda Davis2020/092021/11$ 0.08$ 227.90$ 160.16$ 117.86$ 506.00$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
14Marilyn Shaffer2020/112022/01$ -$ -$ -$ 0.36$ 0.36$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
15Bryan SchweetBrian Pellerino2020/122022/02$ -$ -$ 109.42$ 637.64$ 747.06$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
16Stephen HavensKristin Gruba2020/122022/02$ -$ -$ -$ 0.74$ 0.74$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
17Peter SotoJason Hill2020/102021/12$ -$ -$ -$ 0.18$ 0.18$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -$ -
Main
Cell Formulas
RangeFormula
E3:E17E3=EDATE(D3,14)
F3:U17F3=VLOOKUP($A3,Pivot!$A:$T,COLUMNS(Pivot!$A:B)+1,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F3:U17Expression=F$2>$E3textNO
F3:U17Expression=AND(F$2>=$D3,F$2<=$E3)textNO
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,215,001
Messages
6,122,648
Members
449,092
Latest member
peppernaut

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