ISBLANK with three conditions

RuthyTee

New Member
Joined
Aug 21, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Can anyone help with this excel formula?? I am stumped with this one...

AB1 and AG1 are both blank then return "No PPA"

AB1 has text but AG1 is blank then return "Framework"

AB1 is blank but AG1 has a date then the following formula needs to be used...

IF(AG1-TODAY()>90, "Live", IF(TODAY()-AG1>0, "Expired", "Expiring Soon"

I basically need to merge IF(AND(ISBLANK(AB1),ISBLANK(AG1)),"No PPA",IF(ISBLANK(AG1),"Framework" with IF(AG1-TODAY()>90, "Live", IF(TODAY()-AG1>0, "Expired", "Expiring Soon"

Is this possible?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
EMT931-932.xlsx
ABC
11NO PPA
12AFRAMEWORK
131EXPIRING SOON
Sheet6
Cell Formulas
RangeFormula
C11:C13C11=IF((ISBLANK(A11)*ISBLANK(B11)),"NO PPA",IF((ISBLANK(A11)*ISNUMBER(B11)),"EXPIRING SOON",IF((ISTEXT(A11)*ISBLANK(B11)),"FRAMEWORK")))


i am working on date condition that you mention, when i will get, i will update you. for now i am using number instead of date...
 
Upvote 0
Hi RuthyTee,

I may have gotten a little carried awa with my binary logic but I think this does what you ask:

Book3
ABAGAH
1No PPA
2TextFramework
31/1/2020Expired
41/1/2021Live
58/30/2020Expiring soon
Sheet1
Cell Formulas
RangeFormula
AH1:AH5AH1=CHOOSE(BIN2DEC(BITOR(AB1&AG1="",0)&BITAND(ISTEXT(AB1),ISBLANK(AG1))&BITAND(AB1="",ISNUMBER(AG1))),IF(AG1-TODAY()>90,"Live",IF(TODAY()-AG1>0,"Expired","Expiring soon")),"Framework","","No PPA")
 
Upvote 0
Welcome to the MrExcel board!

Is it possible that AB has text and AG has date (row 6 below)? If so, what should the formula return?

Does this do what you want?

20 08 22.xlsm
ABACADAEAFAGAH
1No PPA
2TextFramework
31-Jan-2020Expired
41-Jan-2021Live
530-Aug-2020Expiring soon
6Text25-May-2020?
RuthyTee
Cell Formulas
RangeFormula
AH1:AH6AH1=IF(AB1&AG1="","No PPA",IF(AG1="","Framework",IF(AND(AG1,AB1=""),LOOKUP(AG1-TODAY(),{-9999,0.1,90.1},{"Expired","Expiring soon","Live"}),"?")))
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

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