If Statements

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

Posts: 1
Joined: Fri Dec 18, 2015 4:42 pm

If Statements

Postby GregB » Fri Dec 18, 2015 4:48 pm

Good day, and thank you for taking the time to review my inquiry.

I have 4 independent variables SALE.Khadi, SALE.setop, SALE.shake, and SALE.BOJA representing different types of products sold.

I would like to find out how many retailers sold more than 1 of these products, regardless of product.

I have tried the following code using IF statements it is not telling me what I need... Thank you for your advice!

if SALE.BOJA = 1 and SALE.Khadi = 1 group.pop = 1.
if SALE.BOJA = 1 and SALE.setop = 1 group.pop = 2.
if SALE.BOJA = 1 and SALE.shake = 1 group.pop = 3.

Who is online

Users browsing this forum: No registered users and 3 guests