MULTIPLE IF FORMULA

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
Office Version
  1. 365
Hi,

I have the following table:

COLUMN A COLUMN B COLUMN C
BRANCHINFO COUNTER% OF CUSTOMERS MANAGED AT INFO COUNTER FROM THE TOTAL TICKETS PER DAYMESSAGE
TEXAS

I have the following criteria:

1) If column B is and column C is empty, then return as "Please complete column B and C"
2) If column B is empty and column C is filled, return as "Please complete column B"
3) If column C is empty and column B is filled, return as "Please complete column C"
4) If column B is filled with NO but column C has a number, return as "Column B is filled as NO but column C has a number, check again"
5) If column B is filled as YES but column C is filled with 0, then return as "Column B is filled as YES but column C is filled with ZERO, check again"
6) Otherwise return as COMPLETE

I tried with the following formula but it does not seem to work:

Excel Formula:
=IF(AND([@[INFO COUNTER]]="",[@[% OF CUSTOMERS MANAGED AT INFO COUNTER FROM THE TOTAL TICKETS PER DAY]]=""),"PLEASE COMPLETE COLUMN C AND D",IF(AND([@[INFO COUNTER]]="",[@[% OF CUSTOMERS MANAGED AT INFO COUNTER FROM THE TOTAL TICKETS PER DAY]]<>""),"PLEASE COMPLETE COLUMN C",IF(AND([@[INFO COUNTER]]<>"",[@[% OF CUSTOMERS MANAGED AT INFO COUNTER FROM THE TOTAL TICKETS PER DAY]]=""),"PLEASE COMPLETE COLUMN D",IF([@[INFO COUNTER]]="NO",[@[% OF CUSTOMERS MANAGED AT INFO COUNTER FROM THE TOTAL TICKETS PER DAY]]<>""),"INFO COUNTER WAS SELECTED AS NO BUT COLUMN D HAS A %, PLEASE CHECK AGAIN")""))

Appreciate any help.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try

Excel Formula:
=IF(AND(B2="",C2=""),"Please complete column B and C",IF(AND(B2="",C2<>""),"Please complete column B",IF(AND(B2<>"",C2=""),"Please complete column C",IF(AND(B2="No",C2<>""),"Column B is filled as NO but column C has a number, check again",IF(AND(B2="Yes",C2=0),"Column B is filled as YES but column C is filled with ZERO, check again","Complete")))))
 
Upvote 0
Another option:

Book1
ABCD
1BranchInfo Counter% of Customers managed at Info Counter from the Total Tickets per DayMessage
2TexasPlease complete columns B and C
3OklahomaYesPlease complete column C
4Nevada5Please complete column B
5GeorgiaNo6Column B is filled with No but column C is >zero, check again
6KansasNo0Complete
7AlaskaYes7Complete
8New JerseyYes0Column B is filled with Yes but column C is zero, check again
9
Sheet2
Cell Formulas
RangeFormula
D2:D8D2=LET(b,[@[Info Counter]],c,[@[% of Customers managed at Info Counter from the Total Tickets per Day]],d,(b<>"")*2+(c<>"")+1,x,XOR(b="NO",c>0),IF(d<4,"Please complete column"&CHOOSE(d,"s B and C"," B"," C"),IF(x,"Complete","Column B is filled with "&b&" but column C is "&IF(c=0,"",">")&"zero, check again")))
 
Upvote 0
Updated the formula after comparing results with Eric's formula ;)

Excel Formula:
=IF(AND(B2="",C2=""),"Please complete column B and C",IF(AND(B2="",C2<>""),"Please complete column B",IF(AND(B2<>"",C2=""),"Please complete column C",IF(AND(B2="No",C2>0),"Column B is filled as NO but column C has a number, check again",IF(AND(B2="Yes",C2=0),"Column B is filled as YES but column C is filled with ZERO, check again","Complete")))))
 
Upvote 0
Solution
Hi Sufiyan and Eric,

Both solution worked. Thank you for your patience and have a great day ahead. Thanks.
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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