Having issues with a conditional IF statement...

MikeGreen1972

New Member
Joined
Jan 28, 2015
Messages
19
I'm having a heck of a time with an IF statement. If the value of AK2 is "Y" I want AS2 to display "APPROVED". If the value of AK2 is "N" I want it to display "DISAPPROVED". If the value of AK2 is blank, I want it to display "PENDING".... BUT only if there is data in V2.

=IF(AK2="y","APPROVED",IF(AK2="n","DISAPPROVED",IF(V2>=0,"PENDING"))) will get me part of the way there, but I can't figure out how to make it display nothing if there is no data in v2.

Anything I try from this point on (i.e. V2<=0,"") or (v2="","") ends with a too many arguments error.... Help please! :eek:

Thanks,
Mike
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
try this

=if(isblank(v2),"",IF(AK2="y","APPROVED",IF(AK2="n","DISAPPROVED",IF(V2>=0,"PENDING"))))
 
Upvote 0
assuming v2 is always numeric and greater than or equal to zero as your formula implies, you need to add ,"" after "PENDING" in the final IF - basically what will it display if V2 is not greater than or equal to zero.
 
Upvote 0
=IF(V2="","no data",IF(AK2="y","APPROVED",IF(AK2="n","DISAPPROVED",IF(AK2="","PENDING")))) try this. I wasn't sure what you want the result to be if V2 is blank.
 
Upvote 0
This will work as well.

=IF(AK2={"Y","N"},{"APPROVED","DISAPPROVED"},IF(AND(AK2="",V2<>""),"PENDING",""))
 
Upvote 0
Another possibility:

=CHOOSE(IF(V2="",1,IF(AK2="",2,LOOKUP(AK2,{"N",3;"Y",4}))),"","PENDING","DISAPPROVED","APPROVED")
 
Upvote 0
=if(v2="","",if(upper(ak2)="Y","approved",if(upper(ak2)="N","disapproved",if(ak2="","pending"))))
 
Upvote 0
Thanks guys! awesome solutions, different perspectives. I went with this one =if(isblank(v2),"",IF(AK2="y","APPROVED",IF(AK2="n","DISAPPROVED",IF(V2>=0,"PENDING")))) and it works like a charm. Thanks again!!
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,944
Members
449,480
Latest member
yesitisasport

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