+ Reply to Thread
Results 1 to 3 of 3

I need a current formula to only give me an answer if column W says DUI Help please! TY

  1. #1
    Registered User
    Join Date
    03-10-2013
    Location
    Tucson, Arizona
    MS-Off Ver
    Excel 2003
    Posts
    15

    I need a current formula to only give me an answer if column W says DUI Help please! TY

    Hi, I need help again! I need the formula below to only give me an answer if Column "W" says "DUI",



    =SUMPRODUCT((Q2:Q12<=C10)*(R2:R12>=B10)*(Z2:Z12="Misd.")+(Z2:Z12="Felony"))


    Thank you in advance!!!

    Laurie

  2. #2
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: I need a current formula to only give me an answer if column W says DUI Help please!

    Take everything that you typed out and place it where the ... is : =IF(W2:W12="DUI",...,"")
    Does that work?

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

    Re: I need a current formula to only give me an answer if column W says DUI Help please!

    hi Laurie. just have to add a multiplication & another bracket with conditions inside if you add a logic.
    =SUMPRODUCT((W2:W12="DUI")*(Q2:Q12<=C10)*(R2:R12>=B10)*(Z2:Z12="Misd.")+(Z2:Z12="Felony"))

    or shorter if i got you correct:
    =SUMPRODUCT((W2:W12="DUI")*(Q2:Q12<=C10)*(R2:R12>=B10)*(Z2:Z12={"Misd.","Felony"}))

    if it doesn't work do upload a sample Excel file. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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