+ Reply to Thread
Results 1 to 5 of 5

How to count how many # per subheading?

Hybrid View

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    3

    Question How to count how many # per subheading?

    A pretty iffy title, I'll try explain it better.
    So, I have a VCE sac coming up and I need to know how to do this.

    Here's a short version. (The real one continues like this till 1859)

    (Temps are made up here)

    Basically I need to see how many months's temperatures are over 30, per year.
    I'm pretty basic at excel so this may be the easiest thing you've ever done.

    I made it so when it the temp is equals or over 30, it comes up with "Over", and "under" if it isn't. =IF(C2>=30, "Over", "Under")
    How can I use this to make a graph that shows how many months are over 30 per year?

    (attached again below incase this one stuffs up)
    Year Month Temperature
    2014 1 46 Over
    2014 2 37 Over
    2014 3 33 Over
    2014 4 27 Under
    2014 5 26 Under
    2014 6 24 Under
    2014 7 16 Under
    2014 8 17 Under
    2014 9 22 Under
    2014 10 26 Under
    2014 11 30 Over
    2014 12 33 Over
    2013 1 42 Over
    2013 2 36 Over
    2013 3 31 Over
    2013 4 30 Over
    2013 5 27 Under
    2013 6 26 Under
    2013 7 22 Under
    2013 8 17 Under
    2013 9 19 Under
    2013 10 22 Under
    2013 11 31 Over
    2013 12 34 Over


    Sorry if I'm not explaining it well.
    Thanks in advance.

    outcome data recreatation.xlsx

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: How to count how many # per subheading?

    see the attached file
    added some dummy data
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    03-18-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    3

    Re: How to count how many # per subheading?

    Perfect, thanks heaps!
    Rep'd!

  4. #4
    Registered User
    Join Date
    01-28-2014
    Location
    Brno
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: How to count how many # per subheading?

    Hi,

    You can use for instance countifs or sumproduct:

    =SUMPRODUCT(($C$2:$C$25>30)*($A$2:$A$25=H2)) or =COUNTIFS($A$2:$A$25,H2,$C$2:$C$25,">30") where H2 is Year.

    Chart enclosed.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-18-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    3

    Re: How to count how many # per subheading?

    Countifs is perfect, thanks loads!
    Rep'd

+ 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. Custom function to find Heading & Subheading
    By Meesam_ali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 11:27 AM
  2. Find heading, the subheading, display value
    By mprpich in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-17-2014, 09:58 AM
  3. Creating Table of Content ( not heading / subheading )
    By davidku in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2014, 07:53 PM
  4. Replies: 4
    Last Post: 07-22-2010, 04:17 PM
  5. Vlookup subheading and subordinates
    By Nicolaf in forum Excel General
    Replies: 2
    Last Post: 02-01-2010, 01:24 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