+ Reply to Thread
Results 1 to 11 of 11

Sum of similar values in a column

  1. #1
    Registered User
    Join Date
    05-15-2016
    Location
    London
    MS-Off Ver
    Ms office 2007
    Posts
    9

    Sum of similar values in a column

    I have two worksheets, one contains the dashboard and the other contains the data. On the one with the data, there is a column with a drop down menu of 'pass/fail'. Now I need two rows on the dashboard that is able to give a total of 'pass and fail' If I make sense.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Sum of similar values in a column

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum of similar values in a column

    Assuming your data is in column A on a sheet named Data.

    Data Range
    A
    B
    1
    Pass
    7
    2
    Fail
    6
    3
    ------
    ------


    Enter this formula in B1 and copy down:

    =COUNTIF(Data!A:A,A1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Sum of similar values in a column

    If the column with the pass fail drop down menu is in A, try this in the cell you want the count to show in for pass...
    Please Login or Register  to view this content.
    and this in the cell you want the count for fail
    Please Login or Register  to view this content.
    Change A$1:A$6 to the range you drop-downs are in
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  5. #5
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Sum of similar values in a column

    Hi

    On your dashboard you need formulas like this:

    =COUNTIF(Data!$D$2:$D$7,"Pass")
    =COUNTIF(Data!$D$2:$D$7,"Fail")

    Set the range to whatever is on your data sheet

    You could also add 2 labels on your Dashboard, then check these instead of putting the Pass/Fail in the formula. So if you had "Pass" in cell A1 on your dashboard, you would put:

    =COUNTIF(Data!$D$2:$D$7,A1)

    You can do the same for Fail


    Excel is a constant learning process and it's great to help each other. If I've helped you today, a click on the star on the left is appreciated.

  6. #6
    Registered User
    Join Date
    05-15-2016
    Location
    London
    MS-Off Ver
    Ms office 2007
    Posts
    9

    Re: Sum of similar values in a column

    pnt1.jpgpnt2.jpg

    This is the screenshot.
    Dashboard explains it.

    I also need help with column G in pnt2.

    Thanks

  7. #7
    Registered User
    Join Date
    05-15-2016
    Location
    London
    MS-Off Ver
    Ms office 2007
    Posts
    9

    Re: Sum of similar values in a column

    pnt1.jpg, pnt2.jpg

    This is the screenshot.
    Dashboard explains it.

    I also need help with column G in pnt2.

    Thanks

  8. #8
    Registered User
    Join Date
    05-15-2016
    Location
    London
    MS-Off Ver
    Ms office 2007
    Posts
    9

    Re: Sum of similar values in a column

    pnt1.jpg, pnt2.jpg


    This is the screenshot.
    Dashboard explains it.

    I also need help with column G in pnt2.

    Thanks

  9. #9
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Sum of similar values in a column

    Are you able to upload a sample of your workbook?

    Screenshots are a bit difficult to understand and work with

    Thanks

  10. #10
    Registered User
    Join Date
    05-15-2016
    Location
    London
    MS-Off Ver
    Ms office 2007
    Posts
    9

    Re: Sum of similar values in a column

    sent you the file.
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Sum of similar values in a column

    Thanks for the workbook, that made it much easier

    Put the following formula in G3, then copy it down:

    =IF(E3="YES","Fail",IF(E3="NO","Pass",""))

    This puts in the required outcome as you describe, but leaves it blank if E3 is empty.

    By the way, did you know that you have auto calculation switched off in the spreadsheet? It confused me for a minute because I got no results when I put the formula in! I had to press F9 to manually calculate.

+ 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. Match values from two columns having similar values in 1st column if not error
    By csunilkumar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2014, 08:32 AM
  2. Lookup Values, 2 Worksheets, one similar column
    By ladron in forum Excel General
    Replies: 5
    Last Post: 09-20-2012, 04:19 AM
  3. How to transpose a column based on similar values
    By tdunford7 in forum Excel General
    Replies: 4
    Last Post: 02-28-2012, 12:51 AM
  4. Combine rows with similar values in one column.
    By sgtpepper in forum Excel General
    Replies: 1
    Last Post: 12-06-2011, 09:31 PM
  5. Combine rows with similar values in one column.
    By sgtpepper in forum Excel General
    Replies: 3
    Last Post: 12-06-2011, 01:43 PM
  6. Sort Column C for all similar values in Column A
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-15-2009, 08:02 AM
  7. [SOLVED] How to chart a single column of values similar to a GROUP BY
    By Paddy in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-02-2005, 12:30 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