IF Cell is Blank return Blank

lisa_swinton

New Member
Joined
Sep 2, 2022
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi All
I have a formula to determine if a field should be a Threat or an Opportunity but I want to return blank if there is no data in another cell the below didn't work

=IF(E21,ISBLANK,""),IFS($T21>0,"Opportunity",T21="","",$T21<0,"Threat",$T21=0,"Threat"))

=IFS($T21>0,"Opportunity",T21="","",$T21<0,"Threat",$T21=0,"Threat")) This is the original formula before I started with is blank bit
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Excel Formula:
=IF(ISBLANK(E21),"",IFS($T21>0,"Opportunity",T21="","",$T21<0,"Threat",$T21=0,"Threat"))
 
Upvote 0
Solution
How about
Excel Formula:
=IFS($E21="","",$T21="","",$T21>0,"Opportunity",$T21<0,"Threat",$T21=0,"Threat")
 
Upvote 0
I generally do not use IFS as the function tends to be inefficient in that it must calculate very section even if the very first test proves TRUE and the other tests therefore would not be needed. There are usually more efficient ways.
You can also combine some of your checks. So another suggestion is

Excel Formula:
=IF(OR(E21="",T21=""),"",IF($T21>0,"Opportunity","Threat"))
 
Upvote 0

Forum statistics

Threads
1,215,655
Messages
6,126,051
Members
449,283
Latest member
GeisonGDC

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