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

1. ## 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"))

Laurie

2. ## 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. ## 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

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

#### 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