+ Reply to Thread
Results 1 to 3 of 3

Need Help with Excel Count Function

  1. #1
    Registered User
    Join Date
    07-02-2016
    Location
    Abu Dhabi, UAE
    MS-Off Ver
    MS OFFICE 2010
    Posts
    1

    Need Help with Excel Count Function

    Hi Guys,

    Great forum, and this is my first post here.

    See attached the excel sheet I have created. What I want to do is count the number of shifts per day and have a drop down menu reflect the result of shift in each department.

    Eg - Total Tally
    AM 4
    PM 4

    The drop down would contain FRONT OFfice and the tally should change accordingly.
    So far I have only managed to get a tally of the entire sheet however the drop down menu needs to be activated.

    Please help

    Warm regards and thank you,

    Vishal Gulati.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Help with Excel Count Function

    A couple of comments...

    1) In B133 your formula is working WAY too hard. This formula will do the same thing with much less plumbing:
    =COUNTIF(B$1:B$120, $A133)
    ....copied down and across that table.


    2) The only way to create these drop downs is to create each one somewhere in the sheet as a Data Validation drop down source. I've constructed the first two for you down below for Front Office and Guest Service Center. You will need to create the rest.

    Notice the Data Validation in B150 is List = B$159:B$162 with no $ in front of the column reference? This makes it easy to copy B150 to the right and the drop downs adjust themselves for each column.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Need Help with Excel Count Function

    Hello Vishal
    See the attached reply for a possible solution. The formulas are in cell B133:H136 based on drop down in A131.

    DBY
    Attached Files Attached Files

+ 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. [SOLVED] excel function to count links
    By superboy in forum Excel General
    Replies: 8
    Last Post: 03-13-2020, 01:33 AM
  2. Count function in Excel? Is it possible?
    By excelfoum123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-19-2014, 03:08 PM
  3. excel function by using match and count
    By timo-osinga in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2012, 04:55 AM
  4. [SOLVED] Excel function to count + display
    By Silencer001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2012, 08:44 AM
  5. Replies: 4
    Last Post: 06-08-2005, 07:05 PM
  6. [SOLVED] excel should have a function to count sheets
    By carlos sosa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-24-2005, 04:06 PM
  7. [SOLVED] Count function in excel with different conditions
    By chits in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2005, 04:06 AM

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