Formula help

Alex D

New Member
Joined
Apr 28, 2020
Messages
48
Office Version
  1. 365
Platform
  1. Windows
Trying to write a formula, but having a really hard time. I want to do the following...

If the first cell says, Commercial, then I want it to look at the second cell (# there now is 32) and if that value is less than 30, give me a 1 if not a 0, and if the first cell is NOT commercial, then look at 3rd cell (# there now is 29) and if that value is less than 30 give me a 1 if not a 0. on top of this, i want an iferror to show me blank.....

Commercial
32​
29​
 
Here is what I am after.....

First cell says: Commercial or Residential (never blank)

I want my formula, to look up the first cell, and if it's Commercial, go to the second cell, and if that value is less than 30, then give me a 1, if not a 0, but also look to see if second cell is blank, and if so, return the blank

Scratching my head on this :confused:
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,214,827
Messages
6,121,824
Members
449,050
Latest member
Bradel

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