If And statement not showing results I want

JREYNA03

New Member
Joined
Nov 22, 2023
Messages
34
Office Version
  1. 2016
Platform
  1. Windows
my formula keeps showing me the result of "1" instead of the words I want "Send Letter

=IF(AND(G4="yes"),1,IF(AND(I4=@Cancelled),2,IF(AND(M4<TODAY()),"Send Letter")))
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Why are you using AND with only one argument? It serves no purpose.

Perhaps you could explain what you want the formula to do?
 
Upvote 0
currently your first and only has one condition it's checking, so if g4=yes then it will be 1
are you wanting if(and(g4=yes, i4=@cancelled, m4<today()),"send letter") ??
 
Upvote 0
Why are you using AND with only one argument? It serves no purpose.

Perhaps you could explain what you want the formula to do?
I am wanting the formula to show "Send Letter" if the below columns contain the below words

G4=YES
I4=CANCELLED
M4<TODAY
 
Upvote 0
currently your first and only has one condition it's checking, so if g4=yes then it will be 1
are you wanting if(and(g4=yes, i4=@cancelled, m4<today()),"send letter") ??
I have this but it gives me the "#Name?" error
 
Upvote 0
I updated but now it is showing "True", "False" instead of the words I need it to display

=@IF(AND(G4="yes"),AND(I4="Cancelled"),AND(M4<TODAY()),AND(P4="YES"),"Cancel Plates", "Do Not Cancel Plates")))
 
Last edited:
Upvote 0
I have this but it gives me the "#Name?" error
I updated but now it is showing "True", "False" instead of the words I need it to display

=@IF(AND(G4="yes"),AND(I4="Cancelled"),AND(M4<TODAY()),AND(P4="YES"),"Cancel Plates", "Do Not Cancel Plates")))
 
Upvote 0
How about
Excel Formula:
=IF(AND(G4="yes",I4="Cancelled",M4<TODAY(),P4="YES"),"Cancel Plates", "Do Not Cancel Plates")
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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