4 data sets, if equal a certain criteria then this

Rich1362

New Member
Joined
Jul 6, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I don't think I can explain what I'm looking for, but I will do my best.

CRITERIA:
If Cell A1 equals 1 of 50 states
AND
Cell A2 equals 1 of 3 Worker Categories
AND
Cell A3 equals a 1 of 2 FLSA types
AND
Cell A4 equals a 1 of 200 jobs
THEN
A5 equals 1 of 7 Pay Classes

Example: (Using the data below)

#1
If you're in Iowa(non-ca), you're Part Time, Non Exempt and your job title is not Data Associate, then your Pay Class is Other States HRLY
#2
If you're in any state, full time, exempt, regardless of job, then your pay class is SALARY1
#3
If you're in California, Part Time, non exempt and your job title is Data Associate, then you're pay Class is CALIFORNIA HOURLY MOBILE

Help

I know there has to be a way to do this formula But I just can't figure it out. I need you're help. I will send you a High 5 from my thoughts and a huge smile of appreciation. Thank you so much everyone. :)
Worked-In StateWorker Category DescriptionFLSAJob TitlePay Class
CaliforniaPart TimeRFTN-non exemptData AssociateCALIFORNIA HOURLY MOBILE
CaliforniaPart TimeRFTN-non exemptAny JobCALIFORNIA HOURLY
CaliforniaFull TimeRFTN-non exemptAny JobCA HOURLY BENEFITS
CaliforniaTempRFTN-non exemptAny JobCA HOURLY BENEFITS
Non-CAPart TimeRFTN-non exemptData AssociateOTHER STATES HRLY MOBILE
Non-CAPart TimeRFTN-non exemptAny JobOTHER STATES HOURLY
Non-CAFull TimeRFTN-non exemptAny JobOTHER HOURLY BENEFITS
Non-CATempRFTN-non exemptAny JobOTHER HOURLY BENEFITS
Any StateFull TimeRFTE-exemptAny JobSALARY1
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
This looks like it works
Book1
ABCDE
1Worked-In StateWorker Category DescriptionFLSAJob TitlePay class
2CaliforniaPart TimeRFTN-non exemptData AssociateCALIFORNIA HOURLY MOBILE
3CaliforniaPart TimeRFTN-non exemptAny JobCALIFORNIA HOURLY
4CaliforniaFull TimeRFTN-non exemptAny JobCA HOURLY BENEFITS
5CaliforniaTempRFTN-non exemptAny JobCA HOURLY BENEFITS
6Non-CAPart TimeRFTN-non exemptData AssociateOTHER STATES HRLY MOBILE
7Non-CAPart TimeRFTN-non exemptAny JobOTHER STATES HOURLY
8Non-CAFull TimeRFTN-non exemptAny JobOTHER HOURLY BENEFITS
9Non-CATempRFTN-non exemptAny JobOTHER HOURLY BENEFITS
10Any StateFull TimeRFTE-exemptAny JobSALARY1
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=IF(AND(B2="Full Time",C2="RFTE-exempt"),"SALARY1",IF(A2="California",IF(D2="Data Associate","CALIFORNIA HOURLY MOBILE",IF(B2="Part Time","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(D2="Data Associate","OTHER STATES HRLY MOBILE",IF(B2="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS"))))
 
Upvote 0
This looks like it works
Book1
ABCDE
1Worked-In StateWorker Category DescriptionFLSAJob TitlePay class
2CaliforniaPart TimeRFTN-non exemptData AssociateCALIFORNIA HOURLY MOBILE
3CaliforniaPart TimeRFTN-non exemptAny JobCALIFORNIA HOURLY
4CaliforniaFull TimeRFTN-non exemptAny JobCA HOURLY BENEFITS
5CaliforniaTempRFTN-non exemptAny JobCA HOURLY BENEFITS
6Non-CAPart TimeRFTN-non exemptData AssociateOTHER STATES HRLY MOBILE
7Non-CAPart TimeRFTN-non exemptAny JobOTHER STATES HOURLY
8Non-CAFull TimeRFTN-non exemptAny JobOTHER HOURLY BENEFITS
9Non-CATempRFTN-non exemptAny JobOTHER HOURLY BENEFITS
10Any StateFull TimeRFTE-exemptAny JobSALARY1
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=IF(AND(B2="Full Time",C2="RFTE-exempt"),"SALARY1",IF(A2="California",IF(D2="Data Associate","CALIFORNIA HOURLY MOBILE",IF(B2="Part Time","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(D2="Data Associate","OTHER STATES HRLY MOBILE",IF(B2="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS"))))

This is PERFECT! it works exactly how I need it to work. The highest of ALL High 5's mentally coming your way.

One more question, now I'm just being needy i know haha, I drag this formula down to cover and apply to 50 cells, if only 20 cells have data and the other 30 are blank, where would I put the (& "") so that the cell stays blank if no data to report.

I TRIED THIS:
I kept your formula and tried adding the following to the end of it but no success:

=IF(AND(B2="Full Time",C2="RFTE-exempt"),"SALARY1",IF(A2="California",IF(D2="Data Associate","CALIFORNIA HOURLY MOBILE",IF(B2="Part Time","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(D2="Data Associate","OTHER STATES HRLY MOBILE",IF(B2="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS"), IF(B2="",D2=""),""))))

But didn't work. Thanks for you help @jasonb75 and to whomever else jumps on this.
 
Upvote 0
How about this method, which will only show a result if all 4 columns (A, B, C, and D) have been completed?

=IF(COUNTA(A2:D2)=4,IF(AND(B2="Full Time",C2="RFTE-exempt"),"SALARY1",IF(A2="California",IF(D2="Data Associate","CALIFORNIA HOURLY MOBILE",IF(B2="Part Time","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(D2="Data Associate","OTHER STATES HRLY MOBILE",IF(B2="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS")))),"")
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top