Results 1 to 11 of 11

Need help making histogram

Threaded View

  1. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,479

    Re: Need help making histogram

    As I suggested, I think the first thing I would do is to combine all three tabs into a single good database -- adding soap # as a field. You can use Get and Transform, if you want -- it is a useful utility to learn how to use. At the same time, you only have 3 soaps, so it should be easy enough to manually copy and paste to get the tables merged together.

    The power of putting everything into a single database is illustrated in how it simplifies your average functions in K5:K13. Right now, you have to manually choose which cells to include in each average. With all of the data in a single database, a single AVERAGEIFS() function (paying attention to relative and absolute references) would compute all of these averages. Something like =AVERAGEIFS(water volume range,soap # range,H5,pump qty range, I5) (note that you need to unmerge H5 and repeat the soap # for each row -- most experienced users of Excel around here don't like merged cells anyway). Changing this to an AVERAGEIFS() function is good practice, because the AVERAGEIFS() function is very similar to the COUNTIFS() function that I would use for the histogram count/frequency data.

    AVERAGEIFS() help file: https://support.office.com/en-us/art...8-f7c5c3001690
    COUNTIFS() help file: https://support.office.com/en-us/art...c-aa8c2a866842

    Assuming column M is your "bin" range for faucet time (and that you have combined everything into a single database), I would construct the table with the frequency counts like this:

    1) Enter soap numbers in N1:P1
    2) Count the frequency data using COUNTIFS() =COUNTIFS(faucet time range,">="&$M2,faucet time range,"<"&$M3,soap # range, N$1) [corrected] for all but the last "overflow" bin, where you remove the "faucet time range is less than next row of column M" arguments. Note the mix of relative and absolute references that I used for easy copying. Then copy down and across.
    2a) Adding other variables, like pump qty should be as simple as adding additional columns and additional criteria to the COUNTIFS().
    3) Build the histogram(s)/column chart(s) from this data. Details depend on exactly what you want to do here -- separate histograms for each criteria? Try to combine it all into a single chart? or whatever.

    I will also note that, if you put all of your data into a single database, a pivot table may also do these summary steps faster and more efficiently. I am not very good with pivot tables, but you may want to explore that option as well: https://www.excel-easy.com/data-****...ot-tables.html
    Last edited by MrShorty; 09-07-2018 at 02:31 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. making histogram from data vs time
    By rudy van eekelen in forum Excel General
    Replies: 1
    Last Post: 05-15-2016, 12:11 AM
  2. Need help making a histogram
    By Spookycolt in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-03-2014, 01:23 PM
  3. making a spreadsheet for student coursework making
    By spartan11chin in forum Excel General
    Replies: 17
    Last Post: 12-01-2009, 08:18 AM
  4. Superimposed histogram A on histogram B
    By firuz in forum Excel General
    Replies: 5
    Last Post: 05-26-2007, 09:10 PM
  5. I was creating a histogram; now i have data but no histogram.
    By ShannonMills3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-13-2006, 07:10 PM
  6. [SOLVED] How to Histogram w/o raw data but histogram Table on Excel
    By 2005 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-01-2006, 02:50 AM
  7. How to make excel not round real numbers when making a histogram?
    By Leedawg in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-21-2005, 03:05 PM

Tags for this Thread

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