+ Reply to Thread
Results 1 to 5 of 5

Show data depending on a yes or no.

Hybrid View

  1. #1
    Registered User
    Join Date
    09-04-2017
    Location
    London, England
    MS-Off Ver
    Microsoft365
    Posts
    9

    Show data depending on a yes or no.

    Please see attached workbook. In Sheet 1 (Drivers), there are a list of incidents and costs of said incidents. This information shows in Sheet 2 (Summary) as a simple count of incidents and costs per driver.

    In column L on Drivers tab, there is a Yes/No dropdown box. I need to make sure that only data that is marked 'Yes' goes through to the summary sheet. Currently I have it set that the sheet will count everything.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Show data depending on a yes or no.

    hi there. why is C3 showing 50? shouldn't it be 100? "Driver" worksheet in row 3 and 15 shows Abi Smith, Windscreen Incident Type, and Paid as Yes. if it's 100, then in B3:
    =COUNTIFS(Driver!$C:$C,$B$1,Driver!$B:$B,$A3,Driver!$L:$L,"Yes")

    C3:
    =SUMIFS(Driver!$G:$G,Driver!$C:$C,$B$1,Driver!$B:$B,$A3,Driver!$L:$L,"Yes")

    for the different Incident type, change the red portion accordingly

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    09-04-2017
    Location
    London, England
    MS-Off Ver
    Microsoft365
    Posts
    9

    Re: Show data depending on a yes or no.

    Hi,

    Yes you are quite right, C3 should have been 100 - it was a typo.

    Thank you for your answer, this works perfectly for the first incident type. Could you let me know what the $B$1 refers to, so I know how to change it for the other incident types please.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Show data depending on a yes or no.

    $B$1 is just the cell that contains the category

    if you change it to B$1 in both formulas, they should copy to the right

  5. #5
    Registered User
    Join Date
    09-04-2017
    Location
    London, England
    MS-Off Ver
    Microsoft365
    Posts
    9

    Re: Show data depending on a yes or no.

    Thank you very much - that has just all clicked into place in my head now.

+ 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. Show pictures depending on a string
    By Imroo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2016, 12:25 AM
  2. Show 2 different pictures depending on value of cell
    By paradoxofthecat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2015, 10:47 AM
  3. Show dynamic data depending on selection of item from listbox.
    By MOHAMMESALMAN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2015, 02:21 AM
  4. [SOLVED] Show result depending on two cells
    By DaveW105 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-13-2014, 08:15 AM
  5. Replies: 4
    Last Post: 10-25-2012, 05:02 AM
  6. Replies: 0
    Last Post: 06-15-2011, 10:36 AM
  7. Show a certain cell depending on data from a drop down menu.
    By trueplayer31 in forum Excel General
    Replies: 13
    Last Post: 01-15-2009, 08:33 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