+ Reply to Thread
Results 1 to 7 of 7

Heat Map using a Pivot Table (excel 2010)

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    Mpls
    MS-Off Ver
    2010
    Posts
    3

    Heat Map using a Pivot Table (excel 2010)

    Hi,

    I am trying to create a Heat Map using a Pivot Table which has Day of Week as the Columns and Hour of Day as the Rows. Once the data is there, I will use conditional formatting to change the color of the data to show the "hot spots".

    I would like to have it show all of the days of the week across 7 columns, even if there is no data for a certain day. I have seen that using a Group may do this, but my data source is open and will have some blank cells so that seems to preclude the use of Groups.

    I would also like to have it show all of the hours of the day as well (actually will be 8 (am) through 11 (pm), again, even if there is no data in that particular hour. including all of the hours and all of the days of the week creates a better visual.

    I am using a pivot table as I can then use other info from the data source (i.e.: store number and/or incident type) as a filter. I have tried to create it in a worksheet, but cannot figure out how to be able to filter the data using more than one drop down box.

    Hopefully this is enough info to come up with an idea on how I can do this.

    Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Heat Map using a Pivot Table (excel 2010)

    Hi Szc,

    Welcome to the forum...

    Try - https://www.youtube.com/watch?v=CEGSBpNUZQ4
    - https://plot.ly/how-to-make-a-heatmap-with-excel/
    - http://peltiertech.com/heat-map-exce...al-formatting/
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Heat Map using a Pivot Table (excel 2010)

    Hi Szc,

    Welcome to the forum...

    Try - https://www.youtube.com/watch?v=CEGSBpNUZQ4
    - https://plot.ly/how-to-make-a-heatmap-with-excel/
    - http://peltiertech.com/heat-map-exce...al-formatting/

  4. #4
    Registered User
    Join Date
    02-23-2015
    Location
    Mpls
    MS-Off Ver
    2010
    Posts
    3

    Re: Heat Map using a Pivot Table (excel 2010)

    Thank you for responding, I appreciate it. (actually typing this response for the third time... ugh)

    Anyway, I had seen those two pages and watched the video, but I already have a heat map created.

    I am looking for a way to have a user be able to do a multiple aspect search via drop downs to be able to choose the information (based on columns in the original dataset). A pivot table starts to do this, but if there is no data on a Sunday, the pivot table does not include a column for Sunday. I would like a way to have it show all of the days of the week along with the 8:00am to 11:00pm time frame that I need. I have attached a picture of my current heat map.

    Heat Map.jpg

    Here is the formula that I am currently using which allows for one drop down box: =COUNTIFS('Case Name'!$F$3:$F$37,S$10,'Case Name'!$H$3:$H$37,$D11,'Case Name'!$B$3:$B$37,'Heat Map'!$S$8)

    Really looking for a way to be able to choose any or none of County, Company, Store and Incident Type..

    Thanks again for the response, it is appreciated.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Heat Map using a Pivot Table (excel 2010)

    Hello,

    since pivot tables only plot existing data, your data source needs to include some dummy rows to ensure that each dimension is complete. See this screenshot as an example. There is no data for Sunday, but the data source has been padded with dummy rows to ensure that all days and all hours appear in the grid. The real data starts in row 18.
    snap2.png

    If you use filters you may need to add even more dummy rows to ensure that the grid is complete when the filter is applied.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-23-2015
    Location
    Mpls
    MS-Off Ver
    2010
    Posts
    3

    Re: Heat Map using a Pivot Table (excel 2010)

    I will try that to see how dummy rows may affect the rest of the data being pulled from the main spreadsheet.

    If I stay with the heat map that is in excel (see screen print above) and do not use a pivot table, is there a way to have the cells reacting off of two drop downs?

    This is my formula for one drop down:

    =COUNTIFS('Case Name'!$F$3:$F$37,S$10,'Case Name'!$H$3:$H$37,$D11,'Case Name'!$B$3:$B$37,'Heat Map'!$S$8)

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Heat Map using a Pivot Table (excel 2010)

    I don't know what you mean by "have the cells reacting off of two drop downs". A formula does not help much unless you provide the data it refers to.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-12-2015, 08:07 PM
  2. [SOLVED] Pivot table heat map
    By Jackie5467 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-19-2013, 09:39 AM
  3. Excel 2010 Conditional Formatting Question (Heat Map)
    By CasinoMogul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2013, 06:20 PM
  4. Heat Mapping by row for a table of information (or a pivot table)
    By jacebailes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-06-2013, 06:22 PM
  5. VBA Macro for excel 2010 RGB heat map
    By scubabrad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2012, 08:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1