Return Blank Cell if condition is not met

Rich1362

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

Need some help please!

I have this formula:

=IF(AND(AX102="RFT",AY102="RFTE"),"SALARY1",IF(AH102="Ca",IF(AL102="SCRN ***","CALIFORNIA HOURLY MOBILE",IF(AX102="RPT","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(AL102="SCRN ***","OTHER STATES HRLY MOBILE",IF(AX102="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS"))))

This formula can apply to 10 cells or 500 cells, depending on the week. I'm trying to get it so that if I set to to apply to 100 cells and only 50 are actually used, then the rest of the cells come back blank.
Right now, if the cells has no data, it comes back as "OTHER HOURLY BENEFITS"

I thought I could just add &"" at the end of the formula BUT that didn't work.

Any thoughts? Thank you in advance
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try changing the "OTHER HOURLY BENEFITS" to just ""
 
Upvote 0
Try

Excel Formula:
=IF(OR(AX102="",AY102="",AH102="",AL102=""),"",IF(AND(AX102="RFT",AY102="RFTE"),"SALARY1",IF(AH102="Ca",IF(AL102="SCRN ***","CALIFORNIA HOURLY MOBILE",IF(AX102="RPT","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(AL102="SCRN ***","OTHER STATES HRLY MOBILE",IF(AX102="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS")))))

Try
Excel Formula:
=IF(AND(AX102="",AY102="",AH102="",AL102=""),"",IF(AND(AX102="RFT",AY102="RFTE"),"SALARY1",IF(AH102="Ca",IF(AL102="SCRN ***","CALIFORNIA HOURLY MOBILE",IF(AX102="RPT","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(AL102="SCRN ***","OTHER STATES HRLY MOBILE",IF(AX102="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS")))))

Try both of them and see if it works for you
 
Upvote 0
Try

Excel Formula:
=IF(OR(AX102="",AY102="",AH102="",AL102=""),"",IF(AND(AX102="RFT",AY102="RFTE"),"SALARY1",IF(AH102="Ca",IF(AL102="SCRN ***","CALIFORNIA HOURLY MOBILE",IF(AX102="RPT","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(AL102="SCRN ***","OTHER STATES HRLY MOBILE",IF(AX102="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS")))))

Try
Excel Formula:
=IF(AND(AX102="",AY102="",AH102="",AL102=""),"",IF(AND(AX102="RFT",AY102="RFTE"),"SALARY1",IF(AH102="Ca",IF(AL102="SCRN ***","CALIFORNIA HOURLY MOBILE",IF(AX102="RPT","CALIFORNIA HOURLY","CA HOURLY BENEFITS")),IF(AL102="SCRN ***","OTHER STATES HRLY MOBILE",IF(AX102="PART TIME","OTHER STATES HOURLY","OTHER HOURLY BENEFITS")))))

Try both of them and see if it works for you

Sufiyan97


You are my hero! That worked! I needed to make a few adjustments but after that, it worked beautifully!!

Thank you
Thank You
THANK YOU
THANK YOU SO MUCH!
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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